Summary: | net-wireless/fwlanusb-1.00.00-r1 fails to compile w/ 2.6.24 kernels | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Schrimpf <andreas.schrimpf> |
Component: | New packages | Assignee: | Stefan Briesenick (RETIRED) <sbriesen> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | idl0r, kernel, net-dialup, sm |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 207383 | ||
Attachments: |
emerge log
patch to compile fwlanusb driver module against linux 2.6.32 |
Description
Andreas Schrimpf
2008-03-27 12:58:35 UTC
You need to post some errrors, not this... Reopen once done, thanks. 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 Uhm... Attach a full emerge log and reopen then. Created attachment 147550 [details]
emerge log
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. <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> 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!! (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. (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++) 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!! > 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!! > > > 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!! > > > > > > 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 ? 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… 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.
(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 :) Abandoned upstream. Won't work with current kernels. Closed Source. |