* Preparing rt2400 module make: Entering directory `/usr/src/linux-2.6.19-gentoo-r5' CC [M] /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.o CC [M] /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/mlme.o CC [M] /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/connect.o /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c: In function '__check_ifname': /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c:59: warning: return from incompatible pointer type /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c: In function 'RT2400_probe': /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c:170: error: 'struct net_device' has no member named 'get_wireless_stats' /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c:190: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t' /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c: In function 'RT2400_open': /var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.c:238: warning: passing argument 2 of 'request_irq' from incompatible pointer type make[1]: *** [/var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module/rtmp_main.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [_module_/var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module] Error 2 make: Leaving directory `/usr/src/linux-2.6.19-gentoo-r5' !!! ERROR: net-wireless/rt2400-1.2.2_beta3 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile rt2400-1.2.2_beta3.ebuild, line 48: Called linux-mod_src_compile linux-mod.eclass, line 510: Called die !!! Unable to make -C /usr/src/linux M=/var/tmp/portage/rt2400-1.2.2_beta3/work/rt2400-1.2.2-b3/Module modules. !!! If you need support, post the topmost build error, and the call stack if relevant. Reproducible: Always Steps to Reproduce: 1. emerge rt2400 # emerge --info Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 i686) ================================================================= System uname: 2.6.18-gentoo-r6 i686 AMD Sempron(tm) 2600+ Gentoo Base System version 1.12.6 Last Sync: Sat, 03 Feb 2007 04:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-Os -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://krotok/gentoo-portage/" USE="x86 3dnow 3dnowext X aac alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dv dvb dvd dvdr dvdread eds elibc_glibc emboss encode exif fam firefox fortran gdbm gif gpm gtk hal i8x0 iconv ieee1394 input_devices_keyboard input_devices_mouse ipod isdnlog java jpeg kde kdeenablefinal kernel_linux lcd lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text ldap libg++ linguas_de lirc_devices_hauppauge_dvb mad midi mikmod mjpeg mmx mp3 mpeg mplayer ncurses nls nptl nptlonly nvidia ogg opengl pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline real reflection samba sdl session spell spl sse ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l video_cards_nvidia vorbis win32codecs xine xinerama xml xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 114251 [details, diff] patch to make module compile Apply this patch and rt2400-1.2.2-b3/Module/rtmp_main.c will compile.
I have the same compile problem with a vanilla 2.6.20.3 kernel. Here is a temp workaround until it gets fixed in the portage tree. Download the patch I uploaded and compile the package by hand. /magan tar -zxf /usr/portage/distfiles/rt2400-1.2.2-b3.tar.gz cd rt2400-1.2.2-b3/Module/ cat /tmp/foo.patch | patch make make install cd ../Utility/ /usr/qt/3/bin/qmake -o Makefile raconfig2400.pro make ./RaConfig2400
Sorry for spamming you all. My patch might be incorrect. I found parts of that solution here: http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?p=15161 Guess the way to do it is like this file is doing it: /usr/portage/net-wireless/rt2400/files/rt2400-1.2.3_beta3-2.6.17.patch /magan (In reply to comment #1) > Created an attachment (id=114251) [edit] > patch to make module compile > > Apply this patch and rt2400-1.2.2-b3/Module/rtmp_main.c will compile. >
Can you try to make an ebuild for a cvs snapshot and test it out please? You can get it at: http://rt2x00.serialmonkey.com/rt2400-cvs-daily.tar.gz Otherwise feel free to wait for the rt2x00 driver bug 176148 waiting for upstream to release a new rt2400 or rt2x00