LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Insmod command not found after installing pctel-0.9.6 under rh8 (https://www.linuxquestions.org/questions/linux-software-2/insmod-command-not-found-after-installing-pctel-0-9-6-under-rh8-115777/)

Bensoft Kill MS 11-13-2003 07:45 PM

Insmod command not found after installing pctel-0.9.6 under rh8
 
I recently installed rh 8 over 9 because I couldn't get my pctel driver to work for my soft modem. I had seen people that had 8 and it worked, and after saving all my files under my xp partition, I installed 8.

However, I ran into the same problem as last time. Here's what i got, just scroll to the bottom where the error is:

[root@localhost pctel-0.9.6]# ./configure --with-hal=pct789 --with-kernel-includes=/usr/src/linux-2.4.18-14/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_PCT789
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/src/linux-2.4.18-14/include/linux/modversions.h usability... yes
checking /usr/src/linux-2.4.18-14/include/linux/modversions.h presence... yes
checking for /usr/src/linux-2.4.18-14/include/linux/modversions.h... yes
checking for Linux kernel version >= 2.4.0... yes
checking for Linux kernel version >= 2.4.7... yes
checking for mknod... mknod
checking for chgrp... chgrp
checking for chmod... chmod
checking for depmod... no
checking for rmmod... no
checking for lsmod... no
checking for modprobe... no
checking for objdump... objdump
checking for objcopy... objcopy
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating modules/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/module/Makefile
config.status: creating src/ptserial/Makefile
config.status: creating misc/Makefile
config.status: creating misc/pctel.spec
config.status: creating misc/SlackBuild
config.status: creating misc/build_rpms.sh
config.status: creating m4/Makefile
config.status: executing depfiles commands
config.status: executing default commands
[root@localhost pctel-0.9.6]# make
Making all in src
make[1]: Entering directory `/home/Ben/pctel-0.9.6/src'
Making all in module
make[2]: Entering directory `/home/Ben/pctel-0.9.6/src/module'
rm -f *~ \#* .*~ .\#*
rm -f ptmodule.o
rm -f ptmodule.o
rm -f ../../modules/pctel.o
gcc -D__KERNEL__ -Werror -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789 -I../../include -I/usr/src/linux-2.4.18-14/include -include /usr/src/linux-2.4.18-14/include/linux/modversions.h
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pctel\" -DVERSION=\"0.9.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -c -o ptmodule.o ptmodule.c
ld -r -o ../../modules/pctel.o ptmodule.o ../../lib/control.a ../../lib/vuart.o
../../lib/pct789/dsp.a ../../lib/pct789/pcthal.a
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/src/module'
Making all in ptserial
make[2]: Entering directory `/home/Ben/pctel-0.9.6/src/ptserial'
rm -f *~ \#* .*~ .\#*
rm -f ptserial.o ptserial.c
rm -f ptserial.o
rm -f ../../modules/ptserial.o
ln -s -f ptserial-2.4.7.c ../../src/ptserial/ptserial.c
make ptserial.o
make[3]: Entering directory `/home/Ben/pctel-0.9.6/src/ptserial'
gcc -D__KERNEL__ -Werror -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789 -DBUILD_SYSTEM=\""`uname -s -m -r -p`\"" -DGCC_VERSION=\""`gcc --version | head -1`\"" -I../../include -I/usr/src/linux-2.4.18-14/include -include /usr/src/linux-2.4.18-14/include/linux/modversions.h -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"pctel\" -DVERSION=\"0.9.5\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -c -o ptserial.o ptserial.c
make[3]: Leaving directory `/home/Ben/pctel-0.9.6/src/ptserial'
ld -r -o ../../modules/ptserial.o ptserial.o
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/src/ptserial'
make[2]: Entering directory `/home/Ben/pctel-0.9.6/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/src'
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/src'
Making all in lib
make[1]: Entering directory `/home/Ben/pctel-0.9.6/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/lib'
Making all in modules
make[1]: Entering directory `/home/Ben/pctel-0.9.6/modules'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/modules'
Making all in include
make[1]: Entering directory `/home/Ben/pctel-0.9.6/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/include'
Making all in misc
make[1]: Entering directory `/home/Ben/pctel-0.9.6/misc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/misc'
Making all in m4
make[1]: Entering directory `/home/Ben/pctel-0.9.6/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/m4'
make[1]: Entering directory `/home/Ben/pctel-0.9.6'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/Ben/pctel-0.9.6'
[root@localhost pctel-0.9.6]# make install
Making install in src
make[1]: Entering directory `/home/Ben/pctel-0.9.6/src'
Making install in module
make[2]: Entering directory `/home/Ben/pctel-0.9.6/src/module'
make[3]: Entering directory `/home/Ben/pctel-0.9.6/src/module'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/Ben/pctel-0.9.6/src/module'
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/src/module'
Making install in ptserial
make[2]: Entering directory `/home/Ben/pctel-0.9.6/src/ptserial'
make[3]: Entering directory `/home/Ben/pctel-0.9.6/src/ptserial'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/Ben/pctel-0.9.6/src/ptserial'
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/src/ptserial'
make[2]: Entering directory `/home/Ben/pctel-0.9.6/src'
make[3]: Entering directory `/home/Ben/pctel-0.9.6/src'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/Ben/pctel-0.9.6/src'
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/src'
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/src'
Making install in lib
make[1]: Entering directory `/home/Ben/pctel-0.9.6/lib'
make[2]: Entering directory `/home/Ben/pctel-0.9.6/lib'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/lib'
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/lib'
Making install in modules
make[1]: Entering directory `/home/Ben/pctel-0.9.6/modules'
make[2]: Entering directory `/home/Ben/pctel-0.9.6/modules'
/bin/sh ../mkinstalldirs /lib/modules/2.4.18-14/misc
mkdir /lib/modules/2.4.18-14/misc
/usr/bin/install -c -o root -g root -m 644 pctel.o /lib/modules/2.4.18-14/misc/pctel.o
/usr/bin/install -c -o root -g root -m 644 ptserial.o /lib/modules/2.4.18-14/misc/ptserial.o
/bin/sh: line 1: depmod: command not found
make[2]: *** [install-exec-local] Error 127
make[2]: Leaving directory `/home/Ben/pctel-0.9.6/modules'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/Ben/pctel-0.9.6/modules'
make: *** [install-recursive] Error 1
[root@localhost pctel-0.9.6]# insmod pctel
bash: insmod: command not found


Do I need to change the directory to get insmod to work? I desperatly need my modem to work. please help.

ilikejam 11-14-2003 01:54 AM

Hi.

Try (re)-installing the 'modutils' rpm from your red-hat discs. That should give you back insmod.

Dave

Bensoft Kill MS 11-15-2003 07:54 PM

well for some reason I can't use insmod unless I have actually logged into root, not my normal account, opened a terminal, and then su-ing. So in root I tried what i was supposed to and got this:

[root@localhost pctel-0.9.6]# insmod -f pctel
Using /lib/modules/2.4.20-8/kernel/net/pctel.o
Warning: The module you are trying to load (/lib/modules/2.4.20-8/kernel/net/pctel.o) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
Warning: kernel-module version mismatch
/lib/modules/2.4.20-8/kernel/net/pctel.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol bh_mask
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol __put_user_4
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol request_region
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol bh_active
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol release_region
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol kfree_s
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol timer_table
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol bh_base
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol check_region
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol timer_active
/lib/modules/2.4.20-8/kernel/net/pctel.o: unresolved symbol bh_mask_count
/lib/modules/2.4.20-8/kernel/net/pctel.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error. Contact the module supplier for assistance, only they
can help you.

[root@localhost pctel-0.9.6]# insmod -f ptserial
Using /lib/modules/2.4.20-8/misc/ptserial.o
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol COM_Vlcr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol PctelInitCtrlVars
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol Pctel_module_free
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_ier
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_dll
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_dlm
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol GlobalTimer
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_ier
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_scr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol HAL_GetTimer
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_tx
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_dll
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_dlm
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_lcr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_msr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_scr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_lcr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_msr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol HAL_DoInterrupt
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_iir
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol PctelInitVUartVars
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_lsr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_mcr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol modem_main
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol get_uart_rx
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_iir
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol Pctel_module_init
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol HAL_Deinit
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol dspMain
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol HAL_Init
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_mcr
/lib/modules/2.4.20-8/misc/ptserial.o: unresolved symbol put_uart_lsr
/lib/modules/2.4.20-8/misc/ptserial.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error. Contact the module supplier for assistance, only they
can help you.


What to do?

thanks

ilikejam 11-15-2003 08:14 PM

Hi again.

Only being able to do insmod as root is normal.
As for the errors, you seem to have compiled the pctel modules using:

[root@localhost pctel-0.9.6]# ./configure --with-hal=pct789 --with-kernel-includes=/usr/src/linux-2.4.18-14/include

which compiles against the 2.4.18 kernel. You are using the 2.4.20 kernel, which will give the unresolved symbols. I don't know the details of the configure script (and I'm not an expert anyway) but I would imagine you would just have to change the -with-kernel-includes location when you do ./configure to point to the correct kernel sources.

