linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH obexd] build: Fix libbluetooth dependency
@ 2012-03-07 11:11 Luiz Augusto von Dentz
  2012-03-07 19:16 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2012-03-07 11:11 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Building with libbluetooth prior to 4.99 cause an error:

btio/btio.c: In function 'get_key_size':
btio/btio.c:522:14: error: 'struct bt_security' has no member named 'key_size

Thanks to Bastien Nocera for reporting it.
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 10c561b..f54cce7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,8 +89,8 @@ AC_CHECK_LIB(dbus-1, dbus_connection_can_send_type, dummy=yes,
 AC_SUBST(DBUS_CFLAGS)
 AC_SUBST(DBUS_LIBS)
 
-PKG_CHECK_MODULES(BLUEZ, bluez, dummy=yes,
-				AC_MSG_ERROR(libbluetooth is required))
+PKG_CHECK_MODULES(BLUEZ, bluez >= 4.99, dummy=yes,
+				AC_MSG_ERROR(libbluetooth 4.99 or latter is required))
 AC_SUBST(BLUEZ_CFLAGS)
 AC_SUBST(BLUEZ_LIBS)
 
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH obexd] build: Fix libbluetooth dependency
  2012-03-07 11:11 [PATCH obexd] build: Fix libbluetooth dependency Luiz Augusto von Dentz
@ 2012-03-07 19:16 ` Marcel Holtmann
  2012-03-08  9:28   ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2012-03-07 19:16 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hi Luiz,

> Building with libbluetooth prior to 4.99 cause an error:
> 
> btio/btio.c: In function 'get_key_size':
> btio/btio.c:522:14: error: 'struct bt_security' has no member named 'key_size
> 
> Thanks to Bastien Nocera for reporting it.
> ---
>  configure.ac |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

I rather not have this patch included since it makes things complicated
for people to build this. Copying over just the header is good enough to
fix this.

Regards

Marcel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH obexd] build: Fix libbluetooth dependency
  2012-03-07 19:16 ` Marcel Holtmann
@ 2012-03-08  9:28   ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2012-03-08  9:28 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-bluetooth

Hi Marcel,

On Wed, Mar 7, 2012 at 9:16 PM, Marcel Holtmann <marcel@holtmann.org> wrote=
:
> Hi Luiz,
>
>> Building with libbluetooth prior to 4.99 cause an error:
>>
>> btio/btio.c: In function 'get_key_size':
>> btio/btio.c:522:14: error: 'struct bt_security' has no member named 'key=
_size
>>
>> Thanks to Bastien Nocera for reporting it.
>> ---
>> =A0configure.ac | =A0 =A04 ++--
>> =A01 files changed, 2 insertions(+), 2 deletions(-)
>
> I rather not have this patch included since it makes things complicated
> for people to build this. Copying over just the header is good enough to
> fix this.

I would agree if we do static linking the whole libbluetooth, but just
a header IMO that is asking for trouble e.g. it could still cause
linking problems due to missing implementation or even crashes.

Maybe we should think more seriously about moving obexd inside BlueZ.


--=20
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-08  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 11:11 [PATCH obexd] build: Fix libbluetooth dependency Luiz Augusto von Dentz
2012-03-07 19:16 ` Marcel Holtmann
2012-03-08  9:28   ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).