Summary:ASTERISK-08031: Zaptel 1.2.10 will not install on Ubuntu 6.10
Reporter:Strom Carlson (stromcarlson)Labels:
Date Opened:2006-10-30 14:38:16.000-0600Date Closed:2006-11-01 12:33:19.000-0600
Versions:Frequency of
Description:The "make install" process appears to be broken under Ubuntu 6.10, where an Ubuntu 6.06 system with the same prerequisite packages installed allows Zaptel 1.2.10 to install.

The following additional packages and their dependencies are installed following a clean install of Ubuntu:

linux-headers-$(uname -r)

Zaptel's "make" process completes successfully.  However, the "make install" process produces the following output:

-p: not found
chkconfig: not found
ZAPTELVERSION="1.2.10" 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 ; \

rm -f version.h.tmp
make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/usr/src/zaptel-1.2.10 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
-p: not found
chkconfig: not found
 Building modules, stage 2.
WARNING: /usr/src/zaptel-1.2.10/xpp/xpd_fxs: 'slic_cmd_direct_write' exported twice. Previous export was in /usr/src/zaptel-1.2.10/xpp/xpd_fxo.ko
WARNING: /usr/src/zaptel-1.2.10/xpp/xpd_fxs: 'slic_cmd_direct_read' exported twice. Previous export was in /usr/src/zaptel-1.2.10/xpp/xpd_fxo.ko
WARNING: /usr/src/zaptel-1.2.10/xpp/xpd_fxs: 'slic_cmd_indirect_write' exported twice. Previous export was in /usr/src/zaptel-1.2.10/xpp/xpd_fxo.ko
WARNING: /usr/src/zaptel-1.2.10/xpp/xpd_fxs: 'slic_cmd_indirect_read' exported twice. Previous export was in /usr/src/zaptel-1.2.10/xpp/xpd_fxo.ko
WARNING: /usr/src/zaptel-1.2.10/xpp/xpd_fxs: 'dump_slic_cmd' exported twice. Previous export was in /usr/src/zaptel-1.2.10/xpp/xpd_fxo.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules
if [ -d /usr/lib/hotplug/firmware ]; then \
               install -m 644 wct4xxp/*.ima /usr/lib/hotplug/firmware; \
if [ -d /lib/firmware ]; then \
               install -m 644 wct4xxp/*.ima /lib/firmware; \
Installed 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 ; \
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.17-10-generic/extra/$x ; \
       done; \
       make -C /lib/modules/2.6.17-10-generic/build SUBDIRS=/usr/src/zaptel-1.2.10 INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install;
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
 INSTALL /usr/src/zaptel-1.2.10/pciradio.ko
 INSTALL /usr/src/zaptel-1.2.10/tor2.ko
 INSTALL /usr/src/zaptel-1.2.10/torisa.ko
 INSTALL /usr/src/zaptel-1.2.10/wcfxo.ko
 INSTALL /usr/src/zaptel-1.2.10/wct1xxp.ko
 INSTALL /usr/src/zaptel-1.2.10/wct4xxp/wct4xxp.ko
 INSTALL /usr/src/zaptel-1.2.10/wctdm.ko
 INSTALL /usr/src/zaptel-1.2.10/wctdm24xxp.ko
 INSTALL /usr/src/zaptel-1.2.10/wcte11xp.ko
 INSTALL /usr/src/zaptel-1.2.10/wcusb.ko
 INSTALL /usr/src/zaptel-1.2.10/xpp/xpd_fxo.ko
 INSTALL /usr/src/zaptel-1.2.10/xpp/xpd_fxs.ko
 INSTALL /usr/src/zaptel-1.2.10/xpp/xpp.ko
 INSTALL /usr/src/zaptel-1.2.10/xpp/xpp_usb.ko
 INSTALL /usr/src/zaptel-1.2.10/zaptel.ko
 INSTALL /usr/src/zaptel-1.2.10/ztd-eth.ko
 INSTALL /usr/src/zaptel-1.2.10/ztd-loc.ko
 INSTALL /usr/src/zaptel-1.2.10/ztdummy.ko
 INSTALL /usr/src/zaptel-1.2.10/ztdynamic.ko
 DEPMOD  2.6.17-10-generic
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
if ! [ -f wcfxsusb.o ]; then \
               rm -f /lib/modules/2.6.17-10-generic/misc/wcfxsusb.o; \
       fi; \
       rm -f /lib/modules/2.6.17-10-generic/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 \
ln -sf libtonezone.so.1.0 \
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.17-10-generic || :
[ -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"
[: 66: ==: unexpected operator
[: 66: ==: unexpected operator
Unknown kernel build version requested... exiting.
make: *** [install] Error 1
Comments:By: Matt O'Gorman (mogorman) 2006-11-01 12:33:19.000-0600

this is a problem with ubuntu using dash for sh instead of bash.  If you resymlink this should work, I believe this bug is already on ubuntu buglist as dash is pretty lame in comparison to bash, and has broken several thousand makefiles and sh scripts mog