[asterisk-users] zaptel compilation problems with linux 2.6.19

Matthew Rubenstein email at mattruby.com
Thu Nov 30 13:18:09 MST 2006


	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 at lists.digium.com wrote:
> Date: Thu, 30 Nov 2006 19:19:14 +0200
> From: Roman Yeryomin <leroi.lists at gmail.com>
> Subject: [asterisk-users] zaptel compilation problems with linux
>         2.6.19
> To: asterisk-users at lists.digium.com
> Message-ID: <200611301919.14686.leroi.lists at 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



More information about the asterisk-users mailing list