[Asterisk-Dev] asterisk CV HEAD

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Aug 14 16:26:01 MST 2005


On Sun, Aug 14, 2005 at 11:04:14PM +0200, harry gaillac wrote:
> 
> 
> serveur1:/usr/local/src/ASTERISK/zaptel# make
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
> -DSTANDALONE_ZAPATA
> -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o
> gendigits.o gendigits.c
> cc -o gendigits gendigits.o -lm
> ./gendigits
> gcc -Iir/include -O6 -DMODULE -D__KERNEL__
> -DEXPORT_SYMTAB -Iir/drivers/net -Wall -I.
> -Wstrict-prototypes -fomit-frame-pointer
> -Iir/drivers/net/wan -Iir/include/net  
> -DSTANDALONE_ZAPATA -o zaptel.o -c zaptel.c
> In file included from zaptel.c:42:
> /usr/include/linux/kernel.h:72: error: syntax error
> before "size_t"
> /usr/include/linux/kernel.h:74: error: syntax error
> before "size_t"
> make: *** [zaptel.o] Interrupt

/usr/include/linux should not be used. Header files from 
kernel-source/include should have been used instead. This means that 
the kernel source tree was not identified. 

As this is Debian: kernel 2.4.26 is not the standard kernel of Sarge.
Did you build it yourself? If so: did you use make-kpkg?

If you used a standard Debian package or built a kernel package with
make-kpkg, install the matching kernel-headers package. Then the
"kernel-source" tree directory is /usr/src/kernel-headers-`uname -r` .
If not, you should find the kernel source directory.

If you have a kernel source tree and it is not automagically identified,
try passing the parameter KSRC to make.

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-dev mailing list