2013-12-28 09:22:35

by Andrei Emeltchenko

[permalink] [raw]
Subject: [PATCH] btmon: Fix build for Android

From: Andrei Emeltchenko <[email protected]>

Android build was really broken with additions of functions hwdb_*

...
external/bluetooth/bluez/android/../monitor/packet.c:406: error:
undefined reference to 'hwdb_get_company'
external/bluetooth/bluez/android/../monitor/packet.c:2487: error:
undefined reference to 'hwdb_get_vendor_model'
collect2: error: ld returned 1 exit status
...
---
android/Android.mk | 2 ++
1 file changed, 2 insertions(+)

diff --git a/android/Android.mk b/android/Android.mk
index 2cc0064..5981379 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -185,6 +185,8 @@ LOCAL_SRC_FILES := \
../monitor/crc.c \
../monitor/ll.h \
../monitor/ll.c \
+ ../monitor/hwdb.h \
+ ../monitor/hwdb.c \
../lib/hci.c \
../lib/bluetooth.c \

--
1.8.3.2



2013-12-29 19:23:38

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] btmon: Fix build for Android

Hi Andrei,

On Sat, Dec 28, 2013, Andrei Emeltchenko wrote:
> Android build was really broken with additions of functions hwdb_*
>
> ...
> external/bluetooth/bluez/android/../monitor/packet.c:406: error:
> undefined reference to 'hwdb_get_company'
> external/bluetooth/bluez/android/../monitor/packet.c:2487: error:
> undefined reference to 'hwdb_get_vendor_model'
> collect2: error: ld returned 1 exit status
> ...
> ---
> android/Android.mk | 2 ++
> 1 file changed, 2 insertions(+)

Applied. Thanks.

It's unfortunate this didn't make it to the release since the tree has
been broken this way since Monday.

Johan