when compiling emerge crashes: lap root # emerge /usr/portage/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040514.ebuild Calculating dependencies ...done! >>> emerge (1 of 1) net-wireless/madwifi-driver-0.1_pre20040514 to / >>> Downloading http://gentoo.oregonstate.edu/distfiles/madwifi-driver-0.1_pre20040514.tar.bz2 All Done: Download Succesfull! >>> md5 src_uri ;-) madwifi-driver-0.1_pre20040514.tar.bz2 >>> Unpacking source... >>> Unpacking madwifi-driver-0.1_pre20040514.tar.bz2 to /var/tmp/portage/madwifi-driver-0.1_pre20040514/work >>> Source unpacked. for i in ./ath_hal ./wlan ./driver; do \ (cd $i; make clean); \ done make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/ath_hal' rm -f *~ *.o *.ko *.mod.c rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd rm -f ah_osdep.c opt_ah.h hal.o make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/ath_hal' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/wlan' rm -f *~ *.o *.ko *.mod.c rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/wlan' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/driver' rm -f *~ *.o *.ko *.mod.c rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/driver' for i in ./ath_hal ./wlan ./driver; do \ (cd $i; make); \ done make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/ath_hal' cp ./../hal/linux/ah_osdep.c ah_osdep.c uudecode ./../hal/linux/i386-elf.hal.o.uu cp ./../hal/linux/i386-elf.opt_ah.h opt_ah.h make -C /usr/src/linux SUBDIRS=/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/ath_hal modules make[2]: Entering directory `/usr/src/linux-2.6.6' Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: No such file or directory make[2]: *** No rule to make target `/usr/src/linux-2.6.6/arch/x86/Makefile'. Stop. make[2]: Leaving directory `/usr/src/linux-2.6.6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/ath_hal' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/wlan' make -C /usr/src/linux SUBDIRS=/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/wlan modules make[2]: Entering directory `/usr/src/linux-2.6.6' Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: No such file or directory make[2]: *** No rule to make target `/usr/src/linux-2.6.6/arch/x86/Makefile'. Stop. make[2]: Leaving directory `/usr/src/linux-2.6.6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/wlan' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/driver' make -C /usr/src/linux SUBDIRS=/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/driver modules make[2]: Entering directory `/usr/src/linux-2.6.6' Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: No such file or directory make[2]: *** No rule to make target `/usr/src/linux-2.6.6/arch/x86/Makefile'. Stop. make[2]: Leaving directory `/usr/src/linux-2.6.6' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040514/work/driver' make: *** [all] Error 2 !!! ERROR: net-wireless/madwifi-driver-0.1_pre20040514 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! (no error message) my diagnose: references in build go to x86 which does not exist and should lead to i386 (?) Reproducible: Always Steps to Reproduce: emerge info Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6) ================================================================= System uname: 2.6.6 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.4.10 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -Os -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -Os -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib accessibility acl acpi alsa apache2 apm arts artswrappersuid audiofile avi berkdb bonobo cdr cjk clanJavaScript clanVoice crypt cscope cups curl dga directfb doc dv dvd dvdr emacs encode esd ethereal evo fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gnomedb gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib innodb jack java javascript joystick jpeg justify kde kerberos krb4 ladcca lcms ldap libg++ libgda libwww lirc mad maildir matroska mbox mcal mdb mikmod mmx modif motif mozcalendar mozilla mpeg mpi mule mysql nas ncurses nls oav odbc oggvorbis opengl oss pam parse-clocks passfile pcmcia pda pdflib perl plotutils png pnp postgres ppds pwdb python qt quicktime radeon readline ruby ruby18 samba sasl scanner sdl slang slp snmp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype usb v4l v4l2 video_cards_radeon vim-with-x wmf x86 xinerama xml xml2 xmms xv zeo zlib"
I'm having exactly the same problem. After some mild investigation it seems the ARCH variable in the kernel Makefile isn't getting set correctly. How it's being set wrong only when using this e-build is beyone my understanding. The ARCH variable is set equal to the SUBARCH variable which is equal to $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ -e s/arm.*/arm/ -e s/sa110/arm/ \ -e s/s390x/s390/ -e s/parisc64/parisc/ ) in the kernel's Makefile. Running that command alone results in the output of "i386" so this seems to be correct. If you freeze emerge after uncompressing the sources and run make in the ath_hal subdir it compiles the module just fine. Better yet, just running make in the main "work" directory compliles everything correctly. I've even gone so far as to copy the commands in the ebuild file and they seem to work outside the context of emerge so the problem may be that emerge sets the ARCH variable for internal purposes to x86 and that messes with the kernel's Makefile.
More info: after attempting to fix the problem by adding "unset ARCH" to the ebuild file here: src_compile() { make clean unset ARCH make KERNELPATH="/usr/src/linux" KERNELRELEASE="${KV}" || die } I got several access violations from emerge. Here is my access violation summary log: open_wr: /usr/src/linux-2.6.5-gentoo-r1/.tmp_versions/ath_hal.mod open_wr: /usr/src/linux-2.6.5-gentoo-r1/.__modpost.cmd open_wr: /usr/src/linux-2.6.5-gentoo-r1/.tmp_versions/wlan.mod open_wr: /usr/src/linux-2.6.5-gentoo-r1/.__modpost.cmd open_wr: /usr/src/linux-2.6.5-gentoo-r1/.tmp_versions/ath_pci.mod open_wr: /usr/src/linux-2.6.5-gentoo-r1/.__modpost.cmd I believe the madwifi drive must modify the kernel source so you may want to do what you do with the alsa-drivers and copy the source before attempting to compile madwifi. I will attempt to do that now and post a patch if successful.
Alright, so i don't know how to make a patch, but here's my new madwifi-driver-0.1_pre20040514.ebuild file: ----------------------------------------------------------------------- # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040514.ebuild,v 1.1 2004/05/15 03:56:04 latexer Exp $ inherit kernel-mod DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards" HOMEPAGE="http://madwifi.sourceforge.net/" # Point to any required sources; these will be automatically downloaded by # Portage. SRC_URI="mirror://gentoo/$P.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" S=${WORKDIR} #pkg_setup() { # #} src_unpack() { check_KV unpack ${A} if kernel-mod_is_2_6_kernel || kernel-mod_is_2_5_kernel; then FULL_KERNEL_PATH="${ROOT}/usr/src/${KV_DIR}" if ! [ -d "${FULL_KERNEL_PATH}" ]; then eerror "An error seems to have occurred. We looked in ${FULL_KERNEL_PATH} for your kernel sources, but we didn't see them." die "madwifi configuration failure." fi einfo "A 2.5 or 2.6 kernel was detected. We are copying the kernel source tree from" einfo "${FULL_KERNEL_PATH} to ${T}/linux" einfo "because the madwifi build process overwrites files in the 2.6.x kernel tree." # Copy everything over to our tmp dir... cp -a ${FULL_KERNEL_PATH} ${T}/linux cd ${T}/linux ./scripts/modpost ./vmlinux fi } src_compile() { make clean KER_ARCH=${ARCH} KER_DIR=${KERNEL_DIR} if [ -d "${T}/linux" ]; then KER_DIR="${T}/linux" # Set the kernel ARCH use x86 && KER_ARCH="i386" use amd64 && KER_ARCH="x86_64" fi unset ARCH SUBARCH make KERNELPATH="${KER_DIR}" ARCH=${KER_ARCH} KERNELRELEASE="${KV}" || die } src_install() { KER_ARCH=${ARCH} KER_DIR=${KERNEL_DIR} if [ -d "${T}/linux" ]; then KER_DIR="${T}/linux" # Set the kernel ARCH use x86 && KER_ARCH="i386" use amd64 && KER_ARCH="x86_64" fi unset ARCH SUBARCH make KERNELPATH="${KER_DIR}" KERNELRELEASE="${KV}" \ DESTDIR="${D}" install || die dodoc README } pkg_postinst() { test -r "${KER_DIR}/System.map" && \ depmod -ae -F "${KER_DIR}/System.map" -b "${ROOT}" -r ${KV} einfo "" einfo "The madwifi drivers create an interface named 'athX'" einfo "Create /etc/init.d/net.ath0 and add a line for athX" einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'" einfo "" } -------------------------------------------------------------------------- It works great here
the build process here also works so i can use it. but i think copying the whole kernel tree is not the right way to go.
How about using the Linux 2.6 "make O=dir/to/put/output target" feature (see "make help" for details) in stead of copying the entire kernel tree?
madwifi-driver-0.1_pre20040906 and madwifi-tools-0.1_pre20040906 are both in the tree now. This should work for everybody. emerge rsync ACCEPT_KEYWORDS=~x86 emerge madwifi-driver madwifi-tools Please test and CLOSE appropriate bugs if this solves the problem anybody was having.
I have problems with the latest version, and decided to put this here instead of filing a new bug. :) >>> md5 src_uri ;-) madwifi-driver-0.1_pre20040906.tar.bz2 >>> md5 src_uri ;-) madwifi-driver-0.1_pre20040906-gentoo.patch.bz2 >>> Unpacking source... >>> Unpacking madwifi-driver-0.1_pre20040906.tar.bz2 to /var/tmp/portage/madwifi-driver-0.1_pre20040906/work >>> Unpacking madwifi-driver-0.1_pre20040906-gentoo.patch.bz2 to /var/tmp/portage/madwifi-driver-0.1_pre20040906/work * Applying madwifi-driver-0.1_pre20040906-gentoo.patch.bz2... [ ok ] * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * Building for Linux 2.6.8-gentoo-r3 found in /usr/src/linux >>> Source unpacked. for i in ./ath_hal ./net80211 ./ath; do \ (cd $i; make clean); \ done make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal' rm -f *~ *.o *.ko *.mod.c rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd rm -f ah_osdep.c opt_ah.h hal.o make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211' rm -f *~ *.o *.ko *.mod.c rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath' rm -f *~ *.o *.ko *.mod.c rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath' for i in ./ath_hal ./net80211 ./ath; do \ (cd $i; make) || exit 1; \ done make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal' cp ./../hal/linux/ah_osdep.c ah_osdep.c uudecode ./../hal/linux/i386-elf.hal.o.uu cp ./../hal/linux/i386-elf.opt_ah.h opt_ah.h make -C //usr/src/linux M=/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal modules make[2]: Entering directory `/usr/src/linux-2.6.8-gentoo-r3' CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal/ah_osdep.o In file included from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/hal/ah.h:49, from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal/ah_osdep.c:58: /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/hal/linux/ah_osdep.h:102:1: warning: "abs" redefined In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:16, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from include/linux/module.h:10, from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal/ah_osdep.c:46: include/linux/kernel.h:57:1: warning: this is the location of the previous definition LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal/ath_hal.o Building modules, stage 2. MODPOST CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal/ath_hal.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal/ath_hal.ko make[2]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r3' make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath_hal' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211' make -C //usr/src/linux M=/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211 modules make[2]: Entering directory `/usr/src/linux-2.6.8-gentoo-r3' CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/if_media.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/rc4.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_crypto.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_input.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_node.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_output.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_proto.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_wireless.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_linux.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_crypto_none.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_acl.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.o /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c: In function `eapol_hmac_md5': /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:1134: warning: implicit declaration of function `crypto_hmac' CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_crypto_ccmp.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_radius.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_crypto_tkip.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_crypto_wep.o CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_xauth.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_acl.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_xauth.o Building modules, stage 2. MODPOST *** Warning: "ieee80211_authenticator_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_xauth.ko] has no CRC! *** Warning: "ieee80211_authenticator_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_xauth.ko] has no CRC! *** Warning: "ieee80211_crypto_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.ko] has no CRC! *** Warning: "rc4_crypt_skip" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.ko] has no CRC! *** Warning: "ieee80211_crypto_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.ko] has no CRC! *** Warning: "rc4_init" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.ko] has no CRC! *** Warning: "ether_sprintf" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.ko] has no CRC! *** Warning: "ieee80211_crypto_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.ko] has no CRC! *** Warning: "ieee80211_notify_replay_failure" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.ko] has no CRC! *** Warning: "ieee80211_crypto_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.ko] has no CRC! *** Warning: "ieee80211_notify_michael_failure" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.ko] has no CRC! *** Warning: "ether_sprintf" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.ko] has no CRC! *** Warning: "eapol_send_raw" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "eapol_hmac_md5" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "rc4_crypt_skip" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "eapol_fsm_run" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "eapol_reauth_setperiod" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "eapolstats" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "ieee80211_crypto_setkey" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "ieee80211_crypto_newkey" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "ieee80211_authenticator_backend_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "rc4_init" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "ether_sprintf" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "eapol_alloc_skb" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "ieee80211_authenticator_backend_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "eapol_send" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko] has no CRC! *** Warning: "ieee80211_crypto_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.ko] has no CRC! *** Warning: "ieee80211_notify_replay_failure" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.ko] has no CRC! *** Warning: "ieee80211_crypto_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.ko] has no CRC! *** Warning: "ether_sprintf" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.ko] has no CRC! *** Warning: "crypto_hmac" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] undefined! *** Warning: "ieee80211_node_unauthorize" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_find_vap" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_find_node" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_authenticator_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_node_leave" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_authenticator_backend_get" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_node_authorize" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_free_node" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ether_sprintf" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_authenticator_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko] has no CRC! *** Warning: "ieee80211_aclator_register" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_acl.ko] has no CRC! *** Warning: "ether_sprintf" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_acl.ko] has no CRC! *** Warning: "ieee80211_aclator_unregister" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_acl.ko] has no CRC! *** Warning: "wireless_send_event" [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan.ko] undefined! CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_acl.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_acl.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_auth.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_ccmp.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_radius.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_tkip.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_wep.ko CC /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_xauth.mod.o LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/wlan_xauth.ko make[2]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r3' make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211' make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath' make -C //usr/src/linux M=/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath modules make[2]: Entering directory `/usr/src/linux-2.6.8-gentoo-r3' CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.o In file included from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/hal/ah.h:49, from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_athvar.h:45, from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:67: /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/hal/linux/ah_osdep.h:102:1: warning: "abs" redefined In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:16, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from include/linux/module.h:10, from /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:47: include/linux/kernel.h:57:1: warning: this is the location of the previous definition /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:272: error: elements of array `ieee80211_priv_args' have incomplete type /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:274: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:274: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:274: warning: (near initialization for `ieee80211_priv_args[0]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: warning: (near initialization for `ieee80211_priv_args[0]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: warning: (near initialization for `ieee80211_priv_args[0]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:275: warning: (near initialization for `ieee80211_priv_args[0]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:276: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:276: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:276: warning: (near initialization for `ieee80211_priv_args[1]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: warning: (near initialization for `ieee80211_priv_args[1]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: warning: (near initialization for `ieee80211_priv_args[1]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:277: warning: (near initialization for `ieee80211_priv_args[1]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:278: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:278: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:278: warning: (near initialization for `ieee80211_priv_args[2]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: warning: (near initialization for `ieee80211_priv_args[2]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: warning: (near initialization for `ieee80211_priv_args[2]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:279: warning: (near initialization for `ieee80211_priv_args[2]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:280: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:280: warning: (near initialization for `ieee80211_priv_args[3]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: warning: (near initialization for `ieee80211_priv_args[3]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: warning: (near initialization for `ieee80211_priv_args[3]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:281: warning: (near initialization for `ieee80211_priv_args[3]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:282: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:282: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:282: warning: (near initialization for `ieee80211_priv_args[4]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: warning: (near initialization for `ieee80211_priv_args[4]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: warning: (near initialization for `ieee80211_priv_args[4]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:283: warning: (near initialization for `ieee80211_priv_args[4]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:284: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:284: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:284: warning: (near initialization for `ieee80211_priv_args[5]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: warning: (near initialization for `ieee80211_priv_args[5]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: warning: (near initialization for `ieee80211_priv_args[5]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:285: warning: (near initialization for `ieee80211_priv_args[5]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:286: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:286: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:286: warning: (near initialization for `ieee80211_priv_args[6]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: error: `IW_PRIV_TYPE_ADDR' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: warning: (near initialization for `ieee80211_priv_args[6]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: warning: (near initialization for `ieee80211_priv_args[6]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:287: warning: (near initialization for `ieee80211_priv_args[6]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:288: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:288: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:288: warning: (near initialization for `ieee80211_priv_args[7]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: error: `IW_PRIV_TYPE_ADDR' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: warning: (near initialization for `ieee80211_priv_args[7]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: warning: (near initialization for `ieee80211_priv_args[7]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:289: warning: (near initialization for `ieee80211_priv_args[7]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:290: error: `SIOCIWFIRSTPRIV' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:290: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:290: warning: (near initialization for `ieee80211_priv_args[8]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: error: `IW_PRIV_TYPE_BYTE' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: error: `IW_PRIV_SIZE_FIXED' undeclared here (not in a function) /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: warning: (near initialization for `ieee80211_priv_args[8]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: warning: (near initialization for `ieee80211_priv_args[8]') /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: warning: excess elements in struct initializer /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.c:291: warning: (near initialization for `ieee80211_priv_args[8]') make[3]: *** [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath/if_ath.o] Error 1 make[2]: *** [_module_/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r3' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/ath' make: *** [all] Error 1 !!! ERROR: net-wireless/madwifi-driver-0.1_pre20040906 failed. !!! Function src_compile, Line 55, Exitcode 2 !!! (no error message)
ACCEPT_KEYWORDS="~x86" emerge madwifi-driver and test and report back please.
Instead of "unset ARCH" use set_arch_to_kernel() at beginning of src_compile() and set_arch_to_portage() at end of src_compile() from eutils.eclass.
Added horton and solar to CC:
horton, solar: what is the status of this bug report?
Appears to be fixed in last ebuild. madwifi-driver-0.1_pre20041019.ebuild If not please let me know. I am gunna close it till someone says it's still broke.