Can't enmerge slmdm-2.7.14 on T40 Thinkpad, does not compile successfully. Kernel: 2.6.5-gentoo Reproducible: Always Steps to Reproduce: 1.emerge slmodem 2. 3. Actual Results: ebuild compiling crashes. Expected Results: ebuild should have compiled successfuly. Here's the output from the build, as well as some system info: ------------------------------- localhost root # emerge slmodem Calculating dependencies ...done! >>> emerge (1 of 1) net-dialup/slmodem-2.7.14 to / >>> md5 src_uri ;-) slmdm-2.7.14.tar.gz >>> Unpacking source... >>> Unpacking slmdm-2.7.14.tar.gz to /var/tmp/portage/slmodem-2.7.14/work RUNNING FROM extra_functions.sh * Applying slmodem-2.7.14-makefile-fixup.patch... [ ok ] >>> Source unpacked. gcc -O2 -march=i686 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c <command line>:138480033:2536: /usr/src/linux/include/linux/modversions.h: No such file or directory gcc -O2 -march=i686 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -o sysdep_pci.o -c sysdep_pci.c <command line>:138480033:2536: /usr/src/linux/include/linux/modversions.h: No such file or directory amrmo_init.c: In function `amr_mod_usage_increase': amrmo_init.c:232: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:527) amrmo_init.c: In function `amrmo_probe': amrmo_init.c:264: error: structure has no member named `name' amrmo_init.c: In function `amrmo_init': amrmo_init.c:376: error: syntax error before '{' token amrmo_init.c: At top level: amrmo_init.c:386: error: syntax error before '}' token amrmo_init.c:404: warning: data definition has no type or storage class In file included from /usr/src/linux/include/linux/irq.h:20, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:11, from sysdep_pci.c:55: /usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:11, from sysdep_pci.c:55: /usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /usr/src/linux/include/linux/irq.h:72, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:11, from sysdep_pci.c:55: /usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /usr/src/linux/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) sysdep_pci.c: In function `sysdep_create_bh': sysdep_pci.c:85: error: invalid application of `sizeof' to an incomplete type sysdep_pci.c: In function `sysdep_request_bh': sysdep_pci.c:95: error: `tq_immediate' undeclared (first use in this function) sysdep_pci.c:95: error: (Each undeclared identifier is reported only once sysdep_pci.c:95: error: for each function it appears in.) sysdep_pci.c:96: error: `IMMEDIATE_BH' undeclared (first use in this function) make: *** [amrmo_init.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [sysdep_pci.o] Error 1 !!! ERROR: net-dialup/slmodem-2.7.14 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! (no error message) localhost root #lspci 0000:00:00.0 Host bridge: Intel Corp. 82855PM Processor to I/O Controller (rev 03) 0000:00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 03) 0000:00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 01) 0000:00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 01) 0000:00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 01) 0000:00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 01) 0000:00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 81) 0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 01) 0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01) 0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 01) 0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio Controller (rev 01) 0000:00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 01) 0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] 0000:02:00.0 CardBus bridge: Texas Instruments PCI1250 PC card Cardbus Controller (rev 01) 0000:02:00.1 CardBus bridge: Texas Instruments PCI1250 PC card Cardbus Controller (rev 01) 0000:02:01.0 Ethernet controller: Intel Corp. 82540EP Gigabit Ethernet Controller (Mobile) (rev 03) 0000:02:02.0 Network controller: Intel Corp. PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04) localhost root # ls -al /usr/src/linux lrwxr-xr-x 1 root root 27 Apr 9 10:48 /usr/src/linux -> /usr/src/linux-2.6.5-gentoo localhost root #dmesg Linux version 2.6.5-gentoo (root@localhost) (gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)) #1 Fri Apr 9 10:55:09 EST 2004 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009f000 (usable) BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved) BIOS-e820: 00000000000d2000 - 00000000000d4000 (reserved) BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000001ff60000 (usable) BIOS-e820: 000000001ff60000 - 000000001ff77000 (ACPI data) BIOS-e820: 000000001ff77000 - 000000001ff79000 (ACPI NVS) BIOS-e820: 000000001ff80000 - 0000000020000000 (reserved) BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved) 511MB LOWMEM available. On node 0 totalpages: 130912 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 126816 pages, LIFO batch:16 HighMem zone: 0 pages, LIFO batch:1 DMI present. IBM machine detected. Enabling interrupts during APM calls. IBM machine detected. Disabling SMBus accesses. ACPI: RSDP (v002 IBM ) @ 0x000f6df0 ACPI: XSDT (v001 IBM TP-1R 0x00003003 LTP 0x00000000) @ 0x1ff6b28d ACPI: FADT (v003 IBM TP-1R 0x00003003 IBM 0x00000001) @ 0x1ff6b300 ACPI: SSDT (v001 IBM TP-1R 0x00003003 MSFT 0x0100000e) @ 0x1ff6b4b4 ACPI: ECDT (v001 IBM TP-1R 0x00003003 IBM 0x00000001) @ 0x1ff76dfc ACPI: TCPA (v001 IBM TP-1R 0x00003003 PTL 0x00000001) @ 0x1ff76e4e ACPI: BOOT (v001 IBM TP-1R 0x00003003 LTP 0x00000001) @ 0x1ff76fd8 ACPI: DSDT (v001 IBM TP-1R 0x00003003 MSFT 0x0100000e) @ 0x00000000 Built 1 zonelists Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/hda3 vga=0x317 splash=verbose bootsplash: verbose mode. Local APIC disabled by BIOS -- reenabling. Found and enabled local APIC! Initializing CPU#0 PID hash table entries: 2048 (order 11: 16384 bytes) Detected 1495.092 MHz processor. Using tsc for high-res timesource Speakup v-2.00 CVS: Thu Mar 11 14:33:29 EST 2004 : initialized Speakup: loading module "speakup_n" request_module: runaway loop modprobe speakup_n Console: colour dummy device 80x25 Memory: 512184k/523648k available (2787k kernel code, 10716k reserved, 1001k data, 172k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay loop... 2957.31 BogoMIPS Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 1298k freed Couldn't initialize miscdevice /dev/synth. CPU: After generic identify, caps: a7e9fbbf 00000000 00000000 00000000 CPU: After vendor identify, caps: a7e9fbbf 00000000 00000000 00000000 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 1024K CPU: After all inits, caps: a7e9fbbf 00000000 00000000 00000040 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: Intel(R) Pentium(R) M processor 1500MHz stepping 05 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX enabled ExtINT on CPU#0 ESR value before enabling vector: 00000000 ESR value after enabling vector: 00000000 Using local APIC timer interrupts. calibrating APIC timer ... ..... CPU clock speed is 1494.0950 MHz. ..... host bus clock speed is 99.0663 MHz. NET: Registered protocol family 16 PCI: PCI BIOS revision 2.10 entry at 0xfd8d6, last bus=8 PCI: Using configuration type 1 mtrr: v2.0 (20020519) ACPI: Subsystem revision 20040326 ACPI: IRQ9 SCI: Edge set to Level Trigger. ACPI: Found ECDT ACPI-0179: *** Warning: The ACPI AML in your computer contains errors, please nag the manufacturer to correct it. ACPI-0182: *** Warning: Allowing relaxed access to fields; turn on CONFIG_ACPI_DEBUG for details. ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 9 10 11) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11) ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11) ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11) ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11) ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 *11) ACPI: PCI Root Bridge [PCI0] (00:00) PCI: Probing PCI hardware (bus 00) PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1 Transparent bridge - 0000:00:1e.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: Embedded Controller [EC] (gpe 28) ACPI: Power Resource [PUBS] (on) ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT] Linux Plug and Play Support v0.97 (c) Adam Belay SCSI subsystem initialized Linux Kernel Card Services options: [pci] [cardbus] [pm] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11 ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 11 ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5 PCI: Using ACPI for IRQ routing PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off' vesafb: framebuffer at 0xe0000000, mapped to 0xe0815000, size 16384k vesafb: mode is 1024x768x16, linelength=2048, pages=20 vesafb: protected mode interface info at c000:570c vesafb: scrolling: redraw vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 fb0: VESA VGA frame buffer device Simple Boot Flag at 0x35 set to 0x1 Machine check exception polling timer started. gx-suspmod: error: no MediaGX/Geode processor found! speedstep-centrino: found "Intel(R) Pentium(R) M processor 1500MHz": max frequency: 1500000kHz apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) apm: overridden by ACPI. ikconfig 0.7 with /proc/config* devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 Installing knfsd (copyright (C) 1996 okir@monad.swb.de). udf: registering filesystem SGI XFS with large block numbers, no debug enabled Initializing Cryptographic API ACPI: AC Adapter [AC] (on-line) ACPI: Battery Slot [BAT0] (battery present) ACPI: Power Button (FF) [PWRF] ACPI: Lid Switch [LID] ACPI: Sleep Button (CM) [SLPB] ACPI: Processor [CPU] (supports C1 C2 C3, 8 throttling states) ACPI: Thermal Zone [THM0] (44 C) mice: PS/2 mouse device common for all mice serio: i8042 AUX port at 0x60,0x64 irq 12 Synaptics Touchpad, model: 1 Firmware: 5.9 Sensor: 44 new absolute packet format Touchpad has extended capability bits -> multifinger detection -> palm detection -> pass-through port input: SynPS/2 Synaptics TouchPad on isa0060/serio1 serio: Synaptics pass-through port at isa0060/serio1/input0 input: PS/2 Generic Mouse on synaptics-pt/serio0 serio: i8042 KBD port at 0x60,0x64 irq 1 input: AT Translated Set 2 keyboard on isa0060/serio0 bootsplash 3.1.4-2004/02/19: looking for picture..... silentjpeg size 21768 bytes, found (1024x768, 20089 bytes, v3). Console: switching to colour frame buffer device 122x40 Real Time Clock Driver v1.12 Non-volatile memory driver v1.2 hw_random hardware driver 1.0.0 loaded Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A Using anticipatory io scheduler floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize loop: loaded (max 8 devices) Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ICH4: IDE controller at PCI slot 0000:00:1f.1 PCI: Enabling device 0000:00:1f.1 (0005 -> 0007) ICH4: chipset revision 1 ICH4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x1860-0x1867, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio hda: HTS548040M9AT00, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hdc: UJDA745 DVD/CDRW, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 128KiB hda: Host Protected Area detected. current capacity is 71859186 sectors (36791 MB) native capacity is 78140160 sectors (40007 MB) hda: 71859186 sectors (36791 MB) w/7877KiB Cache, CHS=65535/16/63, UDMA(100) /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 Yenta: CardBus bridge found at 0000:02:00.0 [1014:0512] Yenta: Using INTVAL to route CSC interrupts to PCI Yenta: Routing CardBus interrupts to PCI Yenta: ISA IRQ mask 0x04d8, PCI irq 11 Socket status: 30000006 Yenta: CardBus bridge found at 0000:02:00.1 [1014:0512] Yenta: Using INTVAL to route CSC interrupts to PCI Yenta: Routing CardBus interrupts to PCI Yenta: ISA IRQ mask 0x04d8, PCI irq 5 Socket status: 30000006 NET: Registered protocol family 2 IP: routing cache hash table of 4096 buckets, 32Kbytes TCP: Hash tables configured (established 32768 bind 65536) NET: Registered protocol family 1 NET: Registered protocol family 17 cpufreq: P4/Xeon(TM) CPU On-Demand Clock Modulation available ACPI: (supports S0 S3 S4 S5) RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 172k freed drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub ehci_hcd 0000:00:1d.7: Intel Corp. 82801DB USB2 PCI: Setting latency timer of device 0000:00:1d.7 to 64 ehci_hcd 0000:00:1d.7: irq 11, pci mem e188b000 ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1 PCI: cache line size of 32 is not supported by device 0000:00:1d.7 ehci_hcd 0000:00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29 hub 1-0:1.0: USB hub found hub 1-0:1.0: 6 ports detected drivers/usb/core/usb.c: registered new driver hiddev drivers/usb/core/usb.c: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver Initializing USB Mass Storage driver... drivers/usb/core/usb.c: registered new driver usb-storage USB Mass Storage support registered. sbp2: $Rev: 1170 $ Ben Collins <bcollins@debian.org> sh-2021: reiserfs_fill_super: can not find reiserfs on hda3 kjournald starting. Commit interval 5 seconds EXT3 FS on hda3, internal journal EXT3-fs: mounted filesystem with ordered data mode. Adding 498952k swap on /dev/hda2. Priority:-1 extents:1 EXT3 FS on hda3, internal journal Intel(R) PRO/1000 Network Driver - version 5.2.30.1-k2 Copyright (c) 1999-2004 Intel Corporation. eth0: Intel(R) PRO/1000 Network Connection ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 0.39 ipw2100: Copyright(c) 2003-2004 Intel Corporation Detected ipw2100 PCI device at 0000:02:02.0, dev: eth1, mem: 0xC0210000-0xC0210FFF -> e188f000, irq: 11 av5100: Radio being turned ON devfs_mk_dev: could not append to parent for snd/controlC0 devfs_mk_dev: could not append to parent for snd/timer PCI: Setting latency timer of device 0000:00:1f.5 to 64 intel8x0_measure_ac97_clock: measured 49440 usecs intel8x0: clocking to 48000 devfs_mk_dev: could not append to parent for snd/pcmC0D4p devfs_mk_dev: could not append to parent for snd/pcmC0D3c devfs_mk_dev: could not append to parent for snd/pcmC0D2c devfs_mk_dev: could not append to parent for snd/pcmC0D1c devfs_mk_dev: could not append to parent for snd/pcmC0D0p devfs_mk_dev: could not append to parent for snd/pcmC0D0c cs: IO port probe 0x0c00-0x0cff: clean. cs: IO port probe 0x0800-0x08ff: clean. cs: IO port probe 0x0100-0x04ff: excluding 0x3b8-0x3df 0x4d0-0x4d7 cs: IO port probe 0x0a00-0x0aff: clean. e1000: eth0 NIC Link is Up 100 Mbps Full Duplex mtrr: 0xe0000000,0x2000000 overlaps existing 0xe0000000,0x1000000 Linux agpgart interface v0.100 (c) Dave Jones [drm] Initialized radeon 1.9.0 20020828 on minor 0 mtrr: 0xe0000000,0x2000000 overlaps existing 0xe0000000,0x1000000 [drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held [drm:radeon_unlock] *ERROR* Process 4323 using kernel context 0 atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0). atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly. atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0). atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly. localhost root #lsmod Module Size Used by snd_pcm_oss 47780 0 snd_mixer_oss 16384 1 snd_pcm_oss radeon 110640 0 agpgart 27432 0 snd_intel8x0 28968 0 snd_ac97_codec 56324 1 snd_intel8x0 snd_pcm 79524 2 snd_pcm_oss,snd_intel8x0 snd_timer 20228 1 snd_pcm snd_page_alloc 9092 2 snd_intel8x0,snd_pcm gameport 3712 1 snd_intel8x0 snd_mpu401_uart 5760 1 snd_intel8x0 snd_rawmidi 19232 1 snd_mpu401_uart snd_seq_device 6408 1 snd_rawmidi snd 44388 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device av5100 2436 0 ipw2100 113168 0 firmware_class 7296 1 ipw2100 e1000 78724 0 sbp2 20872 0 ohci1394 29828 0 ieee1394 88756 2 sbp2,ohci1394 usb_storage 25856 0 hid 30528 0 ehci_hcd 23428 0 usbcore 86236 5 usb_storage,hid,ehci_hcd localhost root #
2.6 kernels only work with slmodem-2.9 which is masked by ~x86. In order install it, run `ACCEPT_KEYWORDS="~x86" emerge -av slmodem` Then edit the configs and do `rc-update add slmodem default`.
Gene, Following Rouslan's suggestion is it working for you now? Bug #59244 is still open so please add any comments that will aid its closure. Also I haven't got the hardware so I'm a little stuck for testing this program.
It looks like the kernel hasn't been compiled in /usr/src/linux which creates the files it is looking for. Please try version 2.9.9 though