Building gnophone

Problems building gnophone… 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’t seem to allow this… perhaps other versions do? I dunno.
Here is a diff of the file that ships with it, and the file fixed: (sounds/raw2h.c)
Code:
31c31,44
Signed 16-bit audio datan n
Source: %sn
n
Copyright (C) 1999, Mark Spencer and Linux Support Servicesn
n
Distributed under the terms of the GNU General Public Licensen
n
/nnnstatic signed short %s[] = {n”,
argv[1], n);

> fprintf(o,
> “/
>
Signed 16-bit audio data
>
>
Source: %s
>
>
Copyright (C) 1999, Mark Spencer and Linux Support Services
>
>
Distributed under the terms of the GNU General Public License
>
>
/
>
> static signed short %s[] = {
> “, argv[1], n);
(sounds/mkdtmf.c)
Code:
28c28,40
n Signed 16-bit audio data representing ‘%s’ in dtmfn
n
Copyright (C) 2000, Linux Support Services, Inc.n
n
Distributed under the terms of the GNU Generaln
Public Licensen
n
/nnstatic short %s[] = { n”, argv[1],
argv[2]);

> printf(
> “/
>
Signed 16-bit audio data representing ‘%s’ in dtmf
280/433
>
>
Copyright (C) 2000, Linux Support Services, Inc.
>
>
Distributed under the terms of the GNU General
>
Public License
>
> POSTS/
>
> static short %s[] = {
> “, argv[1], argv[2]);
then in src/gnophone_gui.c, below the line 1399, you need to add a line that says “break;” after the line with “default:” on
it.
Here is the diff:
Code:
1399d1398
Finally, some may have one last problem that I had. After some searching, it was found that the file:
/usr/include/linux/ixjuser.h line 353 needs to be changed from:
Code:
IXJ_CADENCE_ELEMENT __user *ce;
to
Code:
IXJ_CADENCE_ELEMENT __user, *ce;
after that, it should compile correctly. Maybe someday someone will make an ebuild that does this automatically, or
something. Hope this helps someone.
281/433

Leave a Reply

Your email address will not be published. Required fields are marked *