linux/compiler.h: No such file or directory
Thiago Martins
thiago at principaltelecom.com.br
Wed Oct 25 17:03:30 CEST 2006
Em Qua, 2006-10-25 às 16:38 +0200, Tzafrir Cohen escreveu:
> On Wed, Oct 25, 2006 at 12:26:07PM -0200, Thiago Martins wrote:
> > Hi,
> >
> > I'm trying to compile on new systens but I found this error:
> >
> > gcc `mysql_config --cflags` -pipe -Wall -Wstrict-prototypes
> > -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include
> > -D_REENTRANT -D_GNU_SOURCE -O2 -DZAPTEL_OPTIMIZATIONS
> > -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI
> > -DIAX_TRUNKING -DCRYPTO -fPIC -c -o chan_phone.o chan_phone.c
> > chan_phone.c:41:29: error: linux/compiler.h: No such file or directory
> > make[2]: *** [chan_phone.o] Error 1
> > make[2]: Leaving directory
> > `/var/SRC/PACKAGES/asterisk/asterisk-1.2.13~dfsg/channels'
> > make[1]: *** [subdirs] Error 1
> > make[1]: Leaving directory
> > `/var/SRC/PACKAGES/asterisk/asterisk-1.2.13~dfsg'
> > make: *** [build-arch-stamp] Error 2
> >
> > How to remove dependency on linux/compiler.h ?
>
> Hmmm... is chan_phone deprecated or not?
Tzafrir,
I don't know if chan_phone is deprecated, I just remove
linux/compiler.h from chan_phone.c, "remount" the upstream tarball and I
got cha_phone.so compiled OK.
BUT, there is another error, look:
make[2]: Entering directory
`/var/SRC/PACKAGES/asterisk/asterisk-1.2.13~dfsg/debian/build/asterisk-bristuff/channels'
gcc `mysql_config --cflags` -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include
-D_REENTRANT -D_GNU_SOURCE -O2 -DZAPTEL_OPTIMIZATIONS
-Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI
-I/usr/include/bristuffed -DIAX_TRUNKING -DCAPI_ES -DCAPI_GAIN
-DCAPI_DEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -DCRYPTO -fPIC -c -o
chan_sip.o chan_sip.c
chan_sip.c: In function ‘handle_request_refer’:
chan_sip.c:10907: error: ‘rp’ undeclared (first use in this function)
chan_sip.c:10907: error: (Each undeclared identifier is reported only
once
chan_sip.c:10907: error: for each function it appears in.)
chan_sip.c:10940: warning: type defaults to ‘int’ in declaration of
‘__p’
chan_sip.c:10940: warning: comparison of distinct pointer types lacks a
cast
chan_sip.c: In function ‘sipsock_read’:
chan_sip.c:11618: error: too many arguments to function ‘find_call’
make[2]: *** [chan_sip.o] Error 1
make[2]: Leaving directory
`/var/SRC/PACKAGES/asterisk/asterisk-1.2.13~dfsg/debian/build/asterisk-bristuff/channels'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/var/SRC/PACKAGES/asterisk/asterisk-1.2.13~dfsg/debian/build/asterisk-bristuff'
make: *** [build-arch-stamp] Error 2
Maybe I will try to compile new asterisk latter... :)
Thanks for any help!
Thiago
More information about the Pkg-voip-maintainers
mailing list