emerge rt61, gentoo error

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4937

seeb

06-08-2008 20:43:08

hi all. i'm trying to install the rt61 drivers as described in http//de.gentoo-wiki.com/RT61. kernel is compiled with the necessary options, but not as modules mostly build in

CONFIG_CFG80211=m (y on my system)
CONFIG_NL80211=y
CONFIG_WIRELESS_EXT=y
CONFIG_MAC80211=m (y on my system)
CONFIG_MAC80211_RCSIMPLE=y
CONFIG_RT2X00=m (y on my system)
CONFIG_RT2X00_LIB=m
CONFIG_RT2X00_LIB_PCI=m (y on my system)
CONFIG_RT2X00_LIB_FIRMWARE=y
CONFIG_RT61PCI=m (y on my system)

[code9f4wswok]sudo emerge rt61
Password:
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-wireless/rt61-1.1.0_beta2 to /
* rt61-1.1.0-b2.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking rt61-1.1.0-b2.tar.gz ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.25-gentoo-r7/build
* Found sources for kernel version:
* 2.6.25-gentoo-r7
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
>>> Unpacking rt61-1.1.0-b2.tar.gz to /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2 ...
* Preparing rt61 module
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7'
CC [M] /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.o
CC [M] /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/mlme.o
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'RT61_probe':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:222: error: implicit declaration of function 'SET_MODULE_OWNER'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'RT61_open':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:405: error: 'SA_SHIRQ' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:405: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:405: error: for each function it appears in.)
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'rt61_init_module':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:1044: error: implicit declaration of function 'pci_module_init'
make[3]: *** [/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/mlme.c: In function 'MlmeEnqueueForRecv':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/mlme.c:3297: warning: format '%ld' expects type 'long int', but argument 2 has type 'size_t'
make[2]: *** [_module_/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7'
rt61.ko failed to build!
make: *** [module] Error 1
*
* ERROR: net-wireless/rt61-1.1.0_beta2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3120: Called linux-mod_src_compile
* environment, line 2389: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.25-gentoo-r7/build clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/environment'.
*

* Messages for package net-wireless/rt61-1.1.0_beta2:

*
* ERROR: net-wireless/rt61-1.1.0_beta2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3120: Called linux-mod_src_compile
* environment, line 2389: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.25-gentoo-r7/build clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/environment'.
*
[/code9f4wswok]

IvD

06-08-2008 20:55:45

There is a specific reason why the rt61 driver is masked, namely that the beta2 release is too old.

Please use the cvs nightly tarball from our download website.
Alternatively, raise a bug report at Gentoo reporting the build error, and recommend the removal or update the ebuild.

In addition, why are you enabling the in-kernel rt61 driver as well as the out-of-kernel legacy driver, you can only use a single driver for your device. Either use the in-kernel driver or the out-of-kernel driver, but never both.

My German isn't that good, but from what I understand, they do explain that the "emerge rt61" step isn't needed when you use kernel 2.6.24 or higher. So perhaps you should read that wiki page again?

seeb

06-08-2008 21:07:44

Hm, okay. I'll give it a try, thx