Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

obexftp 0.23 does not compile on Mac 10.6.3

Help
Anonymous
2010-04-24
2013-05-01

  • Anonymous
    2010-04-24

    Hello,

    I have encountered a problem with compiling obexftp version 0.23 on a Mac (OS X version 10.6.3). openobex compiles and installs just fine, but "make" of obexftp results in following error:

    client.c:55:1: warning: "ESOCKTNOSUPPORT" redefined
    In file included from /usr/include/errno.h:23,
                     from client.c:33:
    /usr/include/sys/errno.h:136:1: warning: this is the location of the previous definition
    client.c: In function ‘client_done’:
    client.c:306: warning: pointer targets in passing argument 2 of ‘cli->infocb’ differ in signedness
    client.c:331: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
    client.c: In function ‘obexftp_connect_service’:
    client.c:572: warning: assignment discards qualifiers from pointer target type
    client.c:576: warning: assignment discards qualifiers from pointer target type
    client.c: In function ‘obexftp_connect_src’:
    client.c:714: error: ‘WSAESOCKTNOSUPPORT’ undeclared (first use in this function)
    client.c:714: error: (Each undeclared identifier is reported only once
    client.c:714: error: for each function it appears in.)
    client.c:599: warning: unused parameter ‘src’
    client.c: In function ‘obexftp_put_data’:
    client.c:1174: warning: pointer targets in assignment differ in signedness
    client.c: In function ‘obexftp_discover_bt_src’:
    client.c:1225: warning: unused parameter ‘src’
    client.c: In function ‘obexftp_bt_name_src’:
    client.c:1235: warning: unused parameter ‘addr’
    client.c:1235: warning: unused parameter ‘src’
    client.c: In function ‘obexftp_browse_bt_src’:
    client.c:1245: warning: unused parameter ‘src’
    client.c:1245: warning: unused parameter ‘addr’
    client.c:1245: warning: unused parameter ‘svclass’
    client.c: In function ‘obexftp_sdp_register’:
    client.c:1255: warning: unused parameter ‘svclass’
    client.c:1255: warning: unused parameter ‘channel’
    client.c: In function ‘obexftp_sdp_unregister’:
    client.c:1265: warning: unused parameter ‘svclass’
    make: ***  Error 1
    make: ***  Error 1
    make: ***  Error 2

    Is this a known problem and is thus somehow solvable or is this simply a bug?

    Thanks.
    Glutexo

     
  • Could be a bug as the define is intended for win32 only. Just delete the offending line (obexftp/client.c : 55).

     

  • Anonymous
    2010-04-25

    Thanks for the advice! Unfortunately it didn’t solve the problem of the package being unable to compile. But after deleting the offending line, the problem moved significantly further in the file:

    client.c: In function ‘client_done’:
    client.c:306: warning: pointer targets in passing argument 2 of ‘cli->infocb’ differ in signedness
    client.c:331: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
    client.c: In function ‘obexftp_connect_service’:
    client.c:572: warning: assignment discards qualifiers from pointer target type
    client.c:576: warning: assignment discards qualifiers from pointer target type
    client.c: In function ‘obexftp_connect_src’:
    client.c:599: warning: unused parameter ‘src’
    client.c: In function ‘obexftp_put_data’:
    client.c:1174: warning: pointer targets in assignment differ in signedness
    client.c: In function ‘obexftp_discover_bt_src’:
    client.c:1225: warning: unused parameter ‘src’
    client.c: In function ‘obexftp_bt_name_src’:
    client.c:1235: warning: unused parameter ‘addr’
    client.c:1235: warning: unused parameter ‘src’
    client.c: In function ‘obexftp_browse_bt_src’:
    client.c:1245: warning: unused parameter ‘src’
    client.c:1245: warning: unused parameter ‘addr’
    client.c:1245: warning: unused parameter ‘svclass’
    client.c: In function ‘obexftp_sdp_register’:
    client.c:1255: warning: unused parameter ‘svclass’
    client.c:1255: warning: unused parameter ‘channel’
    client.c: In function ‘obexftp_sdp_unregister’:
    client.c:1265: warning: unused parameter ‘svclass’
    /var/folders/0u/0uj3+UMQG7GFxO-6zSrk7E+++TI/-Tmp-//ccN8ReMZ.s:unknown:FATAL:can't create output file: .libs/client.o
    make: ***  Error 1
    make: ***  Error 1
    make: ***  Error 2

    Well, I know very very little about C so there is no chance for me of finding the problem and fixing it myself. :(

     
  • That's no actual compile error. Look at the last few lines, it says "can't create output file". Maybe your user account doesn't have permissions or some file is blocking the path? What tools are you using and why is the path not something like "/Users/glutexo/Desktop/obexftp"?