Zaptel compiling probs


#1

Hi all,

I have a prob compiling zaptel :

14:34 root@Serveur /usr/src/zaptel# make linux26
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
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
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o libtonezone.a -lm
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -o ztspeed.o -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" zttest.c -o zttest
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o fxotune.o fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.16.2-asterisk/build
make -C /lib/modules/2.6.16.2-asterisk/build SUBDIRS=/usr/src/zaptel modules
make[1]: entrant dans le répertoire « /usr/src/linux-2.6.16.2 »
CC [M] /usr/src/zaptel/zaptel.o
/usr/src/zaptel/zaptel.c: In function ‘zt_register’:
/usr/src/zaptel/zaptel.c:4448: warning: passing argument 2 of ‘class_device_create’ makes pointer from integer without a cast
/usr/src/zaptel/zaptel.c:4448: warning: passing argument 3 of ‘class_device_create’ makes integer from pointer without a cast
/usr/src/zaptel/zaptel.c:4448: warning: passing argument 4 of ‘class_device_create’ from incompatible pointer type
/usr/src/zaptel/zaptel.c:4448: error: too few arguments to function ‘class_device_create’
/usr/src/zaptel/zaptel.c: In function ‘zt_init’:
/usr/src/zaptel/zaptel.c:6507: warning: passing argument 2 of ‘class_device_create’ makes pointer from integer without a cast
/usr/src/zaptel/zaptel.c:6507: warning: passing argument 3 of ‘class_device_create’ makes integer from pointer without a cast
/usr/src/zaptel/zaptel.c:6507: warning: passing argument 4 of ‘class_device_create’ from incompatible pointer type
/usr/src/zaptel/zaptel.c:6507: error: too few arguments to function ‘class_device_create’
/usr/src/zaptel/zaptel.c:6508: warning: passing argument 2 of ‘class_device_create’ makes pointer from integer without a cast
/usr/src/zaptel/zaptel.c:6508: warning: passing argument 3 of ‘class_device_create’ makes integer from pointer without a cast
/usr/src/zaptel/zaptel.c:6508: warning: passing argument 4 of ‘class_device_create’ from incompatible pointer type
/usr/src/zaptel/zaptel.c:6508: error: too few arguments to function ‘class_device_create’
/usr/src/zaptel/zaptel.c:6509: warning: passing argument 2 of ‘class_device_create’ makes pointer from integer without a cast
/usr/src/zaptel/zaptel.c:6509: warning: passing argument 3 of ‘class_device_create’ makes integer from pointer without a cast
/usr/src/zaptel/zaptel.c:6509: warning: passing argument 4 of ‘class_device_create’ from incompatible pointer type
/usr/src/zaptel/zaptel.c:6509: error: too few arguments to function ‘class_device_create’
/usr/src/zaptel/zaptel.c:6510: warning: passing argument 2 of ‘class_device_create’ makes pointer from integer without a cast
/usr/src/zaptel/zaptel.c:6510: warning: passing argument 3 of ‘class_device_create’ makes integer from pointer without a cast
/usr/src/zaptel/zaptel.c:6510: warning: passing argument 4 of ‘class_device_create’ from incompatible pointer type
/usr/src/zaptel/zaptel.c:6510: error: too few arguments to function 'class_device_create’
make[2]: *** [/usr/src/zaptel/zaptel.o] Erreur 1
make[1]: *** [module/usr/src/zaptel] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-2.6.16.2 »
make: *** [linux26] Erreur 2
zsh: exit 2 make linux26

Could someone help me please ? :smile:


#2

re, i cleaned all cvs downloads

i make “cvs checkout zaptel”

now i compile an other time and i get new error message :

15:23 root@Serveur /usr/src/zaptel# make linux26
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
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
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o libtonezone.a -lm
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -o ztspeed.o -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" zttest.c -o zttest
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -c -o fxotune.o fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.16.2-asterisk/build
make -C /lib/modules/2.6.16.2-asterisk/build SUBDIRS=/usr/src/zaptel modules
make[1]: entrant dans le répertoire « /usr/src/linux-2.6.16.2 »
CC [M] /usr/src/zaptel/zaptel.o
/usr/src/zaptel/zaptel.c:187: warning: ‘fcstab’ defined but not used
CC [M] /usr/src/zaptel/tor2.o
CC [M] /usr/src/zaptel/torisa.o
/usr/src/zaptel/torisa.c:1145: warning: ‘set_tor_base’ defined but not used
CC [M] /usr/src/zaptel/wcusb.o
/usr/src/zaptel/wcusb.c:1451: error: unknown field ‘owner’ specified in initializer
/usr/src/zaptel/wcusb.c:1451: warning: initialization from incompatible pointer type
make[2]: *** [/usr/src/zaptel/wcusb.o] Erreur 1
make[1]: *** [module/usr/src/zaptel] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-2.6.16.2 »
make: *** [linux26] Erreur 2
zsh: exit 2 make linux26

Any idea ?


#3

really no idea ? :frowning: