{"id":572,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-29T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/building-gnophone\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-29T13:51:50","slug":"building-gnophone","status":"publish","type":"post","link":"\/blog\/index.php\/building-gnophone\/","title":{"rendered":"Building gnophone"},"content":{"rendered":"<p>Problems building gnophone&#8230; solved using this:<br \/>\nhttp:\/\/forums.gentoo.org\/viewtopic-t-118309-highlight-gnophone.html?sid=88ab1b0aa8bc97b17c3290be 0ed95817<br \/>\ni quote:<br \/>\nOdd that this problem should be the same now as it was when those other posts were made, but in case anyone else is<br \/>\nhaving this problem, here is how to make it compile:<br \/>\nthere are two files with multi-line strings in them. GCC doesn&#8217;t seem to allow this&#8230; perhaps other versions do? I dunno.<br \/>\nHere is a diff of the file that ships with it, and the file fixed: (sounds\/raw2h.c)<br \/>\nCode:<br \/>\n31c31,44<br \/>\nSigned 16-bit audio datan n<br \/>\nSource: %sn<br \/>\nn<br \/>\nCopyright (C) 1999, Mark Spencer and Linux Support Servicesn<br \/>\nn<br \/>\nDistributed under the terms of the GNU General Public Licensen<br \/>\nn<br \/>\n\/nnnstatic signed short %s[] = {n&#8221;,<br \/>\nargv[1], n);<br \/>\n&#8212;<br \/>\n&gt; fprintf(o,<br \/>\n&gt; &#8220;\/<br \/>\n&gt;<br \/>\nSigned 16-bit audio data<br \/>\n&gt;<br \/>\n&gt;<br \/>\nSource: %s<br \/>\n&gt;<br \/>\n&gt;<br \/>\nCopyright (C) 1999, Mark Spencer and Linux Support Services<br \/>\n&gt;<br \/>\n&gt;<br \/>\nDistributed under the terms of the GNU General Public License<br \/>\n&gt;<br \/>\n&gt;<br \/>\n\/<br \/>\n&gt;<br \/>\n&gt; static signed short %s[] = {<br \/>\n&gt; &#8220;, argv[1], n);<br \/>\n(sounds\/mkdtmf.c)<br \/>\nCode:<br \/>\n28c28,40<br \/>\nn Signed 16-bit audio data representing &#8216;%s&#8217; in dtmfn<br \/>\nn<br \/>\nCopyright (C) 2000, Linux Support Services, Inc.n<br \/>\nn<br \/>\nDistributed under the terms of the GNU Generaln<br \/>\nPublic Licensen<br \/>\nn<br \/>\n\/nnstatic short %s[] = { n&#8221;, argv[1],<br \/>\nargv[2]);<br \/>\n&#8212;<br \/>\n&gt; printf(<br \/>\n&gt; &#8220;\/<br \/>\n&gt;<br \/>\nSigned 16-bit audio data representing &#8216;%s&#8217; in dtmf<br \/>\n280\/433<br \/>\n&gt;<br \/>\n&gt;<br \/>\nCopyright (C) 2000, Linux Support Services, Inc.<br \/>\n&gt;<br \/>\n&gt;<br \/>\nDistributed under the terms of the GNU General<br \/>\n&gt;<br \/>\nPublic License<br \/>\n&gt;<br \/>\n&gt; POSTS\/<br \/>\n&gt;<br \/>\n&gt; static short %s[] = {<br \/>\n&gt; &#8220;, argv[1], argv[2]);<br \/>\nthen in src\/gnophone_gui.c, below the line 1399, you need to add a line that says &#8220;break;&#8221; after the line with &#8220;default:&#8221; on<br \/>\nit.<br \/>\nHere is the diff:<br \/>\nCode:<br \/>\n1399d1398<br \/>\nFinally, some may have one last problem that I had. After some searching, it was found that the file:<br \/>\n\/usr\/include\/linux\/ixjuser.h line 353 needs to be changed from:<br \/>\nCode:<br \/>\nIXJ_CADENCE_ELEMENT __user *ce;<br \/>\nto<br \/>\nCode:<br \/>\nIXJ_CADENCE_ELEMENT __user, *ce;<br \/>\nafter that, it should compile correctly. Maybe someday someone will make an ebuild that does this automatically, or<br \/>\nsomething. Hope this helps someone.<br \/>\n281\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problems building gnophone&#8230; solved using this: http:\/\/forums.gentoo.org\/viewtopic-t-118309-highlight-gnophone.html?sid=88ab1b0aa8bc97b17c3290be 0ed95817 i quote: Odd that this problem should be the same now as it was when those other posts were made, but in case anyone else is having this problem, here is how to make it compile: there are two files with multi-line strings in them. GCC doesn&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}