* Cannot build BlueZ Release 4.70... @ 2010-08-28 7:12 Ho, Albert O 2010-08-28 8:22 ` Johan Hedberg 0 siblings, 1 reply; 8+ messages in thread From: Ho, Albert O @ 2010-08-28 7:12 UTC (permalink / raw) To: linux-bluetooth@vger.kernel.org; +Cc: marcel@holtmann.org Hi, I attempted to build Release 4.70 but it's not buildable. Using source= s either from bluez-4.70.tar.gz (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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cannot build BlueZ Release 4.70... 2010-08-28 7:12 Cannot build BlueZ Release 4.70 Ho, Albert O @ 2010-08-28 8:22 ` Johan Hedberg 2010-08-29 5:18 ` Ho, Albert O 0 siblings, 1 reply; 8+ messages in thread From: Johan Hedberg @ 2010-08-28 8:22 UTC (permalink / raw) To: Ho, Albert O; +Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org 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 (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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Cannot build BlueZ Release 4.70... 2010-08-28 8:22 ` Johan Hedberg @ 2010-08-29 5:18 ` Ho, Albert O 2010-08-29 8:45 ` alok barsode 0 siblings, 1 reply; 8+ messages in thread From: Ho, Albert O @ 2010-08-29 5:18 UTC (permalink / raw) To: Johan Hedberg; +Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org 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:johan.hedberg@gmail.com]=20 Sent: Saturday, August 28, 2010 1:23 AM To: Ho, Albert O Cc: linux-bluetooth@vger.kernel.org; marcel@holtmann.org 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 (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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cannot build BlueZ Release 4.70... 2010-08-29 5:18 ` Ho, Albert O @ 2010-08-29 8:45 ` alok barsode 2010-08-29 10:19 ` Johan Hedberg 0 siblings, 1 reply; 8+ messages in thread From: alok barsode @ 2010-08-29 8:45 UTC (permalink / raw) To: Ho, Albert O Cc: Johan Hedberg, linux-bluetooth@vger.kernel.org, marcel@holtmann.org Hi Albert, On Sun, Aug 29, 2010 at 10:48 AM, Ho, Albert O <albert.o.ho@intel.com> 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:johan.hedberg@gmail.com] > Sent: Saturday, August 28, 2010 1:23 AM > To: Ho, Albert O > Cc: linux-bluetooth@vger.kernel.org; marcel@holtmann.org > 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 (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 majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cannot build BlueZ Release 4.70... 2010-08-29 8:45 ` alok barsode @ 2010-08-29 10:19 ` Johan Hedberg 2010-08-29 13:58 ` alok barsode 0 siblings, 1 reply; 8+ messages in thread From: Johan Hedberg @ 2010-08-29 10:19 UTC (permalink / raw) To: alok barsode Cc: Ho, Albert O, linux-bluetooth@vger.kernel.org, marcel@holtmann.org 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cannot build BlueZ Release 4.70... 2010-08-29 10:19 ` Johan Hedberg @ 2010-08-29 13:58 ` alok barsode 2010-08-31 14:50 ` [PATCH] Solve compilation problem when SBC variable is not active Jose Antonio Santos Cadenas 0 siblings, 1 reply; 8+ messages in thread From: alok barsode @ 2010-08-29 13:58 UTC (permalink / raw) To: alok barsode, Ho, Albert O, linux-bluetooth@vger.kernel.org, marcel@holtmann.org Hi Johan, On Sun, Aug 29, 2010 at 3:49 PM, Johan Hedberg <johan.hedberg@gmail.com> 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 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] Solve compilation problem when SBC variable is not active 2010-08-29 13:58 ` alok barsode @ 2010-08-31 14:50 ` Jose Antonio Santos Cadenas 2010-08-31 18:12 ` Johan Hedberg 0 siblings, 1 reply; 8+ messages in thread From: Jose Antonio Santos Cadenas @ 2010-08-31 14:50 UTC (permalink / raw) To: linux-bluetooth; +Cc: Jose Antonio Santos Cadenas 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 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Solve compilation problem when SBC variable is not active 2010-08-31 14:50 ` [PATCH] Solve compilation problem when SBC variable is not active Jose Antonio Santos Cadenas @ 2010-08-31 18:12 ` Johan Hedberg 0 siblings, 0 replies; 8+ messages in thread From: Johan Hedberg @ 2010-08-31 18:12 UTC (permalink / raw) To: Jose Antonio Santos Cadenas; +Cc: linux-bluetooth 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-08-31 18:12 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-08-28 7:12 Cannot build BlueZ Release 4.70 Ho, Albert O 2010-08-28 8:22 ` Johan Hedberg 2010-08-29 5:18 ` Ho, Albert O 2010-08-29 8:45 ` alok barsode 2010-08-29 10:19 ` Johan Hedberg 2010-08-29 13:58 ` alok barsode 2010-08-31 14:50 ` [PATCH] Solve compilation problem when SBC variable is not active Jose Antonio Santos Cadenas 2010-08-31 18:12 ` Johan Hedberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox