From: Saul C. <sa...@th...> - 2006-04-21 22:59:12
|
Hi, I'm having a bit of trouble compiling on my ubuntu box. From the latest development version: svn co http://svn.opensync.org/libsyncml/branches/6620-branch I: cd 6620-branch autoreconf -sfi ./configure it tells me: =============================================== Unit Tests: Disabled Tracing: Enabled Tools: Enabled Libwbxml: Enabled The transports are: Http Client: Enabled Http Server: Enabled Obex Client: Enabled Obex Server: Enabled Bluetooth: Enabled so, I: make which throws the error: gcc -Wall -Werror -g -O2 -o .libs/syncml-http-server syncml-http-server.o -pthread /usr/lib/libgthread-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -lz -lm ../libsyncml/.libs/libsyncml.so -Wl,--rpath -Wl,/usr/local/lib ../libsyncml/.libs/libsyncml.so: undefined reference to `str2ba' which is strange because I have confirmed that I have the bluetooth lib installed with: locate libbluetooth. /usr/lib/libbluetooth.so.1.0.20 /usr/lib/libbluetooth.so.1 /usr/lib/libbluetooth.la /usr/lib/libbluetooth.a /usr/lib/libbluetooth.so I've fumbled around using the little I remember about c compilation to try and get it to recognise my bluetooth libraries in /usr/lib/ but I'm shooting in the dark. Could someone tell me which way to point? thanks Saul |
From: Norm D. <no...@dr...> - 2006-04-22 00:56:16
|
On Fri, 2006-04-21 at 23:59 +0100, Saul Cozens wrote: > Hi, > > I'm having a bit of trouble compiling on my ubuntu box. From the latest > development version: > svn co http://svn.opensync.org/libsyncml/branches/6620-branch > I: > cd 6620-branch > autoreconf -sfi > ./configure > it tells me: > =============================================== > Unit Tests: Disabled > Tracing: Enabled > Tools: Enabled > Libwbxml: Enabled > > The transports are: > Http Client: Enabled > Http Server: Enabled > Obex Client: Enabled > Obex Server: Enabled > Bluetooth: Enabled > > so, I: > make > which throws the error: > gcc -Wall -Werror -g -O2 -o .libs/syncml-http-server > syncml-http-server.o -pthread /usr/lib/libgthread-2.0.so > /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -lz -lm > ../libsyncml/.libs/libsyncml.so -Wl,--rpath -Wl,/usr/local/lib > ../libsyncml/.libs/libsyncml.so: undefined reference to `str2ba' > > which is strange because I have confirmed that I have the bluetooth lib > installed with: > locate libbluetooth. > /usr/lib/libbluetooth.so.1.0.20 > /usr/lib/libbluetooth.so.1 > /usr/lib/libbluetooth.la > /usr/lib/libbluetooth.a > /usr/lib/libbluetooth.so > > I've fumbled around using the little I remember about c compilation to > try and get it to recognise my bluetooth libraries in /usr/lib/ but I'm > shooting in the dark. Could someone tell me which way to point? > The configure looks fine. It doesn't look like the bluetooth lib but maybe something else -- libgthread or libxml? Is /usr/local/lib in your lib path? Maybe try a make distclean? Norm |
From: Pawel K. <pk...@be...> - 2006-04-22 09:05:40
|
Hi, On Fri, 21 Apr 2006, Saul Cozens wrote: > which throws the error: > gcc -Wall -Werror -g -O2 -o .libs/syncml-http-server > syncml-http-server.o -pthread /usr/lib/libgthread-2.0.so > /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -lz -lm > ../libsyncml/.libs/libsyncml.so -Wl,--rpath -Wl,/usr/local/lib > ../libsyncml/.libs/libsyncml.so: undefined reference to `str2ba' > > which is strange because I have confirmed that I have the bluetooth lib > installed with: > locate libbluetooth. You need libbluetooth1-dev package installed. take care, pkot -- p k o t a t b e z s e n s u d o t p l http://www.gnokii.org/ |
From: Saul C. <sa...@th...> - 2006-04-22 12:16:44
|
nice try.: sudo apt-get install libbluetooth1-dev Password: Reading package lists... Done Building dependency tree... Done libbluetooth1-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I thought I'd got all the dependancies sorted - and the function that is being complained about str2ba is definately in the bluetooth libraries grep str2ba /usr/include/bluetooth/bluetooth.h int str2ba(const char *str, bdaddr_t *ba); I just don't think that the linker is being told to use bluetooth libraries and I don't know enough about make to figure out if it's becasue they are in /usr/lib not /usr/local/lib (I've tried creating a symlink - so probably not) or if the makefile just doesn't know it needs bluetooth! If I manually run: gcc -Wall -Werror -g -O2 -o .libs/syncml-http-server syncml-http-server.o -pthread /usr/lib/libgthread-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libxml2.so /usr/lib/libbluetooth.so -lz -lm ../libsyncml/.libs/libsyncml.so -Wl,--rpath -Wl,/usr/local/lib (note the extra /usr/lib/libbluetooth.so) I don't get the error. So how do I tell make to include this library? Saul Pawel Kot wrote: > Hi, > > On Fri, 21 Apr 2006, Saul Cozens wrote: > >> which throws the error: >> gcc -Wall -Werror -g -O2 -o .libs/syncml-http-server >> syncml-http-server.o -pthread /usr/lib/libgthread-2.0.so >> /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -lz -lm >> ../libsyncml/.libs/libsyncml.so -Wl,--rpath -Wl,/usr/local/lib >> ../libsyncml/.libs/libsyncml.so: undefined reference to `str2ba' >> >> which is strange because I have confirmed that I have the bluetooth >> lib installed with: >> locate libbluetooth. > > > You need libbluetooth1-dev package installed. > > take care, > pkot |
From: Pawel K. <pk...@be...> - 2006-04-22 13:10:17
|
Hi, On Sat, 22 Apr 2006, Saul Cozens wrote: > I thought I'd got all the dependancies sorted - and the function that is > being complained about str2ba is definately in the bluetooth libraries > > grep str2ba /usr/include/bluetooth/bluetooth.h > int str2ba(const char *str, bdaddr_t *ba); > > I just don't think that the linker is being told to use bluetooth libraries > and I don't know enough about make to figure out if it's becasue they are in > /usr/lib not /usr/local/lib (I've tried creating a symlink - so probably not) > or if the makefile just doesn't know it needs bluetooth! Another guess: in configure.ac, replace line: pkg_modules="opensync-1.0 glib-2.0 libsyncml-1.0 >= 0.3.0 libxml-2.0" with pkg_modules="opensync-1.0 glib-2.0 libsyncml-1.0 >= 0.3.0 libxml-2.0 bluez" But that will probably include libbluetooth unconditionally. I will look deeper inside what to change more universally. pkot -- p k o t a t b e z s e n s u d o t p l http://www.gnokii.org/ |
From: Pawel K. <pk...@be...> - 2006-04-22 13:24:42
|
On Sat, 22 Apr 2006, Pawel Kot wrote: > Another guess: in configure.ac, replace line: > pkg_modules="opensync-1.0 glib-2.0 libsyncml-1.0 >= 0.3.0 libxml-2.0" > with > pkg_modules="opensync-1.0 glib-2.0 libsyncml-1.0 >= 0.3.0 libxml-2.0 bluez" Forget it, I looked into the wrong dir. What does 'grep bluetooth * -r' show? pkot -- p k o t a t b e z s e n s u d o t p l http://www.gnokii.org/ |
From: Saul C. <sa...@th...> - 2006-04-22 13:36:00
Attachments:
grep_bluetooth.txt
|
Pawel, grep bluetooth * -r >/tmp/grep_bluetooth.txt your help is much appreciates Saul Pawel Kot wrote: > On Sat, 22 Apr 2006, Pawel Kot wrote: > >> Another guess: in configure.ac, replace line: >> pkg_modules="opensync-1.0 glib-2.0 libsyncml-1.0 >= 0.3.0 libxml-2.0" >> with >> pkg_modules="opensync-1.0 glib-2.0 libsyncml-1.0 >= 0.3.0 libxml-2.0 >> bluez" > > > Forget it, I looked into the wrong dir. > What does 'grep bluetooth * -r' show? > > pkot |
From: Pawel K. <pk...@be...> - 2006-04-22 13:44:45
|
On Sat, 22 Apr 2006, Saul Cozens wrote: > grep bluetooth * -r >/tmp/grep_bluetooth.txt I belive LIBBLUETOOTH_LIBS is not appended to LIBS somewhere. pkot -- p k o t a t b e z s e n s u d o t p l http://www.gnokii.org/ |