Hi, I attempted to build Release 4.70 but it's not buildable. Using source=
s either from bluez-4.70.tar.gz (http://www.bluez.org) or from git results to comp=
ile errors. The offending lines are all in attrib-server.c & all are 'unde=
fined references to xxxxx'. Same setup can build 4.69. Pls advise. =20
Regards
Albert
Hi,
On Tue, Aug 31, 2010, Jose Antonio Santos Cadenas wrote:
> The inclusion of src/attrib-server.c file by default in the daemon
> source needs also to compile by default attrib_sources, not only
> when SBC is active.
> ---
> Makefile.am | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
Thanks. The patch has been pushed upstream.
Johan
The inclusion of src/attrib-server.c file by default in the daemon
source needs also to compile by default attrib_sources, not only
when SBC is active.
---
Makefile.am | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 47478c2..5684e99 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,9 +79,6 @@ sbc_sbcdec_LDADD = sbc/libsbc.la
sbc_sbcenc_SOURCES = sbc/sbcenc.c sbc/formats.h
sbc_sbcenc_LDADD = sbc/libsbc.la
-attrib_sources = attrib/att.h attrib/att.c attrib/gatt.h attrib/gatt.c \
- attrib/gattrib.h attrib/gattrib.c
-
if SNDFILE
noinst_PROGRAMS += sbc/sbctester
@@ -90,6 +87,8 @@ sbc_sbctest_CFLAGS = @SNDFILE_CFLAGS@
endif
endif
+attrib_sources = attrib/att.h attrib/att.c attrib/gatt.h attrib/gatt.c \
+ attrib/gattrib.h attrib/gattrib.c
if NETLINK
plugin_LTLIBRARIES += plugins/netlink.la
--
1.7.0.4
Hi Johan,
On Sun, Aug 29, 2010 at 3:49 PM, Johan Hedberg <[email protected]> wr=
ote:
> Hi,
>
> On Sun, Aug 29, 2010, alok barsode wrote:
>> > The configure line invocation is taken from README file. =A0Below are
>> > copy-paste exact errors.
>>
>> I tried building using bootstrap-configure and it built fine. =A0But
>> when I tried building with ./bootstrap and ./configure =A0it gave the
>> same errors as mentioned.
>> Maybe we missed some configure option ?
>
> I still can't seem to reproduce this. I just tried "./bootstrap &&
> ./configure && make" with a clean git tree and it compiles fine.
> Downloading the official tarball for 4.70 and doing "./configure &&
> make" works fine too. I wonder if the autotools or gcc version has
> something to do with this?
I dont think this is a autotools issue.(my autoconf ver is 2.64 and
automake ver is 1.11
gcc version is 4.4.1. which are fairly new).
If I give "--enable-alsa" option to configure it builds fine.
acinclude.m4 sets the SBC variable if either alsa or gstreamer or
test are enabled via configure.
In Makefile.am , the attrib_sources are put under SBC conditional.
I dont have much idea about attrib, maybe put the attrib_sources under
a ATTRIBPLUGIN conditional might solve this issue?
Cheers,
Alok.
>
> Johan
>
Hi,
On Sun, Aug 29, 2010, alok barsode wrote:
> > The configure line invocation is taken from README file. ?Below are
> > copy-paste exact errors.
>
> I tried building using bootstrap-configure and it built fine. But
> when I tried building with ./bootstrap and ./configure it gave the
> same errors as mentioned.
> Maybe we missed some configure option ?
I still can't seem to reproduce this. I just tried "./bootstrap &&
./configure && make" with a clean git tree and it compiles fine.
Downloading the official tarball for 4.70 and doing "./configure &&
make" works fine too. I wonder if the autotools or gcc version has
something to do with this?
Johan
Hi Albert,
On Sun, Aug 29, 2010 at 10:48 AM, Ho, Albert O <[email protected]> wrot=
e:
> Hi Johan,
>
> The configure line invocation is taken from README file. =A0Below are cop=
y-paste exact errors.
I tried building using bootstrap-configure and it built fine.
But when I tried building with ./bootstrap and ./configure it gave
the same errors as mentioned.
Maybe we missed some configure option ?
Cheers,
Alok.
>
> Regards,
> Albert
>
>
> src/attrib-server.o: In function `send_notification':
> attrib-server.c:(.text+0x1da): undefined reference to `enc_notification'
> attrib-server.c:(.text+0x211): undefined reference to `g_attrib_send'
> src/attrib-server.o: In function `connect_event':
> attrib-server.c:(.text+0x863): undefined reference to `g_attrib_new'
> attrib-server.c:(.text+0x885): undefined reference to `g_attrib_register'
> src/attrib-server.o: In function `channel_destroy':
> attrib-server.c:(.text+0x8b9): undefined reference to `g_attrib_unregiste=
r_all'
> attrib-server.c:(.text+0x8c2): undefined reference to `g_attrib_unref'
> src/attrib-server.o: In function `channel_handler':
> attrib-server.c:(.text+0x964): undefined reference to `dec_read_by_grp_re=
q'
> attrib-server.c:(.text+0x990): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0x9b2): undefined reference to `g_attrib_send'
> attrib-server.c:(.text+0x9e9): undefined reference to `dec_read_req'
> attrib-server.c:(.text+0xa39): undefined reference to `enc_read_resp'
> attrib-server.c:(.text+0xa64): undefined reference to `dec_read_by_type_r=
eq'
> attrib-server.c:(.text+0xbcc): undefined reference to `enc_read_by_type_r=
esp'
> attrib-server.c:(.text+0xbd8): undefined reference to `att_data_list_free=
'
> attrib-server.c:(.text+0xc01): undefined reference to `dec_find_info_req'
> attrib-server.c:(.text+0xd7b): undefined reference to `enc_find_info_resp=
'
> attrib-server.c:(.text+0xd86): undefined reference to `att_data_list_free=
'
> attrib-server.c:(.text+0xf52): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0xf7c): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0xfac): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0xfd3): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0xff7): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0x1011): undefined reference to `enc_read_by_grp_r=
esp'
> attrib-server.c:(.text+0x101d): undefined reference to `att_data_list_fre=
e'
> attrib-server.c:(.text+0x106d): undefined reference to `enc_error_resp'
> attrib-server.c:(.text+0x1092): undefined reference to `enc_error_resp'
> collect2: ld returned 1 exit status
> make[1]: *** [src/bluetoothd] Error 1
> make: *** [all] Error 2
>
>
> -----Original Message-----
> From: Johan Hedberg [mailto:[email protected]]
> Sent: Saturday, August 28, 2010 1:23 AM
> To: Ho, Albert O
> Cc: [email protected]; [email protected]
> Subject: Re: Cannot build BlueZ Release 4.70...
>
> Hi Albert,
>
> On Sat, Aug 28, 2010, Ho, Albert O wrote:
>> Hi, I attempted to build Release 4.70 but it's not buildable. =A0Using
>> sources either from bluez-4.70.tar.gz (http://www.bluez.org) or from git
>> results to compile errors. =A0The offending lines are all in
>> attrib-server.c & all are 'undefined references to xxxxx'. =A0Same setup
>> can build 4.69. =A0Pls advise.
>
> It compiles fine for me. You'll need to copy-paste the exact errors you
> get as well as the configure script options that you used.
>
> Johan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
" in
> the body of a message to [email protected]
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>
Hi Johan,
The configure line invocation is taken from README file. Below are copy-pa=
ste exact errors.
Regards,
Albert
src/attrib-server.o: In function `send_notification':
attrib-server.c:(.text+0x1da): undefined reference to `enc_notification'
attrib-server.c:(.text+0x211): undefined reference to `g_attrib_send'
src/attrib-server.o: In function `connect_event':
attrib-server.c:(.text+0x863): undefined reference to `g_attrib_new'
attrib-server.c:(.text+0x885): undefined reference to `g_attrib_register'
src/attrib-server.o: In function `channel_destroy':
attrib-server.c:(.text+0x8b9): undefined reference to `g_attrib_unregister_=
all'
attrib-server.c:(.text+0x8c2): undefined reference to `g_attrib_unref'
src/attrib-server.o: In function `channel_handler':
attrib-server.c:(.text+0x964): undefined reference to `dec_read_by_grp_req'
attrib-server.c:(.text+0x990): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0x9b2): undefined reference to `g_attrib_send'
attrib-server.c:(.text+0x9e9): undefined reference to `dec_read_req'
attrib-server.c:(.text+0xa39): undefined reference to `enc_read_resp'
attrib-server.c:(.text+0xa64): undefined reference to `dec_read_by_type_req=
'
attrib-server.c:(.text+0xbcc): undefined reference to `enc_read_by_type_res=
p'
attrib-server.c:(.text+0xbd8): undefined reference to `att_data_list_free'
attrib-server.c:(.text+0xc01): undefined reference to `dec_find_info_req'
attrib-server.c:(.text+0xd7b): undefined reference to `enc_find_info_resp'
attrib-server.c:(.text+0xd86): undefined reference to `att_data_list_free'
attrib-server.c:(.text+0xf52): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0xf7c): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0xfac): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0xfd3): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0xff7): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0x1011): undefined reference to `enc_read_by_grp_res=
p'
attrib-server.c:(.text+0x101d): undefined reference to `att_data_list_free'
attrib-server.c:(.text+0x106d): undefined reference to `enc_error_resp'
attrib-server.c:(.text+0x1092): undefined reference to `enc_error_resp'
collect2: ld returned 1 exit status
make[1]: *** [src/bluetoothd] Error 1
make: *** [all] Error 2
-----Original Message-----
From: Johan Hedberg [mailto:[email protected]]=20
Sent: Saturday, August 28, 2010 1:23 AM
To: Ho, Albert O
Cc: [email protected]; [email protected]
Subject: Re: Cannot build BlueZ Release 4.70...
Hi Albert,
On Sat, Aug 28, 2010, Ho, Albert O wrote:
> Hi, I attempted to build Release 4.70 but it's not buildable. Using
> sources either from bluez-4.70.tar.gz (http://www.bluez.org) or from git
> results to compile errors. The offending lines are all in
> attrib-server.c & all are 'undefined references to xxxxx'. Same setup
> can build 4.69. Pls advise.
It compiles fine for me. You'll need to copy-paste the exact errors you
get as well as the configure script options that you used.
Johan
Hi Albert,
On Sat, Aug 28, 2010, Ho, Albert O wrote:
> Hi, I attempted to build Release 4.70 but it's not buildable. Using
> sources either from bluez-4.70.tar.gz (http://www.bluez.org) or from git
> results to compile errors. The offending lines are all in
> attrib-server.c & all are 'undefined references to xxxxx'. Same setup
> can build 4.69. Pls advise.
It compiles fine for me. You'll need to copy-paste the exact errors you
get as well as the configure script options that you used.
Johan