Skip to contentSkip to conversation

build error on hcid

Bluez-users hong zhang 2 participants 2 messages Aug 10, 2007 – Aug 11, 2007 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.195893.1186749978.21973.bluez-users@lists.sourceforge.net

hong zhang

author
#1 lore raw

List,

When I compiled hcid for bluez-utils-3.11 and complain missing functions. And I could not find where they are defined. Is any link I missed?

make all-am
make[1]: Entering directory `/root/Desktop/bluez/bluez-utils-3.11/hcid'
/bin/sh ../libtool --tag=CC --mode=link
arm_v6_vfp_le-gcc -I/root/Desktop/bluez/bluez-libs-3.11/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I../eglib -Wall -O2
-D_FORTIFY_SOURCE=2 -o hcid main.o libhciserver.a
../sdpd/libsdpserver.a ../common/libhelper.a ../eglib/libeglib.la /opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib/libdbus-1.so -L/root/Desktop/bluez/bluez-libs-3.11/lib -lbluetooth -L/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib arm_v6_vfp_le-gcc -I/root/Desktop/bluez/bluez-libs-3.11/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I../eglib -Wall -O2 -D_FORTIFY_SOURCE=2 -o .libs/hcid main.o /opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib/libdbus-1.so
libhciserver.a ../sdpd/libsdpserver.a
../common/libhelper.a ../eglib/.libs/libeglib.a -L/root/Desktop/bluez/bluez-libs-3.11/lib /root/Desktop/bluez/bluez-libs-3.11/lib/libbluetooth.so -L/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib
-Wl,--rpath
-Wl,/root/Desktop/bluez/bluez-libs-3.11/lib libhciserver.a(dbus-manager.o)(.text+0x2f4): In
function `list_adapters':
dbus-manager.c: undefined reference to `dbus_message_iter_init_append' libhciserver.a(dbus-manager.o)(.text+0x308):dbus-manager.c:
undefined reference to
`dbus_message_iter_open_container' libhciserver.a(dbus-manager.o)(.text+0x36c):dbus-manager.c:
undefined reference to
`dbus_message_iter_append_basic' libhciserver.a(dbus-manager.o)(.text+0x384):dbus-manager.c:
undefined reference to
`dbus_message_iter_close_container' libhciserver.a(dbus-manager.o)(.text+0x548): In
function `list_services':
dbus-manager.c: undefined reference to `dbus_message_iter_init_append' libhciserver.a(dbus-manager.o)(.text+0x55c):dbus-manager.c:
undefined reference to
`dbus_message_iter_open_container'
......
......
......
../common/libhelper.a(sdp-expat.o)(.text+0x5c8):sdp-expat.c:
undefined reference to `XML_GetCurrentLineNumber' ../common/libhelper.a(sdp-expat.o)(.text+0x5d4):sdp-expat.c:
undefined reference to `XML_GetErrorCode' ../common/libhelper.a(sdp-expat.o)(.text+0x5d8):sdp-expat.c:
undefined reference to `XML_ErrorString' ../common/libhelper.a(sdp-expat.o)(.text+0x62c):sdp-expat.c:
undefined reference to `XML_Parse'
collect2: ld returned 1 exit status
make[1]: *** [hcid] Error 1
make[1]: Leaving directory `/root/Desktop/bluez/bluez-utils-3.11/hcid'
make: *** [all] Error 2

----henry

____________________________________________________________________________________Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#2 lore raw

Hi,

Quoted 43 lines

When I compiled hcid for bluez-utils-3.11 and complain missing functions. And I could not find where they are defined. Is any link I missed?

make all-am
make[1]: Entering directory
`/root/Desktop/bluez/bluez-utils-3.11/hcid'
/bin/sh ../libtool --tag=CC --mode=link
arm_v6_vfp_le-gcc

(quoted diff) +0 -4
-I/root/Desktop/bluez/bluez-libs-3.11/include  
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-DDBUS_API_SUBJECT_TO_CHANGE -I../eglib -Wall -O2
-D_FORTIFY_SOURCE=2   -o hcid  main.o libhciserver.a

../sdpd/libsdpserver.a ../common/libhelper.a ../eglib/libeglib.la /opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib/libdbus-1.so

(quoted diff) +0 -2
-L/root/Desktop/bluez/bluez-libs-3.11/lib -lbluetooth
-L/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib

arm_v6_vfp_le-gcc

(quoted diff) +0 -4
-I/root/Desktop/bluez/bluez-libs-3.11/include
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-DDBUS_API_SUBJECT_TO_CHANGE -I../eglib -Wall -O2
-D_FORTIFY_SOURCE=2 -o .libs/hcid main.o

/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib/libdbus-1.so
libhciserver.a ../sdpd/libsdpserver.a
../common/libhelper.a ../eglib/.libs/libeglib.a -L/root/Desktop/bluez/bluez-libs-3.11/lib /root/Desktop/bluez/bluez-libs-3.11/lib/libbluetooth.so

(quoted diff) +0 -2
-L/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/target/usr/lib
 -Wl,--rpath
-Wl,/root/Desktop/bluez/bluez-libs-3.11/lib

libhciserver.a(dbus-manager.o)(.text+0x2f4): In function `list_adapters':
dbus-manager.c: undefined reference to `dbus_message_iter_init_append' libhciserver.a(dbus-manager.o)(.text+0x308):dbus-manager.c:
undefined reference to `dbus_message_iter_open_container' libhciserver.a(dbus-manager.o)(.text+0x36c):dbus-manager.c:
undefined reference to `dbus_message_iter_append_basic' libhciserver.a(dbus-manager.o)(.text+0x384):dbus-manager.c:
undefined reference to

Quoted 8 lines

dbus_message_iter_close_container' libhciserver.a(dbus-manager.o)(.text+0x548): In function list_services':
dbus-manager.c: undefined reference to `dbus_message_iter_init_append' libhciserver.a(dbus-manager.o)(.text+0x55c):dbus-manager.c:
undefined reference to `dbus_message_iter_open_container'

this looks like you are trying to link against an old version of libdbus. Make sure you use the latest. It has reached 1.x status and that is basically the only one we support.

Quoted 5 lines

../common/libhelper.a(sdp-expat.o)(.text+0x5c8):sdp-expat.c:
undefined reference to `XML_GetCurrentLineNumber' ../common/libhelper.a(sdp-expat.o)(.text+0x5d4):sdp-expat.c:
undefined reference to `XML_GetErrorCode' ../common/libhelper.a(sdp-expat.o)(.text+0x5d8):sdp-expat.c:

Quoted 8 lines

undefined reference to `XML_ErrorString' ../common/libhelper.a(sdp-expat.o)(.text+0x62c):sdp-expat.c:
undefined reference to `XML_Parse'
collect2: ld returned 1 exit status
make[1]: *** [hcid] Error 1
make[1]: Leaving directory `/root/Desktop/bluez/bluez-utils-3.11/hcid'
make: *** [all] Error 2

You have to link against libexpat, but the configure script should figure that out by itself and correct it. However if you don't wanna use any of our XML functions for SDP, then you might get away with using --disable-expat for this one. However when using --enable-glib and not using the eglib that comes with it, you also don't need expat support.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users