2007-08-10 17:44:03

by hong zhang

[permalink] [raw]
Subject: [Bluez-users] build error on hcid

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


2007-08-11 17:54:41

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] build error on hcid

Hi,

> 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'

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.

> ../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

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