[Asterisk-Users] Compiling zaptel
Olivier Saulnier
steganux at steganux.com
Tue May 2 08:15:02 MST 2006
Hello,
When I compile zaptel application, i have this error log file:
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -lm gendigits.c -o gendigits
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
ZAPTELVERSION="SVN-trunk-r980" build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else \
mv version.h.tmp version.h ; \
fi
rm -f version.h.tmp
gcc -I/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/drivers/net
-Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/drivers/net/wan
-I/include/net -DSTANDALONE_ZAPATA -o zaptel.o -c zaptel.c
In file included from zaptel.c:43:
/usr/include/linux/kernel.h:72: error: erreur de syntaxe before "size_t"
/usr/include/linux/kernel.h:74: error: erreur de syntaxe before "size_t"
In file included from /usr/include/linux/timex.h:186,
from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from zaptel.c:45:
/usr/include/linux/time.h:14: error: erreur de syntaxe before "time_t"
/usr/include/linux/time.h:16: error: erreur de syntaxe before '}' token
/usr/include/linux/time.h:20: error: erreur de syntaxe before "time_t"
In file included from /usr/include/linux/timex.h:186,
from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:10,
from zaptel.c:45:
/usr/include/linux/time.h: Dans la fonction « timespec_to_jiffies »:
/usr/include/linux/time.h:198: error: dereferencing pointer to
incomplete type
/usr/include/linux/time.h:199: error: dereferencing pointer to
incomplete type
/usr/include/linux/time.h: Dans la fonction « jiffies_to_timespec »:
/usr/include/linux/time.h:219: error: dereferencing pointer to
incomplete type
I cut here, because the end of file is in error too :-)
I use the latest release of zaptel.
The problem is that the type size_t in /usr/include/linux/kernel.h is
not recognised.
If i replace it by int type, the compilation is OK until i have the type
time_t in time.h file :-(
Di you have any idea for that (how to do accept this types, or remplace
them by what??
Best regards,
--
Olivier Saulnier
STEGANUX
35 Quai Louis Blanc
03100 Montluçon
T: 04.70.02.80.55
F: 04.70.02.80.57
http://www.steganux.com
More information about the asterisk-users
mailing list