[Home]

Summary:ASTERISK-05622: make install places drivers in wrong directory
Reporter:r. m. alarcon (rmalarc)Labels:
Date Opened:2005-11-16 18:20:28.000-0600Date Closed:2011-06-07 14:03:15
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I complied a custom kernel (2.6.8.101005). There's the stock kernel 2.6.8 installed in my system.

when installing zaptel, it deletes the old drivers from /lib/modules/2.6.8.10005/. However it copies the new ones to /lib/modules/2.6.8/.


see output.


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

make install
/lib/modules/2.6.8.101005/build
make -C /lib/modules/2.6.8.101005/build SUBDIRS=/usr/src/zaptel-1.2.0-rc2 modules
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
 Building modules, stage 2.
 MODPOST
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
**** Dynamic filesystem detected -- not creating device nodes
**** If you are running udev, read README.udev
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
if [ -f zaptel.ko ]; then \
       for x in zaptel.ko tor2.ko torisa.ko wcusb.ko wcfxo.ko wctdm.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.8.101005/extra/$x ; \
       done; \
       make -C /lib/modules/2.6.8.101005/build SUBDIRS=/usr/src/zaptel-1.2.0-rc2 INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install; \
       if ! [ -f wcfxsusb.ko ]; then \
               rm -f /lib/modules/2.6.8.101005/misc/wcfxsusb.ko; \
       fi; \
       rm -f /lib/modules/2.6.8.101005/misc/wcfxs.ko; \
else \
       for x in zaptel.o tor2.o torisa.o wcusb.o wcfxo.o wctdm.o ztdynamic.o ztd-eth.o wct1xxp.o wct4xxp.o wcte11xp.o pciradio.o ztd-loc.o ztdummy.o; do \
               install -D -m 644 $x /lib/modules/2.6.8.101005/misc/$x ; \
       done; \
       if ! [ -f wcfxsusb.o ]; then \
               rm -f /lib/modules/2.6.8.101005/misc/wcfxsusb.o; \
       fi; \
       rm -f /lib/modules/2.6.8.101005/misc/wcfxs.o; \
fi
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
 INSTALL /usr/src/zaptel-1.2.0-rc2/pciradio.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/tor2.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/torisa.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/wcfxo.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/wct1xxp.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/wct4xxp.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/wctdm.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/wcte11xp.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/wcusb.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/zaptel.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/ztd-eth.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/ztd-loc.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/ztdummy.ko
 INSTALL /usr/src/zaptel-1.2.0-rc2/ztdynamic.ko
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
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 /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
if [ -n "/etc/modprobe.d/zaptel" ]; then \
       if [ -f /etc/modprobe.d/zaptel ]; then mv -f /etc/modprobe.d/zaptel /etc/modprobe.d/zaptel.bak ; fi; \
       cat /etc/modprobe.d/zaptel.bak | grep -v "alias char-major-250" | \
       grep -v "post-install torisa /sbin/ztcfg" | \
       grep -v "post-install wcfxsusb /sbin/ztcfg" | \
       grep -v "alias wctdm" | \
       grep -v "post-install wctdm /sbin/ztcfg" > /etc/modprobe.d/zaptel; \
       if ! grep "options torisa" /etc/modprobe.d/zaptel; then \
               echo "options torisa base=0xd0000" >> /etc/modprobe.d/zaptel; \
       fi; \
       if ! grep "alias char-major-196" /etc/modprobe.d/zaptel; then \
               echo "alias char-major-196 torisa" >> /etc/modprobe.d/zaptel; \
       fi; \
       for x in zaptel tor2 torisa wcusb wcfxo wctdm ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp pciradio ztd-loc  ztdummy; do \
               if ! grep -q "post-install $x" /etc/modprobe.d/zaptel; then \
                       if ! grep -q "install $x " /etc/modprobe.d/zaptel; then \
                               if [ "$x" != "zaptel" ] ; then \
                                       if [ -f zaptel.ko ]; then echo "install $x /sbin/modprobe --ignore-install $x && /sbin/ztcfg" >> /etc/modprobe.d/zaptel; \
                                       else echo "post-install $x /sbin/ztcfg" >> /etc/modprobe.d/zaptel; \
                                       fi; \
                               fi; \
                       fi; \
               fi; \
       done; \
       if ! grep "ias wcfxs" /etc/modprobe.d/zaptel; then \
               echo "alias wcfxs wctdm" >> /etc/modprobe.d/zaptel; \
       fi; \
       if ! grep "alias wct2xxp" /etc/modprobe.d/zaptel; then \
               echo "alias wct2xxp wct4xxp" >> /etc/modprobe.d/zaptel; \
       fi; \
fi
options torisa base=0xd0000
alias char-major-196 torisa
alias wcfxs wctdm
alias wct2xxp wct4xxp
if [ -d /etc/modutils ]; then \
       /sbin/update-modules ; \
fi
[ `id -u` = 0 ] && /sbin/depmod -a 2.6.8.101005 || :
[ -f /etc/zaptel.conf ] || install -D -m 644 zaptel.conf.sample /etc/zaptel.conf
pear:/usr/src/zaptel-1.2.0-rc2#
Comments:By: Mark Spencer (markster) 2005-11-17 19:55:45.000-0600

The module location is based on your kernel installation.  We do our best when removing the modules, but we depend upon the kernel to select the installation location, and we don't have any power to change it.