lasth
Posts: 4
Joined: Tue Mar 01, 2016 8:51 am

Bluez 5.37 install error [SOLVED]

Tue Mar 01, 2016 9:14 am

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
Last edited by lasth on Tue Mar 01, 2016 3:37 pm, edited 1 time in total.

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Bluez 5.37 install error

Tue Mar 01, 2016 12:21 pm

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
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
Douglas6
Posts: 4778
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluez 5.37 install error

Tue Mar 01, 2016 12:32 pm

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

lasth
Posts: 4
Joined: Tue Mar 01, 2016 8:51 am

Re: Bluez 5.37 install error

Tue Mar 01, 2016 12:50 pm

Yes I think, I don't have any error about dependancies.
I'll try to post into the other forum too.

thanks for now

User avatar
Douglas6
Posts: 4778
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluez 5.37 install error

Tue Mar 01, 2016 1:59 pm

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.

lasth
Posts: 4
Joined: Tue Mar 01, 2016 8:51 am

Re: Bluez 5.37 install error

Tue Mar 01, 2016 2:34 pm

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

User avatar
0xFF
Posts: 202
Joined: Tue Nov 20, 2012 7:52 pm
Location: Poland

Re: Bluez 5.37 install error

Tue Mar 01, 2016 2:42 pm

I can compile latest bluez pull from git.
My gcc version is 4.9.2 (Raspbian 4.9.2-10)

User avatar
Douglas6
Posts: 4778
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluez 5.37 install error

Tue Mar 01, 2016 2:56 pm

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).

lasth
Posts: 4
Joined: Tue Mar 01, 2016 8:51 am

Re: Bluez 5.37 install error

Tue Mar 01, 2016 3:36 pm

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!

Return to “General discussion”