Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37696 - Bluez-bluefw won't compile in newer 2.6 kernels
Summary: Bluez-bluefw won't compile in newer 2.6 kernels
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-09 07:46 UTC by Gustavo Michels
Modified: 2004-01-12 08:47 UTC (History)
0 users

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


Attachments
Latest bluetooth development (patch-2.6.0-mh2,87.64 KB, patch)
2004-01-09 09:19 UTC, Gustavo Michels
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Michels 2004-01-09 07:46:48 UTC
When I try to emerge bluez-bluefw-r1, I get the following error:

gustavo / # ACCEPT_KEYWORDS="~x86" emerge bluez-bluefw
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/bluez-bluefw-0.9-r1 to /
>>> md5 src_uri ;-) bluez-bluefw-0.9.tar.gz
>>> Unpacking source...
>>> Unpacking bluez-bluefw-0.9.tar.gz to /var/tmp/portage/bluez-bluefw-0.9-r1/work
 * Applying bluez-bluefw-0.9-kernel2.6.patch...                           [ ok ]
>>> Source unpacked.
creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -Wall -g -O2 ) works... yes
checking whether the C compiler (gcc -Wall -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for sys/io.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating firmware/Makefile
creating hotplug/Makefile
Making all in firmware
make[1]: Entering directory `/var/tmp/portage/bluez-bluefw-0.9-r1/work/bluez-bluefw-0.9/firmware'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/bluez-bluefw-0.9-r1/work/bluez-bluefw-0.9/firmware'
Making all in hotplug
make[1]: Entering directory `/var/tmp/portage/bluez-bluefw-0.9-r1/work/bluez-bluefw-0.9/hotplug'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/bluez-bluefw-0.9-r1/work/bluez-bluefw-0.9/hotplug'
make[1]: Entering directory `/var/tmp/portage/bluez-bluefw-0.9-r1/work/bluez-bluefw-0.9'
gcc -DPACKAGE=\"bluez-bluefw\" -DVERSION=\"0.9\" -DBT3C_SUPPORT=1  -I. -I.  -I/usr/src/linux/include    -Wall -g -O2 -c bluefw.c
gcc -DPACKAGE=\"bluez-bluefw\" -DVERSION=\"0.9\" -DBT3C_SUPPORT=1  -I. -I.  -I/usr/src/linux/include    -Wall -g -O2 -c usblib.c
In file included from /usr/src/linux/include/linux/compiler.h:16,
                 from usblib.h:29,
                 from bluefw.c:39:
/usr/src/linux/include/linux/compiler-gcc3.h:19:1: warning: "__attribute_used__" redefined
In file included from /usr/include/features.h:291,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:37,
                 from bluefw.c:27:
/usr/include/sys/cdefs.h:192:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/compiler.h:16,
                 from usblib.h:29,
                 from bluefw.c:39:
/usr/src/linux/include/linux/compiler-gcc3.h:22:1: warning: "__attribute_pure__" redefined
In file included from /usr/include/features.h:291,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:37,
                 from bluefw.c:27:
/usr/include/sys/cdefs.h:183:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/compiler.h:16,
                 from usblib.h:29,
                 from usblib.c:33:
/usr/src/linux/include/linux/compiler-gcc3.h:19:1: warning: "__attribute_used__" redefined
In file included from /usr/include/features.h:291,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:37,
                 from usblib.c:26:
/usr/include/sys/cdefs.h:192:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/compiler.h:16,
                 from usblib.h:29,
                 from usblib.c:33:
/usr/src/linux/include/linux/compiler-gcc3.h:22:1: warning: "__attribute_pure__" redefined
In file included from /usr/include/features.h:291,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:37,
                 from usblib.c:26:
/usr/include/sys/cdefs.h:183:1: warning: this is the location of the previous definition
gcc -DPACKAGE=\"bluez-bluefw\" -DVERSION=\"0.9\" -DBT3C_SUPPORT=1  -I. -I.  -I/usr/src/linux/include    -Wall -g -O2 -c pccard.c
gcc -DPACKAGE=\"bluez-bluefw\" -DVERSION=\"0.9\" -DBT3C_SUPPORT=1  -I. -I.  -I/usr/src/linux/include    -Wall -g -O2 -c devinfo.c
gcc -DPACKAGE=\"bluez-bluefw\" -DVERSION=\"0.9\" -DBT3C_SUPPORT=1  -I. -I.  -I/usr/src/linux/include    -Wall -g -O2 -c bcm_usb.c
In file included from /usr/src/linux/include/pcmcia/cs.h:33,
                 from pccard.h:25,
                 from pccard.c:34:
/usr/src/linux/include/pcmcia/compat.h:23: parse error before "CardServices"
/usr/src/linux/include/pcmcia/compat.h:23: warning: type defaults to `int' in declaration of `CardServices'
/usr/src/linux/include/pcmcia/compat.h:23: warning: data definition has no type or storage class
make[1]: *** [pccard.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/src/linux/include/linux/compiler.h:16,
                 from usblib.h:29,
                 from bcm_usb.c:37:
/usr/src/linux/include/linux/compiler-gcc3.h:19:1: warning: "__attribute_used__" redefined
In file included from /usr/include/features.h:291,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:37,
                 from bcm_usb.c:26:
/usr/include/sys/cdefs.h:192:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/compiler.h:16,
                 from usblib.h:29,
                 from bcm_usb.c:37:
/usr/src/linux/include/linux/compiler-gcc3.h:22:1: warning: "__attribute_pure__" redefined
In file included from /usr/include/features.h:291,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:37,
                 from bcm_usb.c:26:
/usr/include/sys/cdefs.h:183:1: warning: this is the location of the previous definition
make[1]: Leaving directory `/var/tmp/portage/bluez-bluefw-0.9-r1/work/bluez-bluefw-0.9'
make: *** [all-recursive] Error 1

!!! ERROR: net-wireless/bluez-bluefw-0.9-r1 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)

I am running 2.6.1-mm1 but this also happens under vanilla 2.6.0. I once had this working on a 2.6.0-test7-mm1 system, as I described on http://forums.gentoo.org/viewtopic.php?t=99078.

Since then I never tried bluetooth again, until now, which gives me the above error.

Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS="~x86" emerge bluez-bluefw
2.
3.

Actual Results:  
Emerge failed with compilation error.

Expected Results:  
Compiled correctly :D

I heard there were some recent changes in the kernel bluetooth code, but I 
thought this was only available on the love-sources. Anyway, I tried it on the 
latest mm-sources and 2.6.0 final, without success.
Comment 1 Gustavo Michels 2004-01-09 09:19:57 UTC
Created attachment 23488 [details, diff]
Latest bluetooth development

Applied the attached patch to 2.6.0 vanilla and bluefw compiled and is working
ok.

Patch won't apply cleanly on 2.6.1-mm1.
Comment 2 Gustavo Michels 2004-01-12 04:31:44 UTC
Ah nevermind again, I found out that bluefw is no longer needed (nor supported) under 2.6. Users that needed bluefw should use the bcm203x driver (available on the mh patches) which will load the firmware automatically thru hotplug.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-01-12 08:47:56 UTC
Yep, looks like this only supports 2.4. Thanks for filing this anyway...