Roman Yeryomin
2006-Nov-30 10:21 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
Hello! I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 -- all give the same error) with 2.6.19 kernel CC [M] /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o In file included from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error: conflicting types for 'bool' include/linux/types.h:36: error: previous declaration of 'bool' was here In file included from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9, from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34, from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29, from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27, from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: include/linux/config.h:10:3: warning: no newline at end of file make[3]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] Error 1 make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error 2 make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] Error 2 make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19' make: *** [linux26] Error 2 seems that commenting out "typedef int bool;" in xpp/xdefs.h on line 93 works that out, but don't know if it's completely right thing to do Roman
Matthew Rubenstein
2006-Nov-30 12:43 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
I'm having problems installing ztdummy on my CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP only to PSTN). I unpacked the kernel sources and headers in a directory, made (but not re/installed) the kernel, unpacked the zaptel-1.2.11 tarball, then went thru the make sequence. It seemed to proceed OK (without errors, just some warnings), but didn't seem to result in a loadable ztdummy kernel module. Complete (failed) install session transcript is attached to this message; details appended: ------------------------------------------------------------------------- # cd <path-to-zaptel-1.2.11-source> # export KSRC=<path-to-kernel-source-root-dir> # make clean # make config [... series of shell script conditionals apparently executed OK ...] # make linux26 [... series of CC/LD reports, some warnings, no errors ...] # make install [... series of INSTALL messages, same warnings from (make linux26), no errors ...] # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found. ------------------------------------------------------------------------- (make linux26) generated some warnings about various usb_*_dev symbols undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install) repeated those warnings. (modprobe ztdummy) finished with ------------------------------------------------------------------------- Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. [...] ------------------------------------------------------------------------- but seemed to complete without errors. (make install) included a line ------------------------------------------------------------------------- INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko ------------------------------------------------------------------------- Complete (failed) install session transcript is attached. On Thu, 2006-11-30 at 12:00 -0700, asterisk-users-request@lists.digium.com wrote:> Date: Thu, 30 Nov 2006 19:19:14 +0200 > From: Roman Yeryomin <leroi.lists@gmail.com> > Subject: [asterisk-users] zaptel compilation problems with linux > 2.6.19 > To: asterisk-users@lists.digium.com > Message-ID: <200611301919.14686.leroi.lists@gmail.com> > Content-Type: text/plain; charset="us-ascii" > > Hello! > > I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 > -- all > give the same error) with 2.6.19 kernel > > CC > [M] /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: > error: > conflicting types for 'bool' > include/linux/types.h:36: error: previous declaration of 'bool' was > here > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > include/linux/config.h:10:3: warning: no newline at end of file > make[3]: *** > [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] > Error 1 > make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] > Error 2 > make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] > Error 2 > make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19' > make: *** [linux26] Error 2 > > seems that commenting out "typedef int bool;" in xpp/xdefs.h on line > 93 works > that out, but don't know if it's completely right thing to do > > Roman >-- (C) Matthew Rubenstein -------------- next part -------------- # make clean rm -f torisatool makefw tor2fw.h radfw.h rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so *.lo make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> clean make[1]: Entering directory `<kernel-source-root-dir>' CLEAN <zaptel-1.2.11-source-root-dir>/wct4xxp CLEAN <zaptel-1.2.11-source-root-dir>/.tmp_versions make[1]: Leaving directory `<kernel-source-root-dir>' rm -rf .tmp_versions rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f fxotune rm -f core rm -f ztcfg-shared fxstest rm -rf misdn* rm -rf mISDNuser* # make config if [ -d /etc/rc.d/init.d ]; then \ install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ elif [ -d /etc/init.d ]; then \ install -D -m 755 zaptel.init /etc/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ fi if [ -d /etc/default ] && [ ! -f /etc/default/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/default/zaptel; \ fi if [ -d /etc/sysconfig ] && [ ! -f /etc/sysconfig/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/sysconfig/zaptel; \ fi if [ -d /etc/sysconfig/network-scripts ]; then \ install -D -m 755 ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc; \ fi # 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 > tones.h 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="1.2.11" 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 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 -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -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\" -c -o zttool.o zttool.c cc -o zttool zttool.o -lnewt 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' CC [M] <zaptel-1.2.11-source-root-dir>/zaptel.o <zaptel-1.2.11-source-root-dir>/zaptel.c:188: warning: ?fcstab? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/tor2.o CC [M] <zaptel-1.2.11-source-root-dir>/torisa.o <zaptel-1.2.11-source-root-dir>/torisa.c:1147: warning: ?set_tor_base? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wcusb.o CC [M] <zaptel-1.2.11-source-root-dir>/wcfxo.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.o CC [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.o <zaptel-1.2.11-source-root-dir>/ztd-eth.c:185: warning: initialization from incompatible pointer type CC [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.o CC [M] <zaptel-1.2.11-source-root-dir>/pciradio.o <zaptel-1.2.11-source-root-dir>/pciradio.c: In function ?pciradio_interrupt?: <zaptel-1.2.11-source-root-dir>/pciradio.c:508: warning: ?byte2? is used uninitialized in this function CC [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdummy.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/base.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used HOSTCC <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-128D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct128_fw.h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-64D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct064_fw.h CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/llman/octapi_llman.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxo.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/slic.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxs.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xbus-core.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.o <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xproto.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_global.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.o Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! CC <zaptel-1.2.11-source-root-dir>/pciradio.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/pciradio.ko CC <zaptel-1.2.11-source-root-dir>/tor2.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/tor2.ko CC <zaptel-1.2.11-source-root-dir>/torisa.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/torisa.ko CC <zaptel-1.2.11-source-root-dir>/wcfxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcfxo.ko CC <zaptel-1.2.11-source-root-dir>/wct1xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.ko CC <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko CC <zaptel-1.2.11-source-root-dir>/wctdm.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm.ko CC <zaptel-1.2.11-source-root-dir>/wctdm24xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko CC <zaptel-1.2.11-source-root-dir>/wcte11xp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.ko CC <zaptel-1.2.11-source-root-dir>/wcusb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcusb.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko CC <zaptel-1.2.11-source-root-dir>/zaptel.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/zaptel.ko CC <zaptel-1.2.11-source-root-dir>/ztd-eth.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.ko CC <zaptel-1.2.11-source-root-dir>/ztd-loc.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.ko CC <zaptel-1.2.11-source-root-dir>/ztdummy.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdummy.ko CC <zaptel-1.2.11-source-root-dir>/ztdynamic.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' # make install ZAPTELVERSION="1.2.11" 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! make[1]: Leaving directory `<kernel-source-root-dir>' cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo tonezone.lo build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules Not installing firmware because we are not using hotplug firmware install -D -m 755 ztcfg /sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new /sbin/sethdlc; \ elif [ -f sethdlc ]; then \ install -D -m 755 sethdlc /sbin/sethdlc ; \ fi if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko ztdummy.ko; do \ rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \ done; \ make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install; make[1]: Entering directory `<kernel-source-root-dir>' INSTALL <zaptel-1.2.11-source-root-dir>/pciradio.ko INSTALL <zaptel-1.2.11-source-root-dir>/tor2.ko INSTALL <zaptel-1.2.11-source-root-dir>/torisa.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcfxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct1xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcte11xp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcusb.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko INSTALL <zaptel-1.2.11-source-root-dir>/zaptel.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-eth.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-loc.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' if ! [ -f wcfxsusb.o ]; then \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \ fi; \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0 [ `id -u` = 0 ] && /sbin/ldconfig || : rm -f /usr/lib/libtonezone.so ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so.1 ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v /usr/lib/libtonezone.so; fi install -D -m 644 zaptel.h /usr/include/linux/zaptel.h install -D -m 644 torisa.h /usr/include/linux/torisa.h install -D -m 644 tonezone.h /usr/include/tonezone.h install -m 644 doc/ztcfg.8 /usr/share/man/man8 install -m 644 doc/zttool.8 /usr/share/man/man8 [ `id -u` = 0 ] && /sbin/depmod -a 2.6.16-rc6-060427a || : [ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf build_tools/genmodconf linux26 "" "tor2 torisa wcusb wcfxo wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy" Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. *** *** In the future, do not edit /etc/modprobe.d/zaptel, but *** instead put your changes in another file *** in the same directory so that they will not *** be overwritten by future Zaptel updates. *** # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found.
Tzafrir Cohen
2006-Nov-30 12:49 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
On Thu, Nov 30, 2006 at 07:19:14PM +0200, Roman Yeryomin wrote:> Hello! > > I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 -- all > give the same error) with 2.6.19 kernel > > CC [M] /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error: > conflicting types for 'bool' > include/linux/types.h:36: error: previous declaration of 'bool' was here > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > include/linux/config.h:10:3: warning: no newline at end of file > make[3]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] > Error 1 > make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error 2 > make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] Error 2 > make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19' > make: *** [linux26] Error 2 > > seems that commenting out "typedef int bool;" in xpp/xdefs.h on line 93 works > that out, but don't know if it's completely right thing to doSimply replacing that int with a _Bool will give several "incompatible pointer type" warnings. The following is from our internal working copy, with pathes removed for clarity: CC [M] xpp/card_fxo.o xpp/card_fxo.c: In function `__check_report_battery': xpp/card_fxo.c:38: warning: return from incompatible pointer type CC [M] xpp/card_fxs.o xpp/card_fxs.c: In function `__check_poll_digital_inputs': xpp/card_fxs.c:37: warning: return from incompatible pointer type CC [M] xpp/xbus-core.o CC [M] xpp/xpp_zap.o xpp/xpp_zap.c: In function `__check_zap_autoreg': xpp/xpp_zap.c:67: warning: return from incompatible pointer type xpp/xpp_zap.c: In function `__check_prefmaster': xpp/xpp_zap.c:68: warning: return from incompatible pointer type xpp/xpp_zap.c: In function `__check_xpp_ec': xpp/xpp_zap.c:70: warning: return from incompatible pointer type xpp/xpp_zap.c: In function `xpd_read_proc': xpp/xpp_zap.c:437: warning: unused variable `chans' xpp/xpp_zap.c: In function `proc_sync_write': xpp/xpp_zap.c:748: warning: int format, bool arg (arg 5) xpp/xpp_zap.c: In function `proc_xpd_ztregister_write': xpp/xpp_zap.c:816: warning: int format, bool arg (arg 3) Most of them seem to be related to the procfs interface. If you don't need xpp for yourself and can leave with those warnings, go ahead. I'll try to resolve them. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Matthew Rubenstein
2006-Nov-30 13:12 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
I'm having problems installing ztdummy on my CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP only to PSTN). I unpacked the kernel sources and headers in a directory, made (but not re/installed) the kernel, unpacked the zaptel-1.2.11 tarball, then went thru the make sequence. It seemed to proceed OK (without errors, just some warnings), but didn't seem to result in a loadable ztdummy kernel module. Details appended, followed by a complete (failed) install session transcript: ------------------------------------------------------------------------- # cd <path-to-zaptel-1.2.11-source> # export KSRC=<path-to-kernel-source-root-dir> # make clean # make config [... series of shell script conditionals apparently executed OK ...] # make linux26 [... series of CC/LD reports, some warnings, no errors ...] # make install [... series of INSTALL messages, same warnings from (make linux26), no errors ...] # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found. ------------------------------------------------------------------------- (make linux26) generated some warnings about various usb_*_dev symbols undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install) repeated those warnings. (modprobe ztdummy) finished with ------------------------------------------------------------------------- Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. [...] ------------------------------------------------------------------------- but seemed to complete without errors. (make install) included a line ------------------------------------------------------------------------- INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko ------------------------------------------------------------------------- but no success. Complete (failed) install session transcript: ------------------------------------------------------------------------- # make clean rm -f torisatool makefw tor2fw.h radfw.h rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so *.lo make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> clean make[1]: Entering directory `<kernel-source-root-dir>' CLEAN <zaptel-1.2.11-source-root-dir>/wct4xxp CLEAN <zaptel-1.2.11-source-root-dir>/.tmp_versions make[1]: Leaving directory `<kernel-source-root-dir>' rm -rf .tmp_versions rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f fxotune rm -f core rm -f ztcfg-shared fxstest rm -rf misdn* rm -rf mISDNuser* # make config if [ -d /etc/rc.d/init.d ]; then \ install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ elif [ -d /etc/init.d ]; then \ install -D -m 755 zaptel.init /etc/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ fi if [ -d /etc/default ] && [ ! -f /etc/default/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/default/zaptel; \ fi if [ -d /etc/sysconfig ] && [ ! -f /etc/sysconfig/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/sysconfig/zaptel; \ fi if [ -d /etc/sysconfig/network-scripts ]; then \ install -D -m 755 ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc; \ fi # 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 > tones.h 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="1.2.11" 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 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 -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -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\" -c -o zttool.o zttool.c cc -o zttool zttool.o -lnewt 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' CC [M] <zaptel-1.2.11-source-root-dir>/zaptel.o <zaptel-1.2.11-source-root-dir>/zaptel.c:188: warning: ?fcstab? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/tor2.o CC [M] <zaptel-1.2.11-source-root-dir>/torisa.o <zaptel-1.2.11-source-root-dir>/torisa.c:1147: warning: ?set_tor_base? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wcusb.o CC [M] <zaptel-1.2.11-source-root-dir>/wcfxo.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.o CC [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.o <zaptel-1.2.11-source-root-dir>/ztd-eth.c:185: warning: initialization from incompatible pointer type CC [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.o CC [M] <zaptel-1.2.11-source-root-dir>/pciradio.o <zaptel-1.2.11-source-root-dir>/pciradio.c: In function ?pciradio_interrupt?: <zaptel-1.2.11-source-root-dir>/pciradio.c:508: warning: ?byte2? is used uninitialized in this function CC [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdummy.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/base.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used HOSTCC <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-128D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct128_fw.h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-64D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct064_fw.h CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/llman/octapi_llman.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxo.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/slic.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxs.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xbus-core.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.o <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xproto.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_global.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.o Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! CC <zaptel-1.2.11-source-root-dir>/pciradio.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/pciradio.ko CC <zaptel-1.2.11-source-root-dir>/tor2.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/tor2.ko CC <zaptel-1.2.11-source-root-dir>/torisa.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/torisa.ko CC <zaptel-1.2.11-source-root-dir>/wcfxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcfxo.ko CC <zaptel-1.2.11-source-root-dir>/wct1xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.ko CC <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko CC <zaptel-1.2.11-source-root-dir>/wctdm.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm.ko CC <zaptel-1.2.11-source-root-dir>/wctdm24xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko CC <zaptel-1.2.11-source-root-dir>/wcte11xp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.ko CC <zaptel-1.2.11-source-root-dir>/wcusb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcusb.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko CC <zaptel-1.2.11-source-root-dir>/zaptel.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/zaptel.ko CC <zaptel-1.2.11-source-root-dir>/ztd-eth.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.ko CC <zaptel-1.2.11-source-root-dir>/ztd-loc.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.ko CC <zaptel-1.2.11-source-root-dir>/ztdummy.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdummy.ko CC <zaptel-1.2.11-source-root-dir>/ztdynamic.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' # make install ZAPTELVERSION="1.2.11" 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! make[1]: Leaving directory `<kernel-source-root-dir>' cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo tonezone.lo build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules Not installing firmware because we are not using hotplug firmware install -D -m 755 ztcfg /sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new /sbin/sethdlc; \ elif [ -f sethdlc ]; then \ install -D -m 755 sethdlc /sbin/sethdlc ; \ fi if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko ztdummy.ko; do \ rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \ done; \ make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install; make[1]: Entering directory `<kernel-source-root-dir>' INSTALL <zaptel-1.2.11-source-root-dir>/pciradio.ko INSTALL <zaptel-1.2.11-source-root-dir>/tor2.ko INSTALL <zaptel-1.2.11-source-root-dir>/torisa.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcfxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct1xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcte11xp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcusb.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko INSTALL <zaptel-1.2.11-source-root-dir>/zaptel.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-eth.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-loc.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' if ! [ -f wcfxsusb.o ]; then \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \ fi; \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0 [ `id -u` = 0 ] && /sbin/ldconfig || : rm -f /usr/lib/libtonezone.so ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so.1 ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v /usr/lib/libtonezone.so; fi install -D -m 644 zaptel.h /usr/include/linux/zaptel.h install -D -m 644 torisa.h /usr/include/linux/torisa.h install -D -m 644 tonezone.h /usr/include/tonezone.h install -m 644 doc/ztcfg.8 /usr/share/man/man8 install -m 644 doc/zttool.8 /usr/share/man/man8 [ `id -u` = 0 ] && /sbin/depmod -a 2.6.16-rc6-060427a || : [ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf build_tools/genmodconf linux26 "" "tor2 torisa wcusb wcfxo wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy" Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. *** *** In the future, do not edit /etc/modprobe.d/zaptel, but *** instead put your changes in another file *** in the same directory so that they will not *** be overwritten by future Zaptel updates. *** # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found. ------------------------------------------------------------------------- On Thu, 2006-11-30 at 12:00 -0700, asterisk-users-request@lists.digium.com wrote:> Date: Thu, 30 Nov 2006 19:19:14 +0200 > From: Roman Yeryomin <leroi.lists@gmail.com> > Subject: [asterisk-users] zaptel compilation problems with linux > 2.6.19 > To: asterisk-users@lists.digium.com > Message-ID: <200611301919.14686.leroi.lists@gmail.com> > Content-Type: text/plain; charset="us-ascii" > > Hello! > > I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 > -- all > give the same error) with 2.6.19 kernel > > CC > [M] /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: > error: > conflicting types for 'bool' > include/linux/types.h:36: error: previous declaration of 'bool' was > here > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > include/linux/config.h:10:3: warning: no newline at end of file > make[3]: *** > [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] > Error 1 > make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] > Error 2 > make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] > Error 2 > make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19' > make: *** [linux26] Error 2 > > seems that commenting out "typedef int bool;" in xpp/xdefs.h on line > 93 works > that out, but don't know if it's completely right thing to do > > Roman >-- (C) Matthew Rubenstein -------------- next part -------------- # make clean rm -f torisatool makefw tor2fw.h radfw.h rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so *.lo make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> clean make[1]: Entering directory `<kernel-source-root-dir>' CLEAN <zaptel-1.2.11-source-root-dir>/wct4xxp CLEAN <zaptel-1.2.11-source-root-dir>/.tmp_versions make[1]: Leaving directory `<kernel-source-root-dir>' rm -rf .tmp_versions rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f fxotune rm -f core rm -f ztcfg-shared fxstest rm -rf misdn* rm -rf mISDNuser* # make config if [ -d /etc/rc.d/init.d ]; then \ install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ elif [ -d /etc/init.d ]; then \ install -D -m 755 zaptel.init /etc/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ fi if [ -d /etc/default ] && [ ! -f /etc/default/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/default/zaptel; \ fi if [ -d /etc/sysconfig ] && [ ! -f /etc/sysconfig/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/sysconfig/zaptel; \ fi if [ -d /etc/sysconfig/network-scripts ]; then \ install -D -m 755 ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc; \ fi # 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 > tones.h 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="1.2.11" 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 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 -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -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\" -c -o zttool.o zttool.c cc -o zttool zttool.o -lnewt 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' CC [M] <zaptel-1.2.11-source-root-dir>/zaptel.o <zaptel-1.2.11-source-root-dir>/zaptel.c:188: warning: ?fcstab? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/tor2.o CC [M] <zaptel-1.2.11-source-root-dir>/torisa.o <zaptel-1.2.11-source-root-dir>/torisa.c:1147: warning: ?set_tor_base? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wcusb.o CC [M] <zaptel-1.2.11-source-root-dir>/wcfxo.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.o CC [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.o <zaptel-1.2.11-source-root-dir>/ztd-eth.c:185: warning: initialization from incompatible pointer type CC [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.o CC [M] <zaptel-1.2.11-source-root-dir>/pciradio.o <zaptel-1.2.11-source-root-dir>/pciradio.c: In function ?pciradio_interrupt?: <zaptel-1.2.11-source-root-dir>/pciradio.c:508: warning: ?byte2? is used uninitialized in this function CC [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdummy.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/base.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used HOSTCC <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-128D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct128_fw.h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-64D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct064_fw.h CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/llman/octapi_llman.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxo.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/slic.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxs.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xbus-core.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.o <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xproto.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_global.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.o Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! CC <zaptel-1.2.11-source-root-dir>/pciradio.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/pciradio.ko CC <zaptel-1.2.11-source-root-dir>/tor2.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/tor2.ko CC <zaptel-1.2.11-source-root-dir>/torisa.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/torisa.ko CC <zaptel-1.2.11-source-root-dir>/wcfxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcfxo.ko CC <zaptel-1.2.11-source-root-dir>/wct1xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.ko CC <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko CC <zaptel-1.2.11-source-root-dir>/wctdm.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm.ko CC <zaptel-1.2.11-source-root-dir>/wctdm24xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko CC <zaptel-1.2.11-source-root-dir>/wcte11xp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.ko CC <zaptel-1.2.11-source-root-dir>/wcusb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcusb.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko CC <zaptel-1.2.11-source-root-dir>/zaptel.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/zaptel.ko CC <zaptel-1.2.11-source-root-dir>/ztd-eth.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.ko CC <zaptel-1.2.11-source-root-dir>/ztd-loc.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.ko CC <zaptel-1.2.11-source-root-dir>/ztdummy.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdummy.ko CC <zaptel-1.2.11-source-root-dir>/ztdynamic.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' # make install ZAPTELVERSION="1.2.11" 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! make[1]: Leaving directory `<kernel-source-root-dir>' cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo tonezone.lo build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules Not installing firmware because we are not using hotplug firmware install -D -m 755 ztcfg /sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new /sbin/sethdlc; \ elif [ -f sethdlc ]; then \ install -D -m 755 sethdlc /sbin/sethdlc ; \ fi if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko ztdummy.ko; do \ rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \ done; \ make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install; make[1]: Entering directory `<kernel-source-root-dir>' INSTALL <zaptel-1.2.11-source-root-dir>/pciradio.ko INSTALL <zaptel-1.2.11-source-root-dir>/tor2.ko INSTALL <zaptel-1.2.11-source-root-dir>/torisa.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcfxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct1xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcte11xp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcusb.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko INSTALL <zaptel-1.2.11-source-root-dir>/zaptel.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-eth.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-loc.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' if ! [ -f wcfxsusb.o ]; then \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \ fi; \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0 [ `id -u` = 0 ] && /sbin/ldconfig || : rm -f /usr/lib/libtonezone.so ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so.1 ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v /usr/lib/libtonezone.so; fi install -D -m 644 zaptel.h /usr/include/linux/zaptel.h install -D -m 644 torisa.h /usr/include/linux/torisa.h install -D -m 644 tonezone.h /usr/include/tonezone.h install -m 644 doc/ztcfg.8 /usr/share/man/man8 install -m 644 doc/zttool.8 /usr/share/man/man8 [ `id -u` = 0 ] && /sbin/depmod -a 2.6.16-rc6-060427a || : [ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf build_tools/genmodconf linux26 "" "tor2 torisa wcusb wcfxo wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy" Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. *** *** In the future, do not edit /etc/modprobe.d/zaptel, but *** instead put your changes in another file *** in the same directory so that they will not *** be overwritten by future Zaptel updates. *** # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found.
Matthew Rubenstein
2006-Nov-30 13:18 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
I'm having problems installing ztdummy on my CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP only to PSTN). I unpacked the kernel sources and headers in a directory, made (but not re/installed) the kernel, unpacked the zaptel-1.2.11 tarball, then went thru the make sequence. It seemed to proceed OK (without errors, just some warnings), but didn't seem to result in a loadable ztdummy kernel module. Details appended, followed by a complete (failed) install session transcript: ------------------------------------------------------------------------- # cd <path-to-zaptel-1.2.11-source> # export KSRC=<path-to-kernel-source-root-dir> # make clean # make config [... series of shell script conditionals apparently executed OK ...] # make linux26 [... series of CC/LD reports, some warnings, no errors ...] # make install [... series of INSTALL messages, same warnings from (make linux26), no errors ...] # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found. ------------------------------------------------------------------------- (make linux26) generated some warnings about various usb_*_dev symbols undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install) repeated those warnings. (modprobe ztdummy) finished with ------------------------------------------------------------------------- Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. [...] ------------------------------------------------------------------------- but seemed to complete without errors. (make install) included a line ------------------------------------------------------------------------- INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko ------------------------------------------------------------------------- but no success. Complete (failed) install session transcript: ------------------------------------------------------------------------- # make clean rm -f torisatool makefw tor2fw.h radfw.h rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so *.lo make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> clean make[1]: Entering directory `<kernel-source-root-dir>' CLEAN <zaptel-1.2.11-source-root-dir>/wct4xxp CLEAN <zaptel-1.2.11-source-root-dir>/.tmp_versions make[1]: Leaving directory `<kernel-source-root-dir>' rm -rf .tmp_versions rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f fxotune rm -f core rm -f ztcfg-shared fxstest rm -rf misdn* rm -rf mISDNuser* # make config if [ -d /etc/rc.d/init.d ]; then \ install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ elif [ -d /etc/init.d ]; then \ install -D -m 755 zaptel.init /etc/init.d/zaptel; \ //sbin/chkconfig --add zaptel; \ fi if [ -d /etc/default ] && [ ! -f /etc/default/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/default/zaptel; \ fi if [ -d /etc/sysconfig ] && [ ! -f /etc/sysconfig/zaptel ]; then \ install -D -m 644 zaptel.sysconfig /etc/sysconfig/zaptel; \ fi if [ -d /etc/sysconfig/network-scripts ]; then \ install -D -m 755 ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc; \ fi # 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 > tones.h 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="1.2.11" 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 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 -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -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\" -c -o zttool.o zttool.c cc -o zttool zttool.o -lnewt 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' CC [M] <zaptel-1.2.11-source-root-dir>/zaptel.o <zaptel-1.2.11-source-root-dir>/zaptel.c:188: warning: ?fcstab? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/tor2.o CC [M] <zaptel-1.2.11-source-root-dir>/torisa.o <zaptel-1.2.11-source-root-dir>/torisa.c:1147: warning: ?set_tor_base? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wcusb.o CC [M] <zaptel-1.2.11-source-root-dir>/wcfxo.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm.o CC [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.o CC [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.o <zaptel-1.2.11-source-root-dir>/ztd-eth.c:185: warning: initialization from incompatible pointer type CC [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.o CC [M] <zaptel-1.2.11-source-root-dir>/pciradio.o <zaptel-1.2.11-source-root-dir>/pciradio.c: In function ?pciradio_interrupt?: <zaptel-1.2.11-source-root-dir>/pciradio.c:508: warning: ?byte2? is used uninitialized in this function CC [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.o CC [M] <zaptel-1.2.11-source-root-dir>/ztdummy.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/base.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used HOSTCC <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-128D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct128_fw.h <zaptel-1.2.11-source-root-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-root-dir>/wct4xxp/OCT6114-64D.ima <zaptel-1.2.11-source-root-dir>/wct4xxp/vpmoct064_fw.h CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.o <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-root-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o CC [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/../oct612x/apilib/llman/octapi_llman.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxo.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/slic.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_fxs.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xbus-core.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.o <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" <zaptel-1.2.11-source-root-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xproto.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/card_global.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.o CC [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.o Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! CC <zaptel-1.2.11-source-root-dir>/pciradio.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/pciradio.ko CC <zaptel-1.2.11-source-root-dir>/tor2.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/tor2.ko CC <zaptel-1.2.11-source-root-dir>/torisa.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/torisa.ko CC <zaptel-1.2.11-source-root-dir>/wcfxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcfxo.ko CC <zaptel-1.2.11-source-root-dir>/wct1xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct1xxp.ko CC <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko CC <zaptel-1.2.11-source-root-dir>/wctdm.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm.ko CC <zaptel-1.2.11-source-root-dir>/wctdm24xxp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko CC <zaptel-1.2.11-source-root-dir>/wcte11xp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcte11xp.ko CC <zaptel-1.2.11-source-root-dir>/wcusb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/wcusb.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko CC <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko CC <zaptel-1.2.11-source-root-dir>/zaptel.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/zaptel.ko CC <zaptel-1.2.11-source-root-dir>/ztd-eth.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-eth.ko CC <zaptel-1.2.11-source-root-dir>/ztd-loc.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztd-loc.ko CC <zaptel-1.2.11-source-root-dir>/ztdummy.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdummy.ko CC <zaptel-1.2.11-source-root-dir>/ztdynamic.mod.o LD [M] <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' # make install ZAPTELVERSION="1.2.11" 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 <kernel-source-root-dir> make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> modules make[1]: Entering directory `<kernel-source-root-dir>' Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-root-dir>/wcusb.ko] undefined! make[1]: Leaving directory `<kernel-source-root-dir>' cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo tonezone.lo build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules Not installing firmware because we are not using hotplug firmware install -D -m 755 ztcfg /sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new /sbin/sethdlc; \ elif [ -f sethdlc ]; then \ install -D -m 755 sethdlc /sbin/sethdlc ; \ fi if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko ztdummy.ko; do \ rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \ done; \ make -C <kernel-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-root-dir> INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install; make[1]: Entering directory `<kernel-source-root-dir>' INSTALL <zaptel-1.2.11-source-root-dir>/pciradio.ko INSTALL <zaptel-1.2.11-source-root-dir>/tor2.ko INSTALL <zaptel-1.2.11-source-root-dir>/torisa.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcfxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct1xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wct4xxp/wct4xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm.ko INSTALL <zaptel-1.2.11-source-root-dir>/wctdm24xxp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcte11xp.ko INSTALL <zaptel-1.2.11-source-root-dir>/wcusb.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxo.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpd_fxs.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp.ko INSTALL <zaptel-1.2.11-source-root-dir>/xpp/xpp_usb.ko INSTALL <zaptel-1.2.11-source-root-dir>/zaptel.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-eth.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztd-loc.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdummy.ko INSTALL <zaptel-1.2.11-source-root-dir>/ztdynamic.ko make[1]: Leaving directory `<kernel-source-root-dir>' if ! [ -f wcfxsusb.o ]; then \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \ fi; \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0 [ `id -u` = 0 ] && /sbin/ldconfig || : rm -f /usr/lib/libtonezone.so ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so.1 ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v /usr/lib/libtonezone.so; fi install -D -m 644 zaptel.h /usr/include/linux/zaptel.h install -D -m 644 torisa.h /usr/include/linux/torisa.h install -D -m 644 tonezone.h /usr/include/tonezone.h install -m 644 doc/ztcfg.8 /usr/share/man/man8 install -m 644 doc/zttool.8 /usr/share/man/man8 [ `id -u` = 0 ] && /sbin/depmod -a 2.6.16-rc6-060427a || : [ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf build_tools/genmodconf linux26 "" "tor2 torisa wcusb wcfxo wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy" Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. *** *** In the future, do not edit /etc/modprobe.d/zaptel, but *** instead put your changes in another file *** in the same directory so that they will not *** be overwritten by future Zaptel updates. *** # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy # modprobe zaptel FATAL: Module zaptel not found. ------------------------------------------------------------------------- On Thu, 2006-11-30 at 12:00 -0700, asterisk-users-request@lists.digium.com wrote:> Date: Thu, 30 Nov 2006 19:19:14 +0200 > From: Roman Yeryomin <leroi.lists@gmail.com> > Subject: [asterisk-users] zaptel compilation problems with linux > 2.6.19 > To: asterisk-users@lists.digium.com > Message-ID: <200611301919.14686.leroi.lists@gmail.com> > Content-Type: text/plain; charset="us-ascii" > > Hello! > > I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 > -- all > give the same error) with 2.6.19 kernel > > CC > [M] /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: > error: > conflicting types for 'bool' > include/linux/types.h:36: error: previous declaration of 'bool' was > here > In file included > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27, > from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28: > include/linux/config.h:10:3: warning: no newline at end of file > make[3]: *** > [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] > Error 1 > make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] > Error 2 > make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] > Error 2 > make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19' > make: *** [linux26] Error 2 > > seems that commenting out "typedef int bool;" in xpp/xdefs.h on line > 93 works > that out, but don't know if it's completely right thing to do > > Roman >-- (C) Matthew Rubenstein
Matthew Rubenstein
2006-Nov-30 23:43 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
On Thu, 2006-11-30 at 17:56 -0700, asterisk-users-request@lists.digium.com wrote:> Message: 18 > Date: Fri, 1 Dec 2006 00:56:10 +0200 > From: Tzafrir Cohen <tzafrir.cohen@xorcom.com> > Subject: Re: [asterisk-users] zaptel compilation problems with linux > 2.6.19 > To: asterisk-users@lists.digium.com > Message-ID: <20061130225610.GJ10512@xorcom.com> > Content-Type: text/plain; charset=us-ascii > > On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein wrote: > > I'm having problems installing ztdummy on my > > CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, SIP > only > > to PSTN). I unpacked the kernel sources and headers in a directory, > made > > (but not re/installed) the kernel, unpacked the zaptel-1.2.11 > tarball, > > then went thru the make sequence. It seemed to proceed OK (without > > errors, just some warnings), but didn't seem to result in a loadable > > ztdummy kernel module. Complete (failed) install session transcript > is > > attached to this message; details appended: > > > > > ------------------------------------------------------------------------- > > # cd <path-to-zaptel-1.2.11-source> > > # export KSRC=<path-to-kernel-source-root-dir> > > # make clean > > # make config > > [... series of shell script conditionals apparently executed OK ...] > > # make linux26 > > [... series of CC/LD reports, some warnings, no errors ...] > > # make install > > [... series of INSTALL messages, same warnings from (make linux26), > no > > errors ...] > > # modprobe ztdummy > > FATAL: Module ztdummy not found. > > FATAL: Error running install command for ztdummy > > # modprobe zaptel > > FATAL: Module zaptel not found. > > > ------------------------------------------------------------------------- > > > > (make linux26) generated some warnings about various usb_*_dev > symbols > > undefined in [xpp,wcusb]/*.ko, but no actual errors. (make install) > > Those are harmless, IIRC. I'll try to recall their source.I suspected as such. But I don't think the server has full USB/UHCI support running, or fully installed: ------------------------------------------------------------------------- # lsmod Module Size Used by binfmt_misc 12168 1 dm_mod 59512 0 thermal 13864 0 processor 25284 1 thermal fan 4772 0 floppy 63172 0 generic 4836 0 [permanent] ide_generic 1504 0 [permanent] # modprobe usb_uhci FATAL: Module uhci_hcd not found. # modprobe uhci FATAL: Module uhci_hcd not found. -------------------------------------------------------------------------> > repeated those warnings. (modprobe ztdummy) finished with > > Was depmod run?No, but trying it now (after the transcripted session) didn't seem to help: ------------------------------------------------------------------------- # depmod # modprobe ztdummy FATAL: Module ztdummy not found. FATAL: Error running install command for ztdummy -------------------------------------------------------------------------> uname -r# uname -r 2.6.16-rc6-060427a> ls -l /lib/modules/2.6*/misc/*.ko# ls -l /lib/modules/2.6*/misc/*.ko -rw-r--r-- 1 root root 198617 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/pciradio.ko -rw-r--r-- 1 root root 195365 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/tor2.ko -rw-r--r-- 1 root root 122139 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/torisa.ko -rw-r--r-- 1 root root 114623 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/wcfxo.ko -rw-r--r-- 1 root root 164626 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/wct1xxp.ko -rw-r--r-- 1 root root 340812 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/wctdm24xxp.ko -rw-r--r-- 1 root root 215930 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/wctdm.ko -rw-r--r-- 1 root root 204323 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/wcte11xp.ko -rw-r--r-- 1 root root 155909 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/wcusb.ko -rw-r--r-- 1 root root 343208 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/zaptel.ko -rw-r--r-- 1 root root 106184 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/ztd-eth.ko -rw-r--r-- 1 root root 92153 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/ztd-loc.ko -rw-r--r-- 1 root root 72401 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/ztdummy.ko -rw-r--r-- 1 root root 98511 Nov 30 09:24 /lib/modules/2.6.16-rc6/misc/ztdynamic.ko> ------------------------------------------------------------------------- > > Building /etc/modprobe.d/zaptel... > > *** > > *** WARNING: > > *** If you had custom settings in /etc/modprobe.d/zaptel, > > *** they have been moved to /etc/modprobe.d/zaptel.bak. > > CentOS? /etc/modprobe.d ? What version is it, exactly?I'm not sure which CentOS version - how can I tell? ------------------------------------------------------------------------- # ls /etc/modprobe.d blacklist-compat modprobe.conf.dist zaptel zaptel.bak # cat /etc/modprobe.d/zaptel # automatically generated file; do not edit install tor2 /sbin/modprobe --ignore-install tor2 $CMDLINE_OPTS && /sbin/ztcfg install torisa /sbin/modprobe --ignore-install torisa $CMDLINE_OPTS && /sbin/ztcfg install wcusb /sbin/modprobe --ignore-install wcusb $CMDLINE_OPTS && /sbin/ztcfg install wcfxo /sbin/modprobe --ignore-install wcfxo $CMDLINE_OPTS && /sbin/ztcfg install wctdm /sbin/modprobe --ignore-install wctdm $CMDLINE_OPTS && /sbin/ztcfg install wctdm24xxp /sbin/modprobe --ignore-install wctdm24xxp $CMDLINE_OPTS && /sbin/ztcfg install ztdynamic /sbin/modprobe --ignore-install ztdynamic $CMDLINE_OPTS && /sbin/ztcfg install ztd-eth /sbin/modprobe --ignore-install ztd-eth $CMDLINE_OPTS && /sbin/ztcfg install wct1xxp /sbin/modprobe --ignore-install wct1xxp $CMDLINE_OPTS && /sbin/ztcfg install wcte11xp /sbin/modprobe --ignore-install wcte11xp $CMDLINE_OPTS && /sbin/ztcfg install pciradio /sbin/modprobe --ignore-install pciradio $CMDLINE_OPTS && /sbin/ztcfg install ztd-loc /sbin/modprobe --ignore-install ztd-loc $CMDLINE_OPTS && /sbin/ztcfg install ztdummy /sbin/modprobe --ignore-install ztdummy $CMDLINE_OPTS && /sbin/ztcfg alias wcfxs wctdm alias wct2xxp wct4xxp ------------------------------------------------------------------------- Thanks for helping me out with this problem. It's been driving me mad for a week. The consultant who (incompletely, abortively) installed a handrolled version of TrixBox from their own sources on a CentOS install, including an RC version of the kernel (and who knows what else), should be shot - or sued. But they're gone, and I'm still digging out hidden dependencies and broken holes, before I get the server into a condition where it can be safely wiped and reinstalled, without losing data and custom apps/configs.> -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir@jabber.org > +972-50-7952406 mailto:tzafrir.cohen@xorcom.com > http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir >-- (C) Matthew Rubenstein
Matthew Rubenstein
2006-Dec-02 17:17 UTC
[asterisk-users] zaptel compilation problems with linux 2.6.19
On Sat, 2006-12-02 at 09:53 -0700, asterisk-users-request@lists.digium.com wrote:> Date: Sat, 2 Dec 2006 11:51:37 +0200 > From: Tzafrir Cohen <tzafrir.cohen@xorcom.com> > Subject: Re: [asterisk-users] zaptel compilation problems with linux > 2.6.19 > To: Asterisk-Users <asterisk-users@lists.digium.com> > Message-ID: <20061202095137.GA7469@xorcom.com> > Content-Type: text/plain; charset=us-ascii > > HiHi, and thanks for the help :).> On Fri, Dec 01, 2006 at 01:43:20AM -0500, Matthew Rubenstein wrote: > > On Thu, 2006-11-30 at 17:56 -0700, > > asterisk-users-request@lists.digium.com wrote: > > > Message: 18 > > > Date: Fri, 1 Dec 2006 00:56:10 +0200 > > > From: Tzafrir Cohen <tzafrir.cohen@xorcom.com> > > > Subject: Re: [asterisk-users] zaptel compilation problems with > linux > > > 2.6.19 > > > To: asterisk-users@lists.digium.com > > > Message-ID: <20061130225610.GJ10512@xorcom.com> > > > Content-Type: text/plain; charset=us-ascii > > > > > > On Thu, Nov 30, 2006 at 02:44:03PM -0500, Matthew Rubenstein > wrote: > > > > I'm having problems installing ztdummy on my > > > > CentOS-2.6.16-rc6/Asterisk-1.2.11 datacenter server (no ZAP HW, > SIP > > > only > > > > to PSTN). I unpacked the kernel sources and headers in a > directory, > > > made > > > > (but not re/installed) the kernel, unpacked the zaptel-1.2.11 > > > tarball, > > > > then went thru the make sequence. It seemed to proceed OK > (without > > > > errors, just some warnings), but didn't seem to result in a > loadable > > > > ztdummy kernel module. Complete (failed) install session > transcript > > > is > > > > attached to this message; details appended: > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > # cd <path-to-zaptel-1.2.11-source> > > > > # export KSRC=<path-to-kernel-source-root-dir> > > > > # make clean > > > > # make config > > > > [... series of shell script conditionals apparently executed > OK ...] > > > > # make linux26 > > > > [... series of CC/LD reports, some warnings, no errors ...] > > > > # make install > > > > [... series of INSTALL messages, same warnings from (make > linux26), > > > no > > > > errors ...] > > > > # modprobe ztdummy > > > > FATAL: Module ztdummy not found. > > > > FATAL: Error running install command for ztdummy > > > > # modprobe zaptel > > > > FATAL: Module zaptel not found. > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > (make linux26) generated some warnings about various usb_*_dev > > > symbols > > > > undefined in [xpp,wcusb]/*.ko, but no actual errors. (make > install) > > > > > > Those are harmless, IIRC. I'll try to recall their source. > > > > I suspected as such. But I don't think the server has full > USB/UHCI > > support running, or fully installed: > > > > > ------------------------------------------------------------------------- > > # lsmod > > Module Size Used by > > binfmt_misc 12168 1 > > dm_mod 59512 0 > > thermal 13864 0 > > processor 25284 1 thermal > > fan 4772 0 > > floppy 63172 0 > > generic 4836 0 [permanent] > > ide_generic 1504 0 [permanent] > > # modprobe usb_uhci > > FATAL: Module uhci_hcd not found. > > # modprobe uhci > > FATAL: Module uhci_hcd not found. > > > ------------------------------------------------------------------------- > > > > > > > > repeated those warnings. (modprobe ztdummy) finished with > > > > > > Was depmod run? > > > > No, but trying it now (after the transcripted session) didn't > seem to > > help: > > > ------------------------------------------------------------------------- > > # depmod > > # modprobe ztdummy > > FATAL: Module ztdummy not found. > > FATAL: Error running install command for ztdummy > > > ------------------------------------------------------------------------- > > > > > > > uname -r > > > > # uname -r > > 2.6.16-rc6-060427a > > so depmod, modprobe and such will look > under /lib/modules/2.6.16-rc6-060427a , > but the modules were installed elsewhere: > > > > > > > > ls -l /lib/modules/2.6*/misc/*.ko > > > > # ls -l /lib/modules/2.6*/misc/*.ko > > -rw-r--r-- 1 root root 198617 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/pciradio.ko > > -rw-r--r-- 1 root root 195365 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/tor2.ko > > -rw-r--r-- 1 root root 122139 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/torisa.ko > > -rw-r--r-- 1 root root 114623 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/wcfxo.ko > > -rw-r--r-- 1 root root 164626 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/wct1xxp.ko > > -rw-r--r-- 1 root root 340812 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/wctdm24xxp.ko > > -rw-r--r-- 1 root root 215930 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/wctdm.ko > > -rw-r--r-- 1 root root 204323 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/wcte11xp.ko > > -rw-r--r-- 1 root root 155909 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/wcusb.ko > > -rw-r--r-- 1 root root 343208 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/zaptel.ko > > -rw-r--r-- 1 root root 106184 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/ztd-eth.ko > > -rw-r--r-- 1 root root 92153 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/ztd-loc.ko > > -rw-r--r-- 1 root root 72401 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/ztdummy.ko > > -rw-r--r-- 1 root root 98511 Nov 30 > 09:24 /lib/modules/2.6.16-rc6/misc/ztdynamic.ko > > One way to "fix" this is to move the modules, or pass the kernel > vesiosion explicitly to make with KVERS . However this raises the > question: does the kernel source tree you used to build the module > matches the running kernel version. > > Is it a kernel you have built? Is there a link > /lib/modules/2.6.16-060427a/build ? > > > > > > > > > ------------------------------------------------------------------------- > > > > Building /etc/modprobe.d/zaptel... > > > > *** > > > > *** WARNING: > > > > *** If you had custom settings in /etc/modprobe.d/zaptel, > > > > *** they have been moved to /etc/modprobe.d/zaptel.bak. > > > > > > CentOS? /etc/modprobe.d ? What version is it, exactly? > > > > I'm not sure which CentOS version - how can I tell? > > Where is that kernel from? Have you built it?Doesn't look like a > CentOS > kernel.OK, I did the following: # cd /lib/modules/2.6.16-rc6-060427a # ls -l build source lrwxrwxrwx 1 root root 26 Sep 10 08:54 build.orig -> /home/src/linux-2.6.16-rc6 lrwxrwxrwx 1 root root 26 Sep 10 08:54 source.orig -> /home/src/linux-2.6.16-rc6 # mv build build.orig # mv source source.orig # ln -s build <linux-2.6.16-rc6-src-root-dir> # ln -s source <linux-2.6.16-rc6-src-root-dir> # cd /lib/modules # mv 2.6.16-rc6-060427a 2.6.16-rc6-060427a.running # ln -s 2.6.16-rc6 2.6.16-rc6-060427a # cd <zaptel-1.2.11-source-root-dir> # make clean # export KSRC=<linux-2.6.16-rc6-source-root-dir> # make linux26 [... make linux26 log appended ...] # make install [... make install log appended ...] # lsmod Module Size Used by binfmt_misc 12168 1 dm_mod 59512 0 thermal 13864 0 processor 25284 1 thermal fan 4772 0 floppy 63172 0 generic 4836 0 [permanent] ide_generic 1504 0 [permanent] # modprobe ztdummy WARNING: Error inserting zaptel (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format WARNING: Error inserting zaptel (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format FATAL: Error inserting ztdummy (/lib/modules/2.6.16-rc6-060427a/misc/ztdummy.ko): Invalid module format FATAL: Error running install command for ztdummy So now it looks like the process would work, except that I'm building the modules for running under a 2.6.16-rc6-060427a kernel, but the source is just 2.6.16-rc6-060427a . The server was installed by a consultant who started with a generic CentOS install at a datacenter. Then they took all the components of Trixbox and installed them. Then they upgraded to Asterisk Realtime and DB to unixodbc , which meant that some subsystems like FreePBX were left broken. Along the way it looks like they upgraded the kernel to 2.6.16-rc6-060427a . At this point, is it a simpler problem to fix the zaptel/ztdummy modules install problems I'm having, or just backup my customizations (dialplans, AGI, DB schemas), wipe the server down to Debian (Sarge/3.1), and reinstall Asterisk (and whatever Trixbox subsystems I want to roll), then start installing zaptel/ztdummy for using Meetme (etc)? Thanks for your insights. I've already spent more time working on fixing the consultant's bad work than I would have if I had tried it myself, including the learning curve. And I'm not even really at square one. [(make linux26); (make install) logfiles]: -------------------------------------------------------------------------- # 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 > tones.h 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="1.2.11" 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 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 -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -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\" -c -o zttool.o zttool.c cc -o zttool zttool.o -lnewt 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 <linux-2.6.16-rc6-source-root-dir> make -C <linux-2.6.16-rc6-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-dir> modules make[1]: Entering directory `<linux-2.6.16-rc6-source-root-dir>' CC [M] <zaptel-1.2.11-source-dir>/zaptel.o <zaptel-1.2.11-source-dir>/zaptel.c:188: warning: ?fcstab? defined but not used CC [M] <zaptel-1.2.11-source-dir>/tor2.o CC [M] <zaptel-1.2.11-source-dir>/torisa.o <zaptel-1.2.11-source-dir>/torisa.c:1147: warning: ?set_tor_base? defined but not used CC [M] <zaptel-1.2.11-source-dir>/wcusb.o CC [M] <zaptel-1.2.11-source-dir>/wcfxo.o CC [M] <zaptel-1.2.11-source-dir>/wctdm.o CC [M] <zaptel-1.2.11-source-dir>/wctdm24xxp.o CC [M] <zaptel-1.2.11-source-dir>/ztdynamic.o CC [M] <zaptel-1.2.11-source-dir>/ztd-eth.o <zaptel-1.2.11-source-dir>/ztd-eth.c:185: warning: initialization from incompatible pointer type CC [M] <zaptel-1.2.11-source-dir>/wct1xxp.o CC [M] <zaptel-1.2.11-source-dir>/wcte11xp.o CC [M] <zaptel-1.2.11-source-dir>/pciradio.o <zaptel-1.2.11-source-dir>/pciradio.c: In function ?pciradio_interrupt?: <zaptel-1.2.11-source-dir>/pciradio.c:508: warning: ?byte2? is used uninitialized in this function CC [M] <zaptel-1.2.11-source-dir>/ztd-loc.o CC [M] <zaptel-1.2.11-source-dir>/ztdummy.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/base.o <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used HOSTCC <zaptel-1.2.11-source-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-dir>/wct4xxp/OCT6114-128D.ima <zaptel-1.2.11-source-dir>/wct4xxp/vpmoct128_fw.h <zaptel-1.2.11-source-dir>/wct4xxp/fw2h <zaptel-1.2.11-source-dir>/wct4xxp/OCT6114-64D.ima <zaptel-1.2.11-source-dir>/wct4xxp/vpmoct064_fw.h CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.o <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:33: warning: ?oct064_firmware? defined but not used <zaptel-1.2.11-source-dir>/wct4xxp/vpm450m.h:34: warning: ?oct128_firmware? defined but not used CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o CC [M] <zaptel-1.2.11-source-dir>/wct4xxp/../oct612x/apilib/llman/octapi_llman.o LD [M] <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.o CC [M] <zaptel-1.2.11-source-dir>/xpp/card_fxo.o CC [M] <zaptel-1.2.11-source-dir>/xpp/slic.o CC [M] <zaptel-1.2.11-source-dir>/xpp/card_fxs.o CC [M] <zaptel-1.2.11-source-dir>/xpp/xbus-core.o CC [M] <zaptel-1.2.11-source-dir>/xpp/xpp_zap.o <zaptel-1.2.11-source-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" <zaptel-1.2.11-source-dir>/xpp/xpp_zap.c:187:2: warning: #warning "xpp_timer must be sampled EXACTLY 1000/per second" CC [M] <zaptel-1.2.11-source-dir>/xpp/xproto.o CC [M] <zaptel-1.2.11-source-dir>/xpp/card_global.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpp.o CC [M] <zaptel-1.2.11-source-dir>/xpp/xpp_usb.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.o Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! CC <zaptel-1.2.11-source-dir>/pciradio.mod.o LD [M] <zaptel-1.2.11-source-dir>/pciradio.ko CC <zaptel-1.2.11-source-dir>/tor2.mod.o LD [M] <zaptel-1.2.11-source-dir>/tor2.ko CC <zaptel-1.2.11-source-dir>/torisa.mod.o LD [M] <zaptel-1.2.11-source-dir>/torisa.ko CC <zaptel-1.2.11-source-dir>/wcfxo.mod.o LD [M] <zaptel-1.2.11-source-dir>/wcfxo.ko CC <zaptel-1.2.11-source-dir>/wct1xxp.mod.o LD [M] <zaptel-1.2.11-source-dir>/wct1xxp.ko CC <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.mod.o LD [M] <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.ko CC <zaptel-1.2.11-source-dir>/wctdm.mod.o LD [M] <zaptel-1.2.11-source-dir>/wctdm.ko CC <zaptel-1.2.11-source-dir>/wctdm24xxp.mod.o LD [M] <zaptel-1.2.11-source-dir>/wctdm24xxp.ko CC <zaptel-1.2.11-source-dir>/wcte11xp.mod.o LD [M] <zaptel-1.2.11-source-dir>/wcte11xp.ko CC <zaptel-1.2.11-source-dir>/wcusb.mod.o LD [M] <zaptel-1.2.11-source-dir>/wcusb.ko CC <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.mod.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.ko CC <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.mod.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.ko CC <zaptel-1.2.11-source-dir>/xpp/xpp.mod.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpp.ko CC <zaptel-1.2.11-source-dir>/xpp/xpp_usb.mod.o LD [M] <zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko CC <zaptel-1.2.11-source-dir>/zaptel.mod.o LD [M] <zaptel-1.2.11-source-dir>/zaptel.ko CC <zaptel-1.2.11-source-dir>/ztd-eth.mod.o LD [M] <zaptel-1.2.11-source-dir>/ztd-eth.ko CC <zaptel-1.2.11-source-dir>/ztd-loc.mod.o LD [M] <zaptel-1.2.11-source-dir>/ztd-loc.ko CC <zaptel-1.2.11-source-dir>/ztdummy.mod.o LD [M] <zaptel-1.2.11-source-dir>/ztdummy.ko CC <zaptel-1.2.11-source-dir>/ztdynamic.mod.o LD [M] <zaptel-1.2.11-source-dir>/ztdynamic.ko make[1]: Leaving directory `<linux-2.6.16-rc6-source-root-dir>' -------------------------------------------------------------------------- -------------------------------------------------------------------------- # make install ZAPTELVERSION="1.2.11" 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 <linux-2.6.16-rc6-source-root-dir> make -C <linux-2.6.16-rc6-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-dir> modules make[1]: Entering directory `<linux-2.6.16-rc6-source-root-dir>' Building modules, stage 2. MODPOST *** Warning: "usb_deregister_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_dev" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_reset_device" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_free" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_free_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_buffer_alloc" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_alloc_urb" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko] undefined! *** Warning: "usb_set_interface" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_control_msg" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_deregister" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_register_driver" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! *** Warning: "usb_submit_urb" [<zaptel-1.2.11-source-dir>/wcusb.ko] undefined! make[1]: Leaving directory `<linux-2.6.16-rc6-source-root-dir>' cc -shared -Wl,-soname,libtonezone.so.1.0 -lm -o libtonezone.so zonedata.lo tonezone.lo build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules Not installing firmware because we are not using hotplug firmware install -D -m 755 ztcfg /sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new /sbin/sethdlc; \ elif [ -f sethdlc ]; then \ install -D -m 755 sethdlc /sbin/sethdlc ; \ fi if [ -f zttool ]; then install -D -m 755 zttool /sbin/zttool; fi for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko wct1xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko ztdummy.ko; do \ rm -f /lib/modules/2.6.16-rc6-060427a/extra/$x ; \ done; \ make -C <linux-2.6.16-rc6-source-root-dir> SUBDIRS=<zaptel-1.2.11-source-dir> INSTALL_MOD_PATHINSTALL_MOD_DIR=misc modules_install; make[1]: Entering directory `<linux-2.6.16-rc6-source-root-dir>' INSTALL <zaptel-1.2.11-source-dir>/pciradio.ko INSTALL <zaptel-1.2.11-source-dir>/tor2.ko INSTALL <zaptel-1.2.11-source-dir>/torisa.ko INSTALL <zaptel-1.2.11-source-dir>/wcfxo.ko INSTALL <zaptel-1.2.11-source-dir>/wct1xxp.ko INSTALL <zaptel-1.2.11-source-dir>/wct4xxp/wct4xxp.ko INSTALL <zaptel-1.2.11-source-dir>/wctdm.ko INSTALL <zaptel-1.2.11-source-dir>/wctdm24xxp.ko INSTALL <zaptel-1.2.11-source-dir>/wcte11xp.ko INSTALL <zaptel-1.2.11-source-dir>/wcusb.ko INSTALL <zaptel-1.2.11-source-dir>/xpp/xpd_fxo.ko INSTALL <zaptel-1.2.11-source-dir>/xpp/xpd_fxs.ko INSTALL <zaptel-1.2.11-source-dir>/xpp/xpp.ko INSTALL <zaptel-1.2.11-source-dir>/xpp/xpp_usb.ko INSTALL <zaptel-1.2.11-source-dir>/zaptel.ko INSTALL <zaptel-1.2.11-source-dir>/ztd-eth.ko INSTALL <zaptel-1.2.11-source-dir>/ztd-loc.ko INSTALL <zaptel-1.2.11-source-dir>/ztdummy.ko INSTALL <zaptel-1.2.11-source-dir>/ztdynamic.ko make[1]: Leaving directory `<linux-2.6.16-rc6-source-root-dir>' if ! [ -f wcfxsusb.o ]; then \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxsusb.o; \ fi; \ rm -f /lib/modules/2.6.16-rc6-060427a/misc/wcfxs.o install -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0 [ `id -u` = 0 ] && /sbin/ldconfig || : rm -f /usr/lib/libtonezone.so ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so.1 ln -sf libtonezone.so.1.0 \ /usr/lib/libtonezone.so if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v /usr/lib/libtonezone.so; fi install -D -m 644 zaptel.h /usr/include/linux/zaptel.h install -D -m 644 torisa.h /usr/include/linux/torisa.h install -D -m 644 tonezone.h /usr/include/tonezone.h install -m 644 doc/ztcfg.8 /usr/share/man/man8 install -m 644 doc/zttool.8 /usr/share/man/man8 [ `id -u` = 0 ] && /sbin/depmod -a 2.6.16-rc6-060427a || : [ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf build_tools/genmodconf linux26 "" "tor2 torisa wcusb wcfxo wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wcte11xp pciradio ztd-loc ztdummy" Building /etc/modprobe.d/zaptel... *** *** WARNING: *** If you had custom settings in /etc/modprobe.d/zaptel, *** they have been moved to /etc/modprobe.d/zaptel.bak. *** *** In the future, do not edit /etc/modprobe.d/zaptel, but *** instead put your changes in another file *** in the same directory so that they will not *** be overwritten by future Zaptel updates. *** <zaptel-1.2.11-source-root-dir># lsmod Module Size Used by binfmt_misc 12168 1 dm_mod 59512 0 thermal 13864 0 processor 25284 1 thermal fan 4772 0 floppy 63172 0 generic 4836 0 [permanent] ide_generic 1504 0 [permanent] <zaptel-1.2.11-source-root-dir># modprobe ztdummy WARNING: Error inserting zaptel (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format WARNING: Error inserting zaptel (/lib/modules/2.6.16-rc6-060427a/misc/zaptel.ko): Invalid module format FATAL: Error inserting ztdummy (/lib/modules/2.6.16-rc6-060427a/misc/ztdummy.ko): Invalid module format FATAL: Error running install command for ztdummy --------------------------------------------------------------------------> Tzafrir Cohen > icq#16849755 jabber:tzafrir@jabber.org > +972-50-7952406 mailto:tzafrir.cohen@xorcom.com > http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir-- (C) Matthew Rubenstein