[asterisk-dev] Zaptel woes (full compilation history)
J. Oquendo
joquendo at hushmail.com
Fri Jun 23 13:57:54 MST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For clarity I removed what I previously installed, redid my kernel
to make sure CRC_CCITT was a module since I read somewhere I
needed to make sure it was built properly..
linux:/temp/z/zaptel-1.2.6 # grep -i cci /usr/src/linux/.config
CONFIG_CRC_CCITT=m
Anyhow, I tried separating the install commands for clarity...
- -------------------> make clean
linux:/temp/z/zaptel-1.2.6 # make clean
rm -f torisatool makefw tor2fw.h radfw.h
rm -f ztcfg torisatool makefw ztmonitor ztspeed zttest fxotune
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so *.lo
make -C /lib/modules/2.6.13-15.10-default/build
SUBDIRS=/root/AST/zaptel-1.2.6 clean
make[1]: Entering directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
make -C ../../../linux-2.6.13-15.10 O=../linux-2.6.13-15.10-
obj/i386/default clean
CLEAN /root/AST/zaptel-1.2.6/.tmp_versions
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
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
- -------------------> make linux26
linux:/temp/z/zaptel-1.2.6 # 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.6" 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\" zttest.c -o
zttest
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -
DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o fxotune.o
fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.13-15.10-default/build
make -C /lib/modules/2.6.13-15.10-default/build
SUBDIRS=/root/AST/zaptel-1.2.6 modules
make[1]: Entering directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
make -C ../../../linux-2.6.13-15.10 O=../linux-2.6.13-15.10-
obj/i386/default modules
CC [M] /root/AST/zaptel-1.2.6/zaptel.o
/root/AST/zaptel-1.2.6/zaptel.c:188: warning: ‘fcstab’ defined
but not used
CC [M] /root/AST/zaptel-1.2.6/r1t1.o
CC [M] /root/AST/zaptel-1.2.6/tor2.o
CC [M] /root/AST/zaptel-1.2.6/torisa.o
/root/AST/zaptel-1.2.6/torisa.c:1145: warning: ‘set_tor_base’
defined but not used
CC [M] /root/AST/zaptel-1.2.6/wcusb.o
CC [M] /root/AST/zaptel-1.2.6/wcfxo.o
CC [M] /root/AST/zaptel-1.2.6/wctdm.o
CC [M] /root/AST/zaptel-1.2.6/wctdm24xxp.o
CC [M] /root/AST/zaptel-1.2.6/ztdynamic.o
CC [M] /root/AST/zaptel-1.2.6/ztd-eth.o
CC [M] /root/AST/zaptel-1.2.6/wct1xxp.o
CC [M] /root/AST/zaptel-1.2.6/wct4xxp.o
CC [M] /root/AST/zaptel-1.2.6/wcte11xp.o
CC [M] /root/AST/zaptel-1.2.6/pciradio.o
/root/AST/zaptel-1.2.6/pciradio.c: In function ‘_do_encdec’:
/root/AST/zaptel-1.2.6/pciradio.c:504: warning: ‘byte2’ is used
uninitialized in this function
/root/AST/zaptel-1.2.6/pciradio.c: In function ‘pciradio_ioctl’:
/root/AST/zaptel-1.2.6/pciradio.c:504: warning: ‘byte2’ is used
uninitialized in this function
/root/AST/zaptel-1.2.6/pciradio.c: In function
‘pciradio_hardware_init’:
/root/AST/zaptel-1.2.6/pciradio.c:1440: warning: ‘byte1’ may be
used uninitialized in this function
/root/AST/zaptel-1.2.6/pciradio.c:1440: warning: ‘byte2’ may be
used uninitialized in this function
CC [M] /root/AST/zaptel-1.2.6/ztd-loc.o
CC [M] /root/AST/zaptel-1.2.6/ztdummy.o
CC [M] /root/AST/zaptel-1.2.6/xpp/card_fxs.o
In file included from /root/AST/zaptel-1.2.6/xpp/xpd.h:27,
from /root/AST/zaptel-1.2.6/xpp/card_fxs.c:26:
/root/AST/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
ignored on function return type
CC [M] /root/AST/zaptel-1.2.6/xpp/slic.o
In file included from /root/AST/zaptel-1.2.6/xpp/slic.c:23:
/root/AST/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
ignored on function return type
CC [M] /root/AST/zaptel-1.2.6/xpp/xproto.o
In file included from /root/AST/zaptel-1.2.6/xpp/xpd.h:27,
from /root/AST/zaptel-1.2.6/xpp/xproto.c:23:
/root/AST/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.c:79: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.c:110: warning: type qualifiers
ignored on function return type
CC [M] /root/AST/zaptel-1.2.6/xpp/card_global.o
In file included from /root/AST/zaptel-1.2.6/xpp/xpd.h:27,
from /root/AST/zaptel-1.2.6/xpp/card_global.c:24:
/root/AST/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
ignored on function return type
CC [M] /root/AST/zaptel-1.2.6/xpp/xpp_zap.o
In file included from /root/AST/zaptel-1.2.6/xpp/xpp_zap.c:41:
/root/AST/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:365:2: warning: #warning This
module will not be usable since the kernel HZ
setting is not 1000 ticks per second.
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c: In function ‘xpd_alloc’:
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:664: warning: ISO C90 forbids
mixed declarations and code
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c: In function
‘proc_sync_read’:
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:955: warning: ISO C90 forbids
mixed declarations and code
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c: In function
‘proc_sync_write’:
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:975: warning: ISO C90 forbids
mixed declarations and code
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c: In function ‘xbus_remove’:
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:1387: warning: ISO C90 forbids
mixed declarations and code
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c: In function
‘xpp_zap_init’:
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:2229: warning: ISO C90 forbids
mixed declarations and code
/root/AST/zaptel-1.2.6/xpp/xpp_zap.c:365:2: warning: #warning This
module will not be usable since the kernel HZ
setting is not 1000 ticks per second.
CC [M] /root/AST/zaptel-1.2.6/xpp/zap_debug.o
LD [M] /root/AST/zaptel-1.2.6/xpp/xpd_fxs.o
LD [M] /root/AST/zaptel-1.2.6/xpp/xpp.o
CC [M] /root/AST/zaptel-1.2.6/xpp/xpp_usb.o
In file included from /root/AST/zaptel-1.2.6/xpp/xpd.h:27,
from /root/AST/zaptel-1.2.6/xpp/xpp_usb.c:40:
/root/AST/zaptel-1.2.6/xpp/xproto.h:131: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xproto.h:134: warning: type qualifiers
ignored on function return type
/root/AST/zaptel-1.2.6/xpp/xpp_usb.c: In function
‘set_endpoints’:
/root/AST/zaptel-1.2.6/xpp/xpp_usb.c:428: warning: ISO C90 forbids
mixed declarations and code
/root/AST/zaptel-1.2.6/xpp/xpp_usb.c: In function
‘xusb_read_proc’:
/root/AST/zaptel-1.2.6/xpp/xpp_usb.c:834: warning: ISO C90 forbids
mixed declarations and code
Building modules, stage 2.
MODPOST
CC /root/AST/zaptel-1.2.6/pciradio.mod.o
LD [M] /root/AST/zaptel-1.2.6/pciradio.ko
CC /root/AST/zaptel-1.2.6/r1t1.mod.o
LD [M] /root/AST/zaptel-1.2.6/r1t1.ko
CC /root/AST/zaptel-1.2.6/tor2.mod.o
LD [M] /root/AST/zaptel-1.2.6/tor2.ko
CC /root/AST/zaptel-1.2.6/torisa.mod.o
LD [M] /root/AST/zaptel-1.2.6/torisa.ko
CC /root/AST/zaptel-1.2.6/wcfxo.mod.o
LD [M] /root/AST/zaptel-1.2.6/wcfxo.ko
CC /root/AST/zaptel-1.2.6/wct1xxp.mod.o
LD [M] /root/AST/zaptel-1.2.6/wct1xxp.ko
CC /root/AST/zaptel-1.2.6/wct4xxp.mod.o
LD [M] /root/AST/zaptel-1.2.6/wct4xxp.ko
CC /root/AST/zaptel-1.2.6/wctdm.mod.o
LD [M] /root/AST/zaptel-1.2.6/wctdm.ko
CC /root/AST/zaptel-1.2.6/wctdm24xxp.mod.o
LD [M] /root/AST/zaptel-1.2.6/wctdm24xxp.ko
CC /root/AST/zaptel-1.2.6/wcte11xp.mod.o
LD [M] /root/AST/zaptel-1.2.6/wcte11xp.ko
CC /root/AST/zaptel-1.2.6/wcusb.mod.o
LD [M] /root/AST/zaptel-1.2.6/wcusb.ko
CC /root/AST/zaptel-1.2.6/xpp/xpd_fxs.mod.o
LD [M] /root/AST/zaptel-1.2.6/xpp/xpd_fxs.ko
CC /root/AST/zaptel-1.2.6/xpp/xpp.mod.o
LD [M] /root/AST/zaptel-1.2.6/xpp/xpp.ko
CC /root/AST/zaptel-1.2.6/xpp/xpp_usb.mod.o
LD [M] /root/AST/zaptel-1.2.6/xpp/xpp_usb.ko
CC /root/AST/zaptel-1.2.6/zaptel.mod.o
LD [M] /root/AST/zaptel-1.2.6/zaptel.ko
CC /root/AST/zaptel-1.2.6/ztd-eth.mod.o
LD [M] /root/AST/zaptel-1.2.6/ztd-eth.ko
CC /root/AST/zaptel-1.2.6/ztd-loc.mod.o
LD [M] /root/AST/zaptel-1.2.6/ztd-loc.ko
CC /root/AST/zaptel-1.2.6/ztdummy.mod.o
LD [M] /root/AST/zaptel-1.2.6/ztdummy.ko
CC /root/AST/zaptel-1.2.6/ztdynamic.mod.o
LD [M] /root/AST/zaptel-1.2.6/ztdynamic.ko
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
- -------------------> make install
linux:/temp/z/zaptel-1.2.6 # make install
ZAPTELVERSION="1.2.6" 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
/lib/modules/2.6.13-15.10-default/build
make -C /lib/modules/2.6.13-15.10-default/build
SUBDIRS=/root/AST/zaptel-1.2.6 modules
make[1]: Entering directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
make -C ../../../linux-2.6.13-15.10 O=../linux-2.6.13-15.10-
obj/i386/default modules
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
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
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 r1t1.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko
wctdm.ko wctdm24xxp.ko ztdynamic.ko ztd-eth.ko
wct1xxp.ko wct4xxp.ko wcte11xp.ko pciradio.ko ztd-loc.ko
ztdummy.ko; do \
rm -f /lib/modules/2.6.13-15.10-default/extra/$x ; \
done; \
make -C /lib/modules/2.6.13-15.10-default/build
SUBDIRS=/root/AST/zaptel-1.2.6 INSTALL_MOD_PATH=
INSTALL_MOD_DIR=misc
modules_install;
make[1]: Entering directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
make -C ../../../linux-2.6.13-15.10 O=../linux-2.6.13-15.10-
obj/i386/default modules_install
INSTALL /root/AST/zaptel-1.2.6/pciradio.ko
INSTALL /root/AST/zaptel-1.2.6/r1t1.ko
INSTALL /root/AST/zaptel-1.2.6/tor2.ko
INSTALL /root/AST/zaptel-1.2.6/torisa.ko
INSTALL /root/AST/zaptel-1.2.6/wcfxo.ko
INSTALL /root/AST/zaptel-1.2.6/wct1xxp.ko
INSTALL /root/AST/zaptel-1.2.6/wct4xxp.ko
INSTALL /root/AST/zaptel-1.2.6/wctdm.ko
INSTALL /root/AST/zaptel-1.2.6/wctdm24xxp.ko
INSTALL /root/AST/zaptel-1.2.6/wcte11xp.ko
INSTALL /root/AST/zaptel-1.2.6/wcusb.ko
INSTALL /root/AST/zaptel-1.2.6/xpp/xpd_fxs.ko
INSTALL /root/AST/zaptel-1.2.6/xpp/xpp.ko
INSTALL /root/AST/zaptel-1.2.6/xpp/xpp_usb.ko
INSTALL /root/AST/zaptel-1.2.6/zaptel.ko
INSTALL /root/AST/zaptel-1.2.6/ztd-eth.ko
INSTALL /root/AST/zaptel-1.2.6/ztd-loc.ko
INSTALL /root/AST/zaptel-1.2.6/ztdummy.ko
INSTALL /root/AST/zaptel-1.2.6/ztdynamic.ko
make[1]: Leaving directory `/usr/src/linux-2.6.13-15.10-
obj/i386/default'
if ! [ -f wcfxsusb.o ]; then \
rm -f /lib/modules/2.6.13-15.10-default/misc/wcfxsusb.o; \
fi; \
rm -f /lib/modules/2.6.13-15.10-default/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.13-15.10-default || :
[ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample
/etc/zaptel.conf
build_tools/genmodconf linux26 "" "r1t1 tor2 torisa wcusb wcfxo
wctdm wctdm24xxp ztdynamic ztd-eth wct1xxp wct4xxp
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.
***
- -------------------> make install-udev
linux:/temp/z/zaptel-1.2.6 # make install-udev
build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules
linux:/temp/z/zaptel-1.2.6 #
- -------------------> permissions set to root for testing...
linux:/temp/z/zaptel-1.2.6 # grep -i zap /etc/udev/permissions/50-
udev.permissions
zap/*:root:root:05700
linux:/temp/z/zaptel-1.2.6
- -------------------> udev rules for devices ...
linux:~/AST/zaptel-1.2.6 # grep -i zap /etc/udev/rules.d/50-
udev.rules
KERNEL="zapctl", NAME="zap/ctl"
KERNEL="zaptimer", NAME="zap/timer"
KERNEL="zapchannel", NAME="zap/channel"
KERNEL="zappseudo", NAME="zap/pseudo"
KERNEL="zap[0-9]*", NAME="zap/%n"
linux:/temp/z/zaptel-1.2.6 # insmod zaptel.ko
insmod: error inserting 'zaptel.ko': -1 Unknown symbol in module
linux:/tmp/z/zaptel-1.2.6 # ls /proc/z*
/proc/zoneinfo
linux:/temp/z/zaptel-1.2.6 # ls -ltha *.ko
- -rw-r--r-- 1 root root 361K Jun 23 16:32 zaptel.ko
- -rw-r--r-- 1 root root 103K Jun 23 16:32 ztd-eth.ko
- -rw-r--r-- 1 root root 89K Jun 23 16:32 ztd-loc.ko
- -rw-r--r-- 1 root root 68K Jun 23 16:32 ztdummy.ko
- -rw-r--r-- 1 root root 96K Jun 23 16:32 ztdynamic.ko
- -rw-r--r-- 1 root root 160K Jun 23 16:32 wct1xxp.ko
- -rw-r--r-- 1 root root 714K Jun 23 16:32 wct4xxp.ko
- -rw-r--r-- 1 root root 217K Jun 23 16:32 wctdm.ko
- -rw-r--r-- 1 root root 359K Jun 23 16:32 wctdm24xxp.ko
- -rw-r--r-- 1 root root 212K Jun 23 16:32 wcte11xp.ko
- -rw-r--r-- 1 root root 169K Jun 23 16:32 wcusb.ko
- -rw-r--r-- 1 root root 218K Jun 23 16:32 pciradio.ko
- -rw-r--r-- 1 root root 131K Jun 23 16:32 r1t1.ko
- -rw-r--r-- 1 root root 196K Jun 23 16:32 tor2.ko
- -rw-r--r-- 1 root root 126K Jun 23 16:32 torisa.ko
- -rw-r--r-- 1 root root 115K Jun 23 16:32 wcfxo.ko
(NOTE R1T1 is my other Rhino card...)
Nothing in /dev/z* other than /dev/zero ...
perl -e 'print $i=pack(c5,(40*2),sqrt(7600),(unpack(c,P)-
2),oct(104),10);'
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5
wpwEAQECAAYFAkScVdIACgkQVnroYexO+HKg5QP/a+yanc58o5oOTcQ2lmhtKlL7b0q/
0yNIfGpKh2XxKd3GnjfhUyx5HIfl8CJu+MUZvLJ0DshprB2HDw0C4wWACITOv1Esaj9O
aOfNlxkbBfJ+Io11WtrPshNVPgRHZRgsX6HPaAj4h6j+1xTxuRl3OayRjaTDNqssLqfL
HQ2Fjww=
=1qK7
-----END PGP SIGNATURE-----
Concerned about your privacy? Instantly send FREE secure email, no account required
http://www.hushmail.com/send?l=480
Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485
More information about the asterisk-dev
mailing list