From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ users In-Reply-To: <257505.31786.qm@web58013.mail.re3.yahoo.com> References: <257505.31786.qm@web58013.mail.re3.yahoo.com> Date: Sat, 11 Aug 2007 19:54:41 +0200 Message-Id: <1186854881.6698.3.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-users] build error on hcid Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net 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 Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users