Page 1 of 1

Bluez 5.37 install error [SOLVED]

Posted: Tue Mar 01, 2016 9:14 am
by lasth
Hi to all,
I'm new on the forum and on raspberry too... I'm trying to install Bluez 5.37 on my raspberry because I need to power on a Sitecom bluetooth usb dongle. This dongle need this version to go in HCI mode, the version with apt-get doesn't have the csr2 mode.

So I started with the installation from source but when I provide the make command the following error is returned:

src/plugin.c: In function ‘plugin_init’:
src/plugin.c:139:14: error: ‘__bluetooth_builtin’ undeclared (first use in this function)
for (i = 0; __bluetooth_builtin; i++) {
^
src/plugin.c:139:14: note: each undeclared identifier is reported only once for each function it appears in
Makefile:8106: recipe for target 'src/bluetoothd-plugin.o' failed
make[1]: *** [src/bluetoothd-plugin.o] Error 1
Makefile:9157: recipe for target 'check' failed
make: *** [check] Error 2

Previously, the ./configure command goes well.

Someone can help me? Very thanks to all!

Francesco

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 12:21 pm
by texy
The last version I remember trying was 5.23 :
viewtopic.php?f=29&t=87138&p=758820&hilit=texy#p758820
.but I haven't tried it recently. I think I'm waiting for a Jessie tutorial ;)
Texy

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 12:32 pm
by Douglas6
Have you installed all required dependencies? Afraid 5.23 was also the last time I tried to build from source. You might get better help over at http://raspberrypi.stackexchange.com

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 12:50 pm
by lasth
Yes I think, I don't have any error about dependancies.
I'll try to post into the other forum too.

thanks for now

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 1:59 pm
by Douglas6
I just gave it a shot, and had no trouble building BlueZ 5.37

Code: Select all

sudo apt-get install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
wget www.kernel.org/pub/linux/bluetooth/bluez-5.37.tar.xz
unxz bluez-5.37.tar.xz
tar xvf bluez-5.37.tar
cd bluez-5.37/ 
./configure
make
this was on 2016-02-09 Jessie, and after previously installing bluetooth from the repo.

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 2:34 pm
by lasth
I don't know but I found a lot of error into the config.log regarding gcc. For example:

gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files

gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files

conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>

conftest.c:54:26: fatal error: minix/config.h: No such file or directory
#include <minix/config.h>

Could be a gcc problem? My version is gcc (Raspbian 4.9.2-10) 4.9.2

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 2:42 pm
by 0xFF
I can compile latest bluez pull from git.
My gcc version is 4.9.2 (Raspbian 4.9.2-10)

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 2:56 pm
by Douglas6
I can also verify that

Code: Select all

./configure --enable-library --enable-experimental 
make
is building successfully. Also using gcc version 4.9.2 (Raspbian 4.9.2-10).

Re: Bluez 5.37 install error

Posted: Tue Mar 01, 2016 3:36 pm
by lasth
Well...
I removed all bluez-5.37, deleting the directory. Then I got new tar.xy... So the make command successfully gone and I'm able to install bluez.

The only thing I have changed is that the tar.xy was provided by wget command. Previously I got the file from bluez.org and I move the file with cyberduck into the raspberry...

Thank you to all!
See you!