[Home]

Summary:ASTERISK-01361: zaptel no longer compiles on opteron (amd64)
Reporter:zoa (zoa)Labels:
Date Opened:2004-04-06 12:45:56Date Closed:2011-06-07 14:04:51
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:the previous version of zaptel from 27 feb is still on my hd and compiles normal

****** ADDITIONAL INFORMATION ******

julius:/usr/src/zaptel # make
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA    makefw.c   -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
cc -shared -Wl,-soname,libtonezone.so.1 -lm -o libtonezone.so.1.0 zonedata.lo tonezone.lo
/sbin/ldconfig -n .
ln -sf libtonezone.so.1 libtonezone.so
cc -o ztcfg ztcfg.o -lm -L. -ltonezone
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o zttool.o zttool.c
cc -o zttool zttool.o -lnewt
make -C /usr/src/linux-2.6 SUBDIRS=/usr/src/zaptel modules
make[1]: Entering directory `/usr/src/linux-2.6.3'
 CHK     include/linux/version.h
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
make[1]: Warning: File `arch/x86_64/kernel/asm-offsets.s' has modification time 7.1e+04 s in the future
make[2]: Warning: File `arch/x86_64/kernel/.asm-offsets.s.cmd' has modification time 7.1e+04 s in the future
make[2]: `arch/x86_64/kernel/asm-offsets.s' is up to date.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
 CHK     include/asm-x86_64/offset.h
 CC [M]  /usr/src/zaptel/zaptel.o
/usr/src/zaptel/zaptel.c: In function `zaptel_proc_read':
/usr/src/zaptel/zaptel.c:434: warning: cast to pointer from integer of different size
/usr/src/zaptel/zaptel.c: In function `zt_xmit':
/usr/src/zaptel/zaptel.c:1296: warning: comparison of distinct pointer types lacks a cast
/usr/src/zaptel/zaptel.c: In function `zt_common_ioctl':
/usr/src/zaptel/zaptel.c:2780: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2780: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2782: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2782: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2784: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2792: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2792: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2799: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2799: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c: In function `zt_ctl_ioctl':
/usr/src/zaptel/zaptel.c:3014: error: structure has no member named `ioctl'
/usr/src/zaptel/zaptel.c: In function `zt_register':
/usr/src/zaptel/zaptel.c:4104: warning: cast to pointer from integer of different size
make[2]: *** [/usr/src/zaptel/zaptel.o] Error 1
make[1]: *** [/usr/src/zaptel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.3'
make: *** [linux26] Error 2
julius:/usr/src/zaptel # make
make -C /usr/src/linux-2.6 SUBDIRS=/usr/src/zaptel modules
make[1]: Entering directory `/usr/src/linux-2.6.3'
 CHK     include/linux/version.h
*** Warning: Overriding SUBDIRS on the command line can cause
***          inconsistencies
make[1]: Warning: File `arch/x86_64/kernel/asm-offsets.s' has modification time 7.1e+04 s in the future
make[2]: Warning: File `arch/x86_64/kernel/.asm-offsets.s.cmd' has modification time 7.1e+04 s in the future
make[2]: `arch/x86_64/kernel/asm-offsets.s' is up to date.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
 CHK     include/asm-x86_64/offset.h
 CC [M]  /usr/src/zaptel/zaptel.o
/usr/src/zaptel/zaptel.c: In function `zaptel_proc_read':
/usr/src/zaptel/zaptel.c:434: warning: cast to pointer from integer of different size
/usr/src/zaptel/zaptel.c: In function `zt_xmit':
/usr/src/zaptel/zaptel.c:1296: warning: comparison of distinct pointer types lacks a cast
/usr/src/zaptel/zaptel.c: In function `zt_common_ioctl':
/usr/src/zaptel/zaptel.c:2780: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2780: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2782: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2782: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2784: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2792: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2792: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2799: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c:2799: warning: cast from pointer to integer of different size
/usr/src/zaptel/zaptel.c: In function `zt_ctl_ioctl':
/usr/src/zaptel/zaptel.c:3014: error: structure has no member named `ioctl'
/usr/src/zaptel/zaptel.c: In function `zt_register':
/usr/src/zaptel/zaptel.c:4104: warning: cast to pointer from integer of different size
make[2]: *** [/usr/src/zaptel/zaptel.o] Error 1
make[1]: *** [/usr/src/zaptel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.3'
make: *** [linux26] Error 2
Comments:By: James Golovich (jamesgolovich) 2004-04-06 13:00:08

I don't believe that there have been any changes to zaptel that could possibly make this happen.

These messages are interesting.  Perhaps your kernel source is messed up?  Although that doesn't explain why the old version works.  Can you diff your 2 versions and see whats actually different?
make[1]: Warning: File `arch/x86_64/kernel/asm-offsets.s' has modification time 7.1e+04 s in the future
make[2]: Warning: File `arch/x86_64/kernel/.asm-offsets.s.cmd' has modification time 7.1e+04 s in the future

By: zoa (zoa) 2004-04-06 13:03:16

my date was wrong when i compiled the kernel.

By: zoa (zoa) 2004-04-06 13:07:17

copying an old zconfig.h over the new one resolves this problem.

By: Mark Spencer (markster) 2004-04-06 15:12:44

I think the obvious thing is that he's likely using the wrong HDLC code.  Just turn off CONFIG_ZAPTEL_NETWORKING or whatever and it will build, or get your HDLC turned to the right mode (new or old).