#11 Cannot lin to openobex library

closed
nobody
None
5
2007-06-02
2003-08-03
Anonymous
No

I am trying to compile a program which uses openobex
library for bluetooth obex transport. The problem is
that the linker complains of undefined functions
OBEX_*, almost as if the openobex library is not a
correct interface to them. I have included openobex in
the link path for the linker using "-L/usr/local/lib
-lopenobex", the linker finds the library but still
cannot find the OBEX_* function implementations.

What am I doing wrong?

Thank you so much (anyone) for your time....

Discussion

  • JM

    JM - 2005-01-11

    Logged In: YES
    user_id=636561

    I have this same problem. I have Fedora Core 3 with OpenObex
    1.0.1 (FC3 rpm version 1.0.1-1) and when I try to compile
    ObexFTP 0.10.7 I get this:

    /bin/sh ../libtool --mode=link gcc -static -L/usr/lib -g
    -Wall -Wmissing-declarations -Wmissing-prototypes -Wall -g
    -Wall -o obexftpd obexftpd.o -lopenobex -lbluetooth
    ../obexftp/libobexftp.la ../cobexbfb/libcobexbfb.la
    ../bfb/libbfb.la
    gcc -g -Wall -Wmissing-declarations -Wmissing-prototypes
    -Wall -g -Wall -o obexftpd obexftpd.o -L/usr/lib -lopenobex
    -lbluetooth ../obexftp/.libs/libobexftp.a
    ../cobexbfb/.libs/libcobexbfb.a ../bfb/.libs/libbfb.a
    obexftpd.o(.text+0x1fd): In function `start_server':
    /home/jari/tmp/dl/obexftp-0.10.7/apps/obexftpd.c:119:
    undefined reference to `OBEX_ServerAccept'
    collect2: ld returned 1 exit status
    make[2]: *** [obexftpd] Error 1
    make[2]: Leaving directory
    `/home/jari/tmp/dl/obexftp-0.10.7/apps'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/jari/tmp/dl/obexftp-0.10.7'
    make: *** [all] Error 2

     
  • Christian W. Zuckschwerdt

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks