From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] build error on hcid
Date: Sat, 11 Aug 2007 19:54:41 +0200 [thread overview]
Message-ID: <1186854881.6698.3.camel@violet> (raw)
In-Reply-To: <257505.31786.qm@web58013.mail.re3.yahoo.com>
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
prev parent reply other threads:[~2007-08-11 17:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.195893.1186749978.21973.bluez-users@lists.sourceforge.net>
2007-08-10 17:44 ` [Bluez-users] build error on hcid hong zhang
2007-08-11 17:54 ` Marcel Holtmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1186854881.6698.3.camel@violet \
--to=marcel@holtmann.org \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox