As far as I can tell, this looks like it works, but a couple of the bash scripts installed with this package don't help much to determine that. # /usr/sbin/lt_checkout The essential utility modprobe is not on the command PATH Please log into a console as Root and verify access to the modutils suite with command: # modprobe -V before re-running lt_checkout Yes, I do have it in my path: # which modprobe /sbin/modprobe # set | grep ^PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin # /usr/sbin/lt_autoload To continue: Enter /usr/sbin/lt_autoload: line 74: test: too many arguments The currently serving modules tree is: /lib/modules/2.6.23-gentoo/ The modem drivers have been installeed in /lib/modules/2.4.19-plip/ltmodem/ Thus they cannot serve under the current kernel: 2.6.23-gentoo This is acceptable ONLY if a kernel + modules for kernel-version 2.4.19-plip will be later installed. Otherwise DO get advice on a suitable installer run: scanmodem The desired Installer name is like: ltmodem-kv-2.6.23-gentoo-8.22a5-1.i686.rpm The modem symbolic link is: /dev/modem -> ttyLTM0 This will conflict with support for the Lucent modem. Please : rm -f /dev/modem and assign another symbolic link to ttyLTM0, such as: ln -s ttyLTM0 /dev/modem2 Then rerun: /usr/sbin/lt_autoload Aborting on this trial. This script has some psuedo-directory (not the actual install directory) hard coded into it, and thus seems a little confused.
Well, then don't use them, these scripts are apparently fubared. :) We shouldn't install such useless stuff.
I've fixed it in ltmodem-2.6.9 by dropping kernel 2.4 support. I've also masked the old version because of the different versioning scheme. The new version is also a bump (from 2.6-alk-8 to 2.6-alk-9).
I gave this a try, and it did not compile: [...] LD [M] /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.o LD [M] /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.o Building modules, stage 2. MODPOST 2 modules WARNING: "uart_write_wakeup" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "uart_add_one_port" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "lt_get_modem_interface" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "uart_get_divisor" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "uart_unregister_driver" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "uart_remove_one_port" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "printk" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "tty_insert_flip_string_flags" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefi ned! WARNING: "request_irq" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "tty_hangup" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "__wake_up" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "uart_register_driver" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "tty_flip_buffer_push" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "uart_get_baud_rate" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "free_irq" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltserial.ko] undefined! WARNING: "pci_bus_read_config_byte" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "__mod_timer" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "param_get_int" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "get_options" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_bus_write_config_word" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "param_set_int" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "jiffies" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_find_slot" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "memset" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "printk" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_bus_write_config_dword" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined ! WARNING: "pci_bus_read_config_word" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_bus_read_config_dword" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "init_timer" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "do_gettimeofday" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_bus_write_config_byte" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_get_device" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_dev_put" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! WARNING: "pci_enable_device" [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.ko] undefined! CC /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.o /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:8: error: variable '__this_module' has initializer but incomplete type /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:9: error: unknown field 'name' specified in initializer /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:9: warning: excess elements in struct initializer /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:9: warning: (near initialization for '__this_module') /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:10: error: unknown field 'init' specified in initializer /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:10: warning: excess elements in struct initializer /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:10: warning: (near initialization for '__this_module') /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:14: error: unknown field 'arch' specified in initializer /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:14: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:14: warning: excess elements in struct initializer /var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.c:14: warning: (near initialization for '__this_module') make[2]: *** [/var/tmp/portage/net-dialup/ltmodem-2.6.9/work/ltmodem-2.6-alk-9/ltmodem.mod.o] Error 1 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.23-gentoo' make: *** [module] Error 2 * * ERROR: net-dialup/ltmodem-2.6.9 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1383: Called linux-mod_src_compile * linux-mod.eclass, line 518: Called die * The specific snippet of code: * emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \ * ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \ * || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." * The die message: * Unable to make KERNEL_DIR='/usr/src/linux' module. * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/net-dialup:ltmodem-2.6.9:20071110-093151.log'. *
Did you compiled your /usr/src/linux-2.6.23-gentoo kernel before emerging ltmodem?
I not only compiled it before, I was running it at the time.
Works for me. I've used the gentoo-sources-2.6.23-r1 kernel.
I will try upgrading to -r1 and report.
I did eventually get this to compile (after about eight tries). I had some really strange problems, and finally wiped and reinstalled the kernel source. I think some bug still exists here, but more likely with the way that Gentoo builds modules, and not with the ltmodem package itself. Therefore, I will reclose this.