Oh yeah, and make sure you've got your kernel source RPM installed from the RH8 CD.

Dave

Bensoft Kill MS 11-15-2003 08:27 PM

I had not been able to figure out the insmod thing and had seen others that got their pctel modem up and running with rh8, so I figure, what the heck, I'll just use my friend's 8. (I'm sick of using windows to do all my internet connecting and stuff). After finding I could use insmod in root, I updated rh9 over 8. I have been having a few probs that I didn't have before when I had put only 9 on, and so I think I'll just start fresh again with rh9 and my 2.4.20-8. I'll see how it goes then. If I get the right output about it telling me about my modem, will the network connection wizard find my modem and will it find it each time I start up my computer? If it won't, is there any way I can fix this and make the modem get recognized on startup? I read in another modem driver I've been working with [to no avail] that I have to insmod each time I boot up.

Thanks for all the help, I have been repeatedly posting my modem thread every other weak to no avail, and now I'm getting somewhere!:) :) :)

I feel I'm slowly loosing my :newbie: status...:D

ilikejam 11-15-2003 08:46 PM

You might want to add line to do the insmod for your modem into /etc/rc.d/rc.local - that way it will be added when you boot.

That should sort it. Hit me back if you get any more trouble.

Dave

Bensoft Kill MS 11-16-2003 02:11 PM

YES! I got it to work! Thanks a ton!

Bensoft Kill MS 11-16-2003 07:38 PM

but it won't load on bootup each time...

nvmd I left out -f


All times are GMT -5. The time now is 02:57 AM.