On Fri, 2005-12-16 at 08:49 +0100, Christian W. Zuckschwerdt wrote:
Hi,

discover_bt() ist always defined, its just a dummy when there is no BT. 
Must be some other problem.


Doesn't the #ifdef HAVE_BLUETOOTH prevent both versions of discover_bt(...) from being defined?  (i.e. the #else is associated with HAVE_SDPLIB)

> apps/obexftp.c:421: undefined reference to `discover_bt'

Thats a linker error I assume? Paste the preceeding lines please.


make  all-recursive
make[1]: Entering directory `/usr/local/download/obex/obexftp-0.18'
Making all in bfb
make[2]: Entering directory `/usr/local/download/obex/obexftp-0.18/bfb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/download/obex/obexftp-0.18/bfb'
Making all in multicobex
make[2]: Entering directory `/usr/local/download/obex/obexftp-0.18/multicobex'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/download/obex/obexftp-0.18/multicobex'
Making all in obexftp
make[2]: Entering directory `/usr/local/download/obex/obexftp-0.18/obexftp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/download/obex/obexftp-0.18/obexftp'
Making all in apps
make[2]: Entering directory `/usr/local/download/obex/obexftp-0.18/apps'
/bin/sh ../libtool --mode=link gcc  -g -O2 -W -Wundef -Wmissing-declarations -Wmissing-prototypes -Wall   -o obexftp  obexftp.o bt_discovery.o ../obexftp/libobexftp.la ../multicobex/libmulticobex.la ../bfb/libbfb.la -L/usr/local/lib -lopenobex 
gcc -g -O2 -W -Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -o .libs/obexftp obexftp.o bt_discovery.o  ../obexftp/.libs/libobexftp.so ../multicobex/.libs/libmulticobex.so ../bfb/.libs/libbfb.so -L/usr/local/lib /usr/local/lib/libopenobex.so /usr/lib/libusb.so -Wl,--rpath -Wl,/usr/local/lib
obexftp.o(.text+0x800): In function `main':
/usr/local/download/obex/obexftp-0.18/apps/obexftp.c:421: undefined reference to `discover_bt'
collect2: ld returned 1 exit status
make[2]: *** [obexftp] Error 1
make[2]: Leaving directory `/usr/local/download/obex/obexftp-0.18/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/download/obex/obexftp-0.18'
make: *** [all] Error 2


I'll make that configurable, perhaps Sunday. In the meantime, 
./configure, then remove the swig dir from ./Makefile (~line 172, 
SUBDIRS = ... swig), perhaps remove the whole swig dir too.


Thanks Christian.