Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85079 - net-wireless/rt2500-1.1.0_beta2 fails to make the module ( 2.6.11-mm3 )
Summary: net-wireless/rt2500-1.1.0_beta2 fails to make the module ( 2.6.11-mm3 )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-13 06:17 UTC by Nuno Alexandre
Modified: 2005-05-18 00:31 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rt2500 emerge log (3989-rt2500-1.1.0_beta2.log,5.59 KB, application/octet-stream)
2005-04-23 13:34 UTC, Ulrich Plate (RETIRED)
Details
emerge rt2500 log file (4180-rt2500-1.1.0_beta2.log,5.67 KB, text/plain)
2005-05-17 01:21 UTC, Ulrich Plate (RETIRED)
Details
Patch for rtmp_main.c (rt2500.patch,420 bytes, patch)
2005-05-17 04:49 UTC, Ulrich Plate (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Alexandre 2005-03-13 06:17:16 UTC
>>> emerge (1 of 1) net-wireless/rt2500-1.1.0_beta2 to /
>>> md5 src_uri ;-) rt2500-1.1.0-b2.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.11-mm3CFQ
 * Checking for suitable kernel configuration options
>>> Unpacking source...
>>> Unpacking rt2500-1.1.0-b2.tar.gz to /var/tmp/portage/rt2500-1.1.0_beta2/work
>>> Source unpacked.
 * Preparing rt2500 module
make: Entering directory `/usr/src/linux-2.6.11-mm3'
  CC [M]  /var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module/rtmp_main.o
  CC [M]  /var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module/mlme.o
/var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module/rtmp_main.c: In function `RT2500_probe':
/var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module/rtmp_main.c:103: error: structure has no member named `slot_name'
make[1]: *** [/var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module/rtmp_main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [_module_/var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module] Error 2
make: Leaving directory `/usr/src/linux-2.6.11-mm3'

!!! ERROR: net-wireless/rt2500-1.1.0_beta2 failed.
!!! Function linux-mod_src_compile, Line 417, Exitcode 2
!!! Unable to make 				    -C /usr/src/linux M=/var/tmp/portage/rt2500-1.1.0_beta2/work/rt2500-1.1.0/Module modules.
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r0, 2.6.11-mm3CFQ x86_64)
=================================================================
System uname: 2.6.11-mm3CFQ x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 26 2005, 16:27:31)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoclean autoconfig ccache distlocks noinfo notitles sandbox"
GENTOO_MIRRORS="http://mirror.uni-c.dk/gentoo/ ftp://ftp.dkuug.dk/pub/gentoo/
ftp://rsync.gentoo.diku.dk http://ftp.du.se/pub/os/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1"
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="amd64 ncurses"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-03-13 07:07:56 UTC
Do you see this bug also on vanilla-kernel?
Comment 2 Nuno Alexandre 2005-03-13 07:57:48 UTC
I'll have to make one first.

I'll let you know when its done ( couple minutes ) 
Comment 3 Nuno Alexandre 2005-03-13 08:12:11 UTC
builds and loads ok in 2.6.11 ( vanilla )

but since its broken on the mm tree, I suspect that soon it will be broken on the vanilla tree as well ( unless something gets changed before that )

sorry the noise.
:)
Comment 4 Ulrich Plate (RETIRED) gentoo-dev 2005-04-08 13:39:33 UTC
Self-fulfilling prophecies? :) Well, it is indeed broken in vanilla now, and not limited to amd64 either (plain old PIII here). I'll try again with an older kernel, the one that breaks it is 2.6.12-rc2, and the error message I'm getting is identical to the one in the original report.
Comment 5 Ulrich Plate (RETIRED) gentoo-dev 2005-04-23 13:34:39 UTC
Created attachment 57036 [details]
rt2500 emerge log

Please reopen this bug, same error with vanilla 2.6.12-rc3.
Comment 6 John Mylchreest (RETIRED) gentoo-dev 2005-04-23 13:44:34 UTC
reopening.
Comment 7 John Mylchreest (RETIRED) gentoo-dev 2005-04-23 13:49:33 UTC
reassigning the the appropriate herd and cc'ing myself in. This fault looks like its a problem with a conditional include in the rt2500 code. Not checked yet though.
Comment 8 Henning Ryll 2005-05-05 16:26:29 UTC
It's a general problem with the driver and kernel >= 2.6.10
You will find Info's how to patch the driver at http://sourceforge.net/projects/rt2400

Henning
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-05 22:12:12 UTC
Can you please give us a direct link to the patch or wiki node?
And maybe make an ebuild for it and test it so that I can RESOLVE this bug :)
Comment 10 Ulrich Plate (RETIRED) gentoo-dev 2005-05-17 01:21:19 UTC
Created attachment 59100 [details]
emerge rt2500 log file

Still flunking out of module compilation, now with vanilla kernel 2.6.12-rc4.
I've looked around the sourceforge site for hints or patches, but came up
empty.
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-17 03:19:56 UTC
Please provide me with a patch to fix it with the crrent coe and I will do.

Otherwise I will just wait for:
http://rt2x00.serialmonkey.com/wiki/index.php/Rt2x00_alpha

to become useable, so that I can make a version bump.
Comment 12 Ulrich Plate (RETIRED) gentoo-dev 2005-05-17 04:49:20 UTC
Created attachment 59111 [details, diff]
Patch for rtmp_main.c

Frankly, I have no idea what I'm doing here, but it appears to compile and
install when I do it... Found this page in the support section of their
sourceforge site, and produced a patch from what I read there:

http://sourceforge.net/tracker/index.php?func=detail&aid=1196199&group_id=107832&atid=648845


Looks like rt2500 in CVS has been patched a long time ago, while Gentoo is
still using the outdated form. Maybe it's better to use that newer version
rather than patch the one we've got? You better double-check the whole thing
before using the patch... Anyway, changing that one line in rtmp_main.c makes
it compile with my 2.6.12-rc4 kernel.
Comment 13 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-17 06:44:33 UTC
Does your patch break older kernels?

It makes it compile for me with rc4-mm1 :)
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-18 00:31:45 UTC
thanks fixed

I apply the patch conditionally on kernel ge 2 6 12