2008-07-17 11:24:57

by Sam

[permalink] [raw]
Subject: bluez-utils compilation error.

Hello. I'm having a bit of trouble compiling bluez-utils using the
.tar.gz source. I need to run this configuration to enable all the
tools (dfutool, etc.)

Here's a pastebin of the bash: http://pastebin.ca/1073779

make[2]: Entering directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
make all-am
make[3]: Entering directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../eglib
-I../gdbus -DPLUGINDIR=\""/g/lib/bluetooth/plugins"\" -Wall -O2
-D_FORTIFY_SOURCE=2 -fPIE -MT security.o -MD -MP -MF
.deps/security.Tpo -c -o security.o security.c
security.c: In function 'link_key_request':
security.c:279: error: storage size of 'req' isn't known
security.c:291: error: 'HCIGETAUTHINFO' undeclared (first use in this function)
security.c:291: error: (Each undeclared identifier is reported only once
security.c:291: error: for each function it appears in.)
security.c:279: warning: unused variable 'req'
make[3]: *** [security.o] Error 1
make[3]: Leaving directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/g/Desktop/bluez/bluez-utils-3.36'
make: *** [all] Error 2

Any thoughts on what might be the trouble would be greatly
appreciated. Is it possible to find a .deb package of bluez-utils
with all the tools enabled?

Thank you,

Sam


2008-07-18 07:54:08

by Mateusz

[permalink] [raw]
Subject: Re: bluez-utils compilation error.

2008/7/17 Sam <[email protected]>:
> I'm still encountering compile errors for bluez-utils. Here are the
> bash commands used:
>
> cd '/home/g/bluez-libs-3.36'
> ./configure --prefix=/g
> make
> sudo make install
>
> cd home/g/bluez-utils-3.36
> ./configure --prefix=/g --mandir=/g/share/man --sysconfdir=/etc
> --localstatedir=/var --libexecdir=/lib --enable-all

Are you sure your --prefix should not be /usr/lib for both libs and utils?

> make
> sudo make install
>
> Here's the error:
>
> make all-am
> make[3]: Entering directory `/home/g/bluez-utils-3.36/hcid'
> gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd
> -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../gdbus
> -DPLUGINDIR=\""/g/lib/bluetooth/plugins"\" -Wall -O2
> -D_FORTIFY_SOURCE=2 -fPIE -MT security.o -MD -MP -MF
> .deps/security.Tpo -c -o security.o security.c
> security.c: In function 'link_key_request':
> security.c:279: error: storage size of 'req' isn't known
> security.c:291: error: 'HCIGETAUTHINFO' undeclared (first use in this function)
> security.c:291: error: (Each undeclared identifier is reported only once
> security.c:291: error: for each function it appears in.)
> security.c:279: warning: unused variable 'req'
> security.c: At top level:
> security.c:1037: fatal error: opening dependency file
> .deps/security.Tpo: Permission denied
> compilation terminated.
> make[3]: *** [security.o] Error 1
> make[3]: Leaving directory `/home/g/bluez-utils-3.36/hcid'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/g/bluez-utils-3.36/hcid'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/g/bluez-utils-3.36'
> make: *** [all] Error 2
>
>
> I did compile/install the libs first, though they are out of order in
> the full bash pastebin: http://paste.ubuntu.com/27889/
> If anyone can help, it'd be greatly appreciated!
> (Is it possible to find a .deb package of bluez-utils with all the
> tools enabled?)
>
> Thank you,
>
> Sam
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

2008-07-17 21:49:42

by Sam

[permalink] [raw]
Subject: Re: bluez-utils compilation error.

I'm still encountering compile errors for bluez-utils. Here are the
bash commands used:

cd '/home/g/bluez-libs-3.36'
./configure --prefix=/g
make
sudo make install

cd home/g/bluez-utils-3.36
./configure --prefix=/g --mandir=/g/share/man --sysconfdir=/etc
--localstatedir=/var --libexecdir=/lib --enable-all
make
sudo make install

Here's the error:

make all-am
make[3]: Entering directory `/home/g/bluez-utils-3.36/hcid'
gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../gdbus
-DPLUGINDIR=\""/g/lib/bluetooth/plugins"\" -Wall -O2
-D_FORTIFY_SOURCE=2 -fPIE -MT security.o -MD -MP -MF
.deps/security.Tpo -c -o security.o security.c
security.c: In function 'link_key_request':
security.c:279: error: storage size of 'req' isn't known
security.c:291: error: 'HCIGETAUTHINFO' undeclared (first use in this function)
security.c:291: error: (Each undeclared identifier is reported only once
security.c:291: error: for each function it appears in.)
security.c:279: warning: unused variable 'req'
security.c: At top level:
security.c:1037: fatal error: opening dependency file
.deps/security.Tpo: Permission denied
compilation terminated.
make[3]: *** [security.o] Error 1
make[3]: Leaving directory `/home/g/bluez-utils-3.36/hcid'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/g/bluez-utils-3.36/hcid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/g/bluez-utils-3.36'
make: *** [all] Error 2


I did compile/install the libs first, though they are out of order in
the full bash pastebin: http://paste.ubuntu.com/27889/
If anyone can help, it'd be greatly appreciated!
(Is it possible to find a .deb package of bluez-utils with all the
tools enabled?)

Thank you,

Sam

2008-07-17 12:49:46

by Mateusz

[permalink] [raw]
Subject: Re: bluez-utils compilation error.

Hi,

I had the same problem, here is a solution I got from the #bluez IRC.

You have to compile and install the bluez-libs first. Remember to run
the configure script with prober --prefix option set to path of your
system's lib directory (eg. /usr/lib).

Configure bluez-utils with the same prefix option. Compile and install.

Hope it helps,
Mateusz


2008/7/17 Sam <[email protected]>:
> Hello. I'm having a bit of trouble compiling bluez-utils using the
> .tar.gz source. I need to run this configuration to enable all the
> tools (dfutool, etc.)
>
> Here's a pastebin of the bash: http://pastebin.ca/1073779
>
> make[2]: Entering directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
> make all-am
> make[3]: Entering directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
> gcc -DHAVE_CONFIG_H -I. -I.. -I../common -I../sdpd
> -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../eglib
> -I../gdbus -DPLUGINDIR=\""/g/lib/bluetooth/plugins"\" -Wall -O2
> -D_FORTIFY_SOURCE=2 -fPIE -MT security.o -MD -MP -MF
> .deps/security.Tpo -c -o security.o security.c
> security.c: In function 'link_key_request':
> security.c:279: error: storage size of 'req' isn't known
> security.c:291: error: 'HCIGETAUTHINFO' undeclared (first use in this function)
> security.c:291: error: (Each undeclared identifier is reported only once
> security.c:291: error: for each function it appears in.)
> security.c:279: warning: unused variable 'req'
> make[3]: *** [security.o] Error 1
> make[3]: Leaving directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/g/Desktop/bluez/bluez-utils-3.36/hcid'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/g/Desktop/bluez/bluez-utils-3.36'
> make: *** [all] Error 2
>
> Any thoughts on what might be the trouble would be greatly
> appreciated. Is it possible to find a .deb package of bluez-utils
> with all the tools enabled?
>
> Thank you,
>
> Sam
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

2008-07-17 12:11:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: bluez-utils compilation error.

I Sam,

> Hello. I'm having a bit of trouble compiling bluez-utils using the
> .tar.gz source. I need to run this configuration to enable all the
> tools (dfutool, etc.)

and you might wanna read the ChangeLog and see that it requires
bluez-libs-3.36.

Regards

Marcel