Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] XML_StopParser undefined reference- compilation error bluez-utils-3.9
@ 2007-03-30  6:34 Sumeet VERMA
  2007-03-31 13:47 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Sumeet VERMA @ 2007-03-30  6:34 UTC (permalink / raw)
  To: bluez-users


Hi
I am getting a compiler error while building bluez-utils-3.9. 
The log is here:-

make[3]: Entering directory `/home/vsumeet/bluez/3.9/bluez-utils-3.9/hcid'
/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/include  
-I/usr/local/include/dbus-1.0 -I/usr/local/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 -L/usr/local/lib -ldbus-1   -L/usr/local/lib -lbluetooth  
-lexpat
gcc -I/usr/local/include -I/usr/local/include/dbus-1.0
-I/usr/local/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/.libs/libeglib.a -L/usr/local/lib
/usr/local/lib/libdbus-1.so -lnsl /usr/local/lib/libbluetooth.so 
/usr/lib/libexpat.so   -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
../common/libhelper.a(sdp-expat.o)(.text+0x227): In function
`convert_xml_to_sdp_start':
: undefined reference to `XML_StopParser' 
collect2: ld returned 1 exit status
make[3]: *** [hcid] Error 1
make[3]: Leaving directory `/home/vsumeet/bluez/3.9/bluez-utils-3.9/hcid'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/vsumeet/bluez/3.9/bluez- utils-3.9/hcid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vsumeet/bluez/3.9/bluez-utils-3.9'
make: *** [all] Error 2

I have checked the expat library is present. 
The version is libexpat.so.0.5.0
Do you know why is it not able to link?

Thanks 
Sumeet 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-users] XML_StopParser undefined reference- compilation error bluez-utils-3.9
  2007-03-30  6:34 [Bluez-users] XML_StopParser undefined reference- compilation error bluez-utils-3.9 Sumeet VERMA
@ 2007-03-31 13:47 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2007-03-31 13:47 UTC (permalink / raw)
  To: BlueZ users; +Cc: bluez-users

Hi Sumeet,

> I am getting a compiler error while building bluez-utils-3.9. 
> The log is here:-
> 
> make[3]: Entering directory `/home/vsumeet/bluez/3.9/bluez-utils-3.9/hcid'
> /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/include  
> -I/usr/local/include/dbus-1.0 -I/usr/local/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 -L/usr/local/lib -ldbus-1   -L/usr/local/lib -lbluetooth  
> -lexpat
> gcc -I/usr/local/include -I/usr/local/include/dbus-1.0
> -I/usr/local/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/.libs/libeglib.a -L/usr/local/lib
> /usr/local/lib/libdbus-1.so -lnsl /usr/local/lib/libbluetooth.so 
> /usr/lib/libexpat.so   -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
> ../common/libhelper.a(sdp-expat.o)(.text+0x227): In function
> `convert_xml_to_sdp_start':
> : undefined reference to `XML_StopParser' 
> collect2: ld returned 1 exit status
> make[3]: *** [hcid] Error 1
> make[3]: Leaving directory `/home/vsumeet/bluez/3.9/bluez-utils-3.9/hcid'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/vsumeet/bluez/3.9/bluez- utils-3.9/hcid'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/vsumeet/bluez/3.9/bluez-utils-3.9'
> make: *** [all] Error 2
> 
> I have checked the expat library is present. 
> The version is libexpat.so.0.5.0
> Do you know why is it not able to link?

I have no idea. It works perfectly fine for me. However you can use
--disable-expat to compile it without XML support. In this case the
D-Bus methods that take XML as input will be disabled.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-31 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-30  6:34 [Bluez-users] XML_StopParser undefined reference- compilation error bluez-utils-3.9 Sumeet VERMA
2007-03-31 13:47 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox