Attempting to build madwifi-driver in a chroot targetted at a different kernel than the one which is running fails. To try and make this clear my build host is running 2.4.26-gentoo-r13 while the target host will be running 2.6.10-gentoo-r4 which is what /usr/src/linux is linked to in the chroot on the build host. Looking through the output of emerge, the modules all build OK but only the first one gets installed.... CC /var/tmp/portage/madwifi-driver-0.1_pre20050107/work/madwifi/ath/ath_pci.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20050107/work/madwifi/ath/ath_pci.ko make[1]: Leaving directory `/usr/src/linux-2.6.10-gentoo-r4' >>> Test phase [not enabled]: net-wireless/madwifi-driver-0.1_pre20050107 >>> Install madwifi-driver-0.1_pre20050107 into /var/tmp/portage/madwifi-driver-0.1_pre20050107/image/ category net-wireless * Installing ath_hal module * Installing ath_rate_onoe module install: cannot stat `ath_rate_onoe.ko': No such file or directory modinfo: could not open /lib/modules/2.4.26-gentoo-r13/modules.dep When I tried to go through the ebuild and the included eclasses, I couldn't see a problem. Reading the Changelog that ...07 included an update to linux-mod, I tried ...06 to see what would happen - it built and installed the modules OK. I still have problems reported when I emerge -k on the target as I haven't got the kernel source there but it installs well enough. If this seems important then I can try and produce a coherent bug report for it, otherwise I can live with it.
I have a problem with madwifi-driver-0.1-pre20050106 as well. I'm using the 2.6.10-gentoo-r4 kernel. Here's my dmesg: ath_hal: 0.9.12.14 (AR5210, AR5211, AR5212) wlan: Unknown symbol wireless_send_event ath_rate_onoe: Unknown symbol ether_sprintf ath_rate_onoe: Unknown symbol ieee80211_iterate_nodes wlan: Unknown symbol wireless_send_event wlan: Unknown symbol wireless_send_event wlan_acl: Unknown symbol ieee80211_aclator_unregister wlan_acl: Unknown symbol ether_sprintf wlan_acl: Unknown symbol ieee80211_aclator_register wlan: Unknown symbol wireless_send_event wlan_ccmp: Unknown symbol ether_sprintf wlan_ccmp: Unknown symbol crypto_alloc_tfm wlan_ccmp: Unknown symbol ieee80211_crypto_unregister wlan_ccmp: Unknown symbol crypto_free_tfm wlan_ccmp: Unknown symbol ieee80211_notify_replay_failure wlan_ccmp: Unknown symbol ieee80211_crypto_register wlan: Unknown symbol wireless_send_event wlan_tkip: Unknown symbol ether_sprintf wlan_tkip: Unknown symbol ieee80211_notify_michael_failure wlan_tkip: Unknown symbol ieee80211_crypto_unregister wlan_tkip: Unknown symbol ieee80211_notify_replay_failure wlan_tkip: Unknown symbol ieee80211_crypto_register wlan: Unknown symbol wireless_send_event wlan_wep: Unknown symbol ether_sprintf wlan_wep: Unknown symbol rc4_init wlan_wep: Unknown symbol ieee80211_crypto_unregister wlan_wep: Unknown symbol rc4_crypt_skip wlan_wep: Unknown symbol ieee80211_crypto_register wlan: Unknown symbol wireless_send_event wlan_xauth: Unknown symbol ieee80211_authenticator_unregister wlan_xauth: Unknown symbol ieee80211_authenticator_register wlan: Unknown symbol wireless_send_event ath_rate_onoe: Unknown symbol ether_sprintf ath_rate_onoe: Unknown symbol ieee80211_iterate_nodes ath_pci: Unknown symbol ieee80211_ioctl_siwrate ath_pci: Unknown symbol ath_rate_tx_complete ath_pci: Unknown symbol ieee80211_encap ath_pci: Unknown symbol ieee80211_input ath_pci: Unknown symbol ieee80211_ioctl_siwap ath_pci: Unknown symbol ieee80211_ifattach ath_pci: Unknown symbol ieee80211_sysctl_register ath_pci: Unknown symbol ieee80211_ioctl_siwencode ath_pci: Unknown symbol ieee80211_beacon_update ath_pci: Unknown symbol ieee80211_ioctl_setmlme ath_pci: Unknown symbol ieee80211_ioctl_setoptie ath_pci: Unknown symbol ieee80211_ioctl_giwmode ath_pci: Unknown symbol ath_rate_attach ath_pci: Unknown symbol ether_sprintf ath_pci: Unknown symbol ieee80211_ifdetach ath_pci: Unknown symbol ieee80211_free_node ath_pci: Unknown symbol ieee80211_ioctl_siwsens ath_pci: Unknown symbol ath_rate_newassoc ath_pci: Unknown symbol ieee80211_notify_michael_failure ath_pci: Unknown symbol ieee80211_ioctl_chanlist ath_pci: Unknown symbol ieee80211_ioctl_getparam ath_pci: Unknown symbol ieee80211_dump_pkt ath_pci: Unknown symbol ieee80211_ioctl_giwrate ath_pci: Unknown symbol ieee80211_ioctl_siwrts ath_pci: Unknown symbol ieee80211_ioctl_giwname ath_pci: Unknown symbol ath_rate_node_copy ath_pci: Unknown symbol ieee80211_ioctl_setparam ath_pci: Unknown symbol ieee80211_ioctl_siwpower ath_pci: Unknown symbol ieee80211_ioctl_giwsens ath_pci: Unknown symbol ieee80211_media_change ath_pci: Unknown symbol ieee80211_ioctl_giwfreq ath_pci: Unknown symbol ieee80211_beacon_alloc ath_pci: Unknown symbol ieee80211_ioctl_siwfrag ath_pci: Unknown symbol ieee80211_ioctl_giwap ath_pci: Unknown symbol ieee80211_ioctl_siwfreq ath_pci: Unknown symbol ieee80211_ioctl_giwpower ath_pci: Unknown symbol ieee80211_find_node ath_pci: Unknown symbol ieee80211_mhz2ieee ath_pci: Unknown symbol ieee80211_ioctl_giwrange ath_pci: Unknown symbol ieee80211_ioctl_giwretry ath_pci: Unknown symbol ieee80211_ioctl_giwnickn ath_pci: Unknown symbol ieee80211_ioctl_giwrts ath_pci: Unknown symbol ieee80211_iw_getstats ath_pci: Unknown symbol ieee80211_ioctl_addmac ath_pci: Unknown symbol ath_rate_node_cleanup ath_pci: Unknown symbol ath_rate_detach ath_pci: Unknown symbol ieee80211_ioctl_giwfrag ath_pci: Unknown symbol ieee80211_ioctl_giwencode ath_pci: Unknown symbol ieee80211_next_scan ath_pci: Unknown symbol ieee80211_media_init ath_pci: Unknown symbol ieee80211_ioctl_iwsetup ath_pci: Unknown symbol ieee80211_ioctl ath_pci: Unknown symbol ieee80211_ioctl_delmac ath_pci: Unknown symbol ieee80211_media_status ath_pci: Unknown symbol ieee80211_announce ath_pci: Unknown symbol ieee80211_ioctl_setkey ath_pci: Unknown symbol ieee80211_ioctl_iwaplist ath_pci: Unknown symbol ieee80211_ioctl_delkey ath_pci: Unknown symbol ieee80211_ioctl_siwtxpow ath_pci: Unknown symbol ieee80211_chan2ieee ath_pci: Unknown symbol ieee80211_ioctl_siwretry ath_pci: Unknown symbol ieee80211_ioctl_siwnickn ath_pci: Unknown symbol ieee80211_state_name ath_pci: Unknown symbol ath_rate_node_init ath_pci: Unknown symbol ieee80211_ioctl_siwscan ath_pci: Unknown symbol ieee80211_ioctl_siwmode ath_pci: Unknown symbol ieee80211_ioctl_getoptie ath_pci: Unknown symbol ath_rate_findrate ath_pci: Unknown symbol ieee80211_ioctl_giwessid ath_pci: Unknown symbol ieee80211_ioctl_giwscan ath_pci: Unknown symbol ieee80211_crypto_encap ath_pci: Unknown symbol ieee80211_ioctl_siwessid ath_pci: Unknown symbol ieee80211_chan2mode ath_pci: Unknown symbol ath_rate_newstate ath_pci: Unknown symbol ath_rate_setupxtxdesc ath_pci: Unknown symbol ieee80211_ioctl_giwtxpow wlan: Unknown symbol wireless_send_event ath_rate_onoe: Unknown symbol ether_sprintf ath_rate_onoe: Unknown symbol ieee80211_iterate_nodes ath_pci: Unknown symbol ieee80211_ioctl_siwrate ath_pci: Unknown symbol ath_rate_tx_complete ath_pci: Unknown symbol ieee80211_encap ath_pci: Unknown symbol ieee80211_input ath_pci: Unknown symbol ieee80211_ioctl_siwap ath_pci: Unknown symbol ieee80211_ifattach ath_pci: Unknown symbol ieee80211_sysctl_register ath_pci: Unknown symbol ieee80211_ioctl_siwencode ath_pci: Unknown symbol ieee80211_beacon_update ath_pci: Unknown symbol ieee80211_ioctl_setmlme ath_pci: Unknown symbol ieee80211_ioctl_setoptie ath_pci: Unknown symbol ieee80211_ioctl_giwmode ath_pci: Unknown symbol ath_rate_attach ath_pci: Unknown symbol ether_sprintf ath_pci: Unknown symbol ieee80211_ifdetach ath_pci: Unknown symbol ieee80211_free_node ath_pci: Unknown symbol ieee80211_ioctl_siwsens ath_pci: Unknown symbol ath_rate_newassoc ath_pci: Unknown symbol ieee80211_notify_michael_failure ath_pci: Unknown symbol ieee80211_ioctl_chanlist ath_pci: Unknown symbol ieee80211_ioctl_getparam ath_pci: Unknown symbol ieee80211_dump_pkt ath_pci: Unknown symbol ieee80211_ioctl_giwrate ath_pci: Unknown symbol ieee80211_ioctl_siwrts ath_pci: Unknown symbol ieee80211_ioctl_giwname ath_pci: Unknown symbol ath_rate_node_copy ath_pci: Unknown symbol ieee80211_ioctl_setparam ath_pci: Unknown symbol ieee80211_ioctl_siwpower ath_pci: Unknown symbol ieee80211_ioctl_giwsens ath_pci: Unknown symbol ieee80211_media_change ath_pci: Unknown symbol ieee80211_ioctl_giwfreq ath_pci: Unknown symbol ieee80211_beacon_alloc ath_pci: Unknown symbol ieee80211_ioctl_siwfrag ath_pci: Unknown symbol ieee80211_ioctl_giwap ath_pci: Unknown symbol ieee80211_ioctl_siwfreq ath_pci: Unknown symbol ieee80211_ioctl_giwpower ath_pci: Unknown symbol ieee80211_find_node ath_pci: Unknown symbol ieee80211_mhz2ieee ath_pci: Unknown symbol ieee80211_ioctl_giwrange ath_pci: Unknown symbol ieee80211_ioctl_giwretry ath_pci: Unknown symbol ieee80211_ioctl_giwnickn ath_pci: Unknown symbol ieee80211_ioctl_giwrts ath_pci: Unknown symbol ieee80211_iw_getstats ath_pci: Unknown symbol ieee80211_ioctl_addmac ath_pci: Unknown symbol ath_rate_node_cleanup ath_pci: Unknown symbol ath_rate_detach ath_pci: Unknown symbol ieee80211_ioctl_giwfrag ath_pci: Unknown symbol ieee80211_ioctl_giwencode ath_pci: Unknown symbol ieee80211_next_scan ath_pci: Unknown symbol ieee80211_media_init ath_pci: Unknown symbol ieee80211_ioctl_iwsetup ath_pci: Unknown symbol ieee80211_ioctl ath_pci: Unknown symbol ieee80211_ioctl_delmac ath_pci: Unknown symbol ieee80211_media_status ath_pci: Unknown symbol ieee80211_announce ath_pci: Unknown symbol ieee80211_ioctl_setkey ath_pci: Unknown symbol ieee80211_ioctl_iwaplist ath_pci: Unknown symbol ieee80211_ioctl_delkey ath_pci: Unknown symbol ieee80211_ioctl_siwtxpow ath_pci: Unknown symbol ieee80211_chan2ieee ath_pci: Unknown symbol ieee80211_ioctl_siwretry ath_pci: Unknown symbol ieee80211_ioctl_siwnickn ath_pci: Unknown symbol ieee80211_state_name ath_pci: Unknown symbol ath_rate_node_init ath_pci: Unknown symbol ieee80211_ioctl_siwscan ath_pci: Unknown symbol ieee80211_ioctl_siwmode ath_pci: Unknown symbol ieee80211_ioctl_getoptie ath_pci: Unknown symbol ath_rate_findrate ath_pci: Unknown symbol ieee80211_ioctl_giwessid ath_pci: Unknown symbol ieee80211_ioctl_giwscan ath_pci: Unknown symbol ieee80211_crypto_encap ath_pci: Unknown symbol ieee80211_ioctl_siwessid ath_pci: Unknown symbol ieee80211_chan2mode ath_pci: Unknown symbol ath_rate_newstate ath_pci: Unknown symbol ath_rate_setupxtxdesc ath_pci: Unknown symbol ieee80211_ioctl_giwtxpow wlan: Unknown symbol wireless_send_event ath_rate_onoe: Unknown symbol ether_sprintf ath_rate_onoe: Unknown symbol ieee80211_iterate_nodes ------ My 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/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03) 0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03) 0000:00:1d.2 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03) 0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03) 0000:00:1e.0 PCI bridge: Intel Corp. 82801 Mobile PCI Bridge (rev 83) 0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM (ICH4-M) LPC Interface Bridge (rev 03) 0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4-M) IDE Controller (rev 03) 0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03) 0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03) 0000:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03) 0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] 0000:02:04.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01) 0000:02:06.0 CardBus bridge: O2 Micro, Inc. OZ711M3 SmartCardBus MultiMediaBay Controller 0000:02:06.1 CardBus bridge: O2 Micro, Inc. OZ711M3 SmartCardBus MultiMediaBay Controller 0000:02:06.2 System peripheral: O2 Micro, Inc. OZ711Mx MultiMediaBay Accelerator0000:02:06.3 CardBus bridge: O2 Micro, Inc. OZ711M3 SmartCardBus MultiMediaBay Controller 0000:02:0e.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705M_2 Gigabit Ethernet (rev 03) ------
Adding horton and solar to CC:
Ignoring further comments from Jennifer Chen (her report should be filed as unique bug) genstef/johnm: Is comment #0 due to linux-mod / convert_to_m handling pulling variables from runtime or other?
linux-info is effectively the core eclass for kernel information. It uses KERNEL_DIR to detect a directory in which to find kernel sources. KERNEL_DIR used to default to /usr/src/linux, although I have now modified this to be ${ROOT}usr/src/linux Hopefully this should solve your problem. ANother work around would have been to specify KERNEL_DIR on the command line. this also allows you to build against any sources you choose without needing to change symlinks. For example: KERNEL_DIR="/home/johnm/linux-2.6.11_rc3-bk3-johnmpatches/" emerge nvidia-kernel
Whatever it is that's been changed has fixed it for me. I was going to try setting KERNEL_DIR but something has clearly been updated by syncing since I first posted the bug so building just worked. I guess it was an eclass (I've spotted the odd barbed comments on eclasses and versioning). I still get complaints about not finding a kernel when I "emerge -k" on the target but the files seem to get put in the right places. Is anyone interested enough to want to do anything about this or shall I just ignore the complaints from emerge?