Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215043 - net-wireless/fwlanusb-1.00.00-r1 fails to compile w/ 2.6.24 kernels
Summary: net-wireless/fwlanusb-1.00.00-r1 fails to compile w/ 2.6.24 kernels
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.24
  Show dependency tree
 
Reported: 2008-03-27 12:58 UTC by Andreas Schrimpf
Modified: 2010-07-21 00:44 UTC (History)
4 users (show)

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


Attachments
emerge log (emerge_fwlanusb.log,5.26 KB, text/plain)
2008-03-28 15:05 UTC, Andreas Schrimpf
Details
patch to compile fwlanusb driver module against linux 2.6.32 (fwlanusb-2.6.32.patch,12.29 KB, patch)
2010-01-01 11:41 UTC, Matthias Fauconneau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schrimpf 2008-03-27 12:58:35 UTC
After updating to kernel 2.6.24-r3 I can't compile fwlanusb any more.
Besides: the latest kernel that works on my pc is 2.6.22-gentoo-r5. I could compile fwlanusb with kernels between 2.6.22-r8 and 2.6.23.r9, but it freezes the system shortly after the module got loades.

Reproducible: Always

Steps to Reproduce:
1. emerge fwlanusb
2.
3.

Actual Results:  
 * Messages for package net-wireless/fwlanusb-1.00.00-r1:

 * 
 * ERROR: net-wireless/fwlanusb-1.00.00-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3175:  Called linux-mod_src_compile
 *             environment, line 2388:  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=  KDIR=/usr/src/linux LIBDIR=/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src all
 


Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.40GHz
Timestamp of tree: Thu, 27 Mar 2008 06:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://fido.online.kz/gentoo/pub ftp://mirror.pacific.net.au/linux/Gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/"
LC_ALL="en_US.utf8"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa audiofile avahi bonobo cairo cdparanoia cdr cli cracklib crypt cups curl dbus directfb dri dvd dvdr dvdread eds emacs emboss encode esd evo ffmpeg firefox flac fortran gd gdbm gif giff gnome gphoto2 gpm gstreamer gtk gtk2 hal howl icc iconv imagemagick imap ipv6 isdnlog jpeg jpeg2k kerberos libg++ libwww lm_sensors mad maildir midi mikmod mime motif mp3 mpeg mplayer mudflap mule mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl plotutils png postgres pppd python qt3support quicktime readline reflection sasl scanner sdl session spell spl ssl stream svg tcpd tetex tiff truetype unicode usb v4l vorbis wifi win32codecs wxwindows x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-27 16:41:30 UTC
You need to post some errrors, not this... Reopen once done, thanks.
Comment 2 Andreas Schrimpf 2008-03-28 07:16:46 UTC
Okay. These are actually two bug reports. I'll split it.

After updating to kernel 2.6.24-r3 fwlanusb does not compile any more. 
It did compile with all the older kernels.

"emerge fwlanusb" results in

*  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc
LDFLAGS=  KDIR=/usr/src/linux
LIBDIR=/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src all
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 09:13:33 UTC
Uhm... Attach a full emerge log and reopen then.
Comment 4 Andreas Schrimpf 2008-03-28 15:05:58 UTC
Created attachment 147550 [details]
emerge log
Comment 5 Andreas Schrimpf 2008-03-28 15:09:27 UTC
okay, the attachment contains the output of 
emerge fwlanusb > emerge_fwlanusb.log
If that's not exactly what you need, please tell me, how I can get all the information for working in that bug. Thanks.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 15:11:28 UTC
<snip>
make -C /usr/src/linux M=/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src modules 
make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo-r3'
  CC [M]  /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/main.o
  CC [M]  /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.o
In file included from /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/tools.h:30,
                 from /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/main.c:31:
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/defs.h:63: error: redefinition of typedef ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
In file included from /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/libdefs.h:28,
                 from /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:33:
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/defs.h:63: error: redefinition of typedef ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function ‘net_init’:
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:326: error: ‘struct net_device’ has no member named ‘wireless_handlers’
make[2]: *** [/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r3'
make: *** [fwlanusb.o] Error 2
 * 
 * ERROR: net-wireless/fwlanusb-1.00.00-r1 failed.
</snip>
Comment 7 Andreas Schrimpf 2008-05-16 17:31:21 UTC
I found a hint, that probably just fwlanusb-1.00.00-r1/work/fritz/src/defs.h needs to be patched:
just put a comment mark in the line

...
#  typedef unsigned long uintptr_t;
...

I never made a new ebuild package, could you please try this?
Thanks!!
Comment 8 Dmitry 2008-07-18 18:39:48 UTC
(In reply to comment #7)

I neither know nothing about how to write an ebuild, so I commented out the line 

typedef unsigned long uintptr_t;

in /usr/src/linux/include/linux/types.h, but now there is another thing:

FATAL: modpost: GPL-incompatible module fwlanusb.ko uses GPL-only symbol 'usb_kill_urb'

No idea how to handle it with merge tools, i'm going to try to compile that stuff by hand.
Comment 9 Marcel Schmedes 2008-07-29 23:52:31 UTC
(In reply to comment #8)

I ran into problems with Fritz WLAN Stick today, so here it go's:
Delete the double typedef - ok.
This modpost Error you don't come around with kernels >=2.6.24, because of the new drivermodel of Linux Kernel and AVM don't seems to rewrite this driver in next time. So forget the "native" driver.

I would rate this bug as closed.

BTW: Stick works fine here with 2.6.25-gentoo-r7, AVM WinXP Driver, ndiswrapper-1.53, wpa_supplicant-0.5.10 (with WPA1/2 and g++)
Comment 10 Tamer Higazi 2008-09-26 09:24:31 UTC
C++ outcomment worked for me, with the difference that I had to do insted: 

/* typedef unsigned long uintptr_t; */

instead of

#  typedef unsigned long uintptr_t;


then i I could build it successfully. 

I don't know how to write a patch, but if someone could write a patch to modify 

the file "fwlanusb-1.00.00-r1/work/fritz/src/defs.h" by outcommenting how I did, then the problem is solved. 


(In reply to comment #7)
> I found a hint, that probably just fwlanusb-1.00.00-r1/work/fritz/src/defs.h
> needs to be patched:
> just put a comment mark in the line
> 
> ...
> #  typedef unsigned long uintptr_t;
> ...
> 
> I never made a new ebuild package, could you please try this?
> Thanks!!
> 

Comment 11 Tamer Higazi 2008-09-26 09:27:51 UTC
After doing this I found a small error how to build, then I receive a small error from the OS side telling me: 

Relocatable linking with relocations from format elf32-i386 (/tmp/lib/fritz//fwlanusb-lib.o) to format elf64-x86-64 (/tmp/fritz/src/fwlanusb.o) is not supported

here the full outpot after the modifications: 

tamer@tux /tmp/fritz $ sudo ./install 
make: Entering directory `/tmp/fritz/src'
rm -f main.o driver.o tools.o lib.o buffers.o wext.o 
rm -f fwlanusb.o fwlanusb.ko 
make: Leaving directory `/tmp/fritz/src'
make: Entering directory `/tmp/fritz/src'
make -C /lib/modules/2.6.25-gentoo-r7/build SUBDIRS=/tmp/fritz/src modules 
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7'
  CC [M]  /tmp/fritz/src/main.o
  CC [M]  /tmp/fritz/src/driver.o
  CC [M]  /tmp/fritz/src/tools.o
  CC [M]  /tmp/fritz/src/lib.o
In file included from include/linux/kernel.h:18,
                 from include/linux/cache.h:4,
                 from include/asm/pda.h:7,
                 from include/asm/current_64.h:7,
                 from include/asm/current.h:4,
                 from include/asm/processor.h:19,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/timer.h:4,
                 from /tmp/fritz/src/lib.c:25:
include/asm/bug.h:15:1: warning: "BUG" redefined
In file included from /tmp/fritz/src/lib.c:24:
include/asm-generic/bug.h:24:1: warning: this is the location of the previous definition
/tmp/fritz/src/lib.c: In function 'os_usb_rx_buf_get':
/tmp/fritz/src/lib.c:672: warning: cast from pointer to integer of different size
/tmp/fritz/src/lib.c: In function 'os_usb_rx_buf_inc_ref':
/tmp/fritz/src/lib.c:698: warning: cast to pointer from integer of different size
/tmp/fritz/src/lib.c: In function 'os_usb_rx_buf_free':
/tmp/fritz/src/lib.c:727: warning: cast to pointer from integer of different size
  CC [M]  /tmp/fritz/src/buffers.o
  CC [M]  /tmp/fritz/src/wext.o
  LD [M]  /tmp/fritz/src/fwlanusb.o
ld: Relocatable linking with relocations from format elf32-i386 (/tmp/lib/fritz//fwlanusb-lib.o) to format elf64-x86-64 (/tmp/fritz/src/fwlanusb.o) is not supported
make[2]: *** [/tmp/fritz/src/fwlanusb.o] Error 1
make[1]: *** [_module_/tmp/fritz/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7'
make: *** [fwlanusb.o] Error 2
make: Leaving directory `/tmp/fritz/src'
make: Entering directory `/tmp/fritz/src'
cp: cannot stat `fwlanusb.ko': No such file or directory
make: *** [install] Error 1
make: Leaving directory `/tmp/fritz/src'



(In reply to comment #10)
> C++ outcomment worked for me, with the difference that I had to do insted: 
> 
> /* typedef unsigned long uintptr_t; */
> 
> instead of
> 
> #  typedef unsigned long uintptr_t;
> 
> 
> then i I could build it successfully. 
> 
> I don't know how to write a patch, but if someone could write a patch to modify 
> 
> the file "fwlanusb-1.00.00-r1/work/fritz/src/defs.h" by outcommenting how I
> did, then the problem is solved. 
> 
> 
> (In reply to comment #7)
> > I found a hint, that probably just fwlanusb-1.00.00-r1/work/fritz/src/defs.h
> > needs to be patched:
> > just put a comment mark in the line
> > 
> > ...
> > #  typedef unsigned long uintptr_t;
> > ...
> > 
> > I never made a new ebuild package, could you please try this?
> > Thanks!!
> > 
> 

Comment 12 Tamer Higazi 2008-09-29 19:55:30 UTC
I contacted AVM according this error message. They offer only a 32 bit driver and they haven't published yet a driver for the 64 bit environment. 

(In reply to comment #11)
> After doing this I found a small error how to build, then I receive a small
> error from the OS side telling me: 
> 
> Relocatable linking with relocations from format elf32-i386
> (/tmp/lib/fritz//fwlanusb-lib.o) to format elf64-x86-64
> (/tmp/fritz/src/fwlanusb.o) is not supported
> 
> here the full outpot after the modifications: 
> 
> tamer@tux /tmp/fritz $ sudo ./install 
> make: Entering directory `/tmp/fritz/src'
> rm -f main.o driver.o tools.o lib.o buffers.o wext.o 
> rm -f fwlanusb.o fwlanusb.ko 
> make: Leaving directory `/tmp/fritz/src'
> make: Entering directory `/tmp/fritz/src'
> make -C /lib/modules/2.6.25-gentoo-r7/build SUBDIRS=/tmp/fritz/src modules 
> make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7'
>   CC [M]  /tmp/fritz/src/main.o
>   CC [M]  /tmp/fritz/src/driver.o
>   CC [M]  /tmp/fritz/src/tools.o
>   CC [M]  /tmp/fritz/src/lib.o
> In file included from include/linux/kernel.h:18,
>                  from include/linux/cache.h:4,
>                  from include/asm/pda.h:7,
>                  from include/asm/current_64.h:7,
>                  from include/asm/current.h:4,
>                  from include/asm/processor.h:19,
>                  from include/linux/prefetch.h:14,
>                  from include/linux/list.h:8,
>                  from include/linux/timer.h:4,
>                  from /tmp/fritz/src/lib.c:25:
> include/asm/bug.h:15:1: warning: "BUG" redefined
> In file included from /tmp/fritz/src/lib.c:24:
> include/asm-generic/bug.h:24:1: warning: this is the location of the previous
> definition
> /tmp/fritz/src/lib.c: In function 'os_usb_rx_buf_get':
> /tmp/fritz/src/lib.c:672: warning: cast from pointer to integer of different
> size
> /tmp/fritz/src/lib.c: In function 'os_usb_rx_buf_inc_ref':
> /tmp/fritz/src/lib.c:698: warning: cast to pointer from integer of different
> size
> /tmp/fritz/src/lib.c: In function 'os_usb_rx_buf_free':
> /tmp/fritz/src/lib.c:727: warning: cast to pointer from integer of different
> size
>   CC [M]  /tmp/fritz/src/buffers.o
>   CC [M]  /tmp/fritz/src/wext.o
>   LD [M]  /tmp/fritz/src/fwlanusb.o
> ld: Relocatable linking with relocations from format elf32-i386
> (/tmp/lib/fritz//fwlanusb-lib.o) to format elf64-x86-64
> (/tmp/fritz/src/fwlanusb.o) is not supported
> make[2]: *** [/tmp/fritz/src/fwlanusb.o] Error 1
> make[1]: *** [_module_/tmp/fritz/src] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7'
> make: *** [fwlanusb.o] Error 2
> make: Leaving directory `/tmp/fritz/src'
> make: Entering directory `/tmp/fritz/src'
> cp: cannot stat `fwlanusb.ko': No such file or directory
> make: *** [install] Error 1
> make: Leaving directory `/tmp/fritz/src'
> 
> 
> 
> (In reply to comment #10)
> > C++ outcomment worked for me, with the difference that I had to do insted: 
> > 
> > /* typedef unsigned long uintptr_t; */
> > 
> > instead of
> > 
> > #  typedef unsigned long uintptr_t;
> > 
> > 
> > then i I could build it successfully. 
> > 
> > I don't know how to write a patch, but if someone could write a patch to modify 
> > 
> > the file "fwlanusb-1.00.00-r1/work/fritz/src/defs.h" by outcommenting how I
> > did, then the problem is solved. 
> > 
> > 
> > (In reply to comment #7)
> > > I found a hint, that probably just fwlanusb-1.00.00-r1/work/fritz/src/defs.h
> > > needs to be patched:
> > > just put a comment mark in the line
> > > 
> > > ...
> > > #  typedef unsigned long uintptr_t;
> > > ...
> > > 
> > > I never made a new ebuild package, could you please try this?
> > > Thanks!!
> > > 
> > 
> 

Comment 13 Markus Giese 2009-07-29 11:46:50 UTC
hi there,

running 2.6.30-r3 (32bit) centrino

have the same problem.."Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r3'
make: *** [fwlanusb.o] Error 2"

i tried your suggestion to uncomment "typedef unsigned long uintptr_t;"

i tried both ways (# and c++ style)

as soon as i start to emerge fwlanusb, the unzip procedure overrides my changes.

so i tried in the amv/src dir to execute "make" manually : 

# make
make -C /lib/modules/2.6.30-gentoo-r3/build M=/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src modules 
make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r3'

  WARNING: Symbol version dump /usr/src/linux-2.6.30-gentoo-r3/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.o
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_init':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:317: error: 'struct net_device' has no member named 'priv'
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_rx':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:405: error: 'struct net_device' has no member named 'priv'
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_tx':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:436: error: 'struct net_device' has no member named 'priv'
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_stats':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:458: error: 'struct net_device' has no member named 'priv'
make[2]: *** [/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r3'
make: *** [fwlanusb.o] Error 2

where the ./install script claims to miss fwlanusb.ko !?!

# ./install
make: Entering directory `/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src'
rm -f main.o driver.o tools.o lib.o buffers.o wext.o 
rm -f fwlanusb.o fwlanusb.ko 
make: Leaving directory `/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src'
make: Entering directory `/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src'
make -C /lib/modules/2.6.30-gentoo-r3/build M=/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src modules 
make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r3'

  WARNING: Symbol version dump /usr/src/linux-2.6.30-gentoo-r3/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/main.o
  CC [M]  /var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.o
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_init':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:317: error: 'struct net_device' has no member named 'priv'
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_rx':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:405: error: 'struct net_device' has no member named 'priv'
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_tx':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:436: error: 'struct net_device' has no member named 'priv'
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c: In function 'net_stats':
/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.c:458: error: 'struct net_device' has no member named 'priv'
make[2]: *** [/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src/driver.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r3'
make: *** [fwlanusb.o] Error 2
make: Leaving directory `/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src'
make: Entering directory `/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src'
cp: cannot stat `fwlanusb.ko': No such file or directory
make: *** [install] Error 1
make: Leaving directory `/var/tmp/portage/net-wireless/fwlanusb-1.00.00-r1/work/fritz/src'



are you sure that there is no AVM kernel module in the current sources ?

thanks a lot

any suggestion ?

Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-06 21:35:22 UTC
Kernel team do you think this should be left in tree or do you suggest masking for removal or something? The same goes for other similar modules in the tree…
Comment 15 Matthias Fauconneau 2010-01-01 11:41:33 UTC
Created attachment 214824 [details, diff]
patch to compile fwlanusb driver module against linux 2.6.32

I adapted the fwlanusb driver to linux 2.6.32.
I'm attaching a patch with the changes I made.
I think packages with no support from upstream shouldn't be in portage tree.
Comment 16 Christian Ruppert (idl0r) gentoo-dev 2010-02-07 21:21:31 UTC
(In reply to comment #15)
> Created an attachment (id=214824) [details]
> patch to compile fwlanusb driver module against linux 2.6.32
> 
> I adapted the fwlanusb driver to linux 2.6.32.
> I'm attaching a patch with the changes I made.
> I think packages with no support from upstream shouldn't be in portage tree.
> 

Seems to work fine :)
Comment 17 Stefan Briesenick (RETIRED) gentoo-dev 2010-07-21 00:44:57 UTC
Abandoned upstream. Won't work with current kernels. Closed Source.