cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Mac OS 32-bit libcurl (was Re: use libcurl source files directly rather than link with library)

From: Tom Bishop, Wenlin Institute <tangmu_at_wenlin.com>
Date: Wed, 1 Jun 2011 16:52:45 -0700

Hi All,

The 32-bit static library for Mac OS is almost working. There remains a problem with undefined symbols and dependencies on other libraries. To begin with, I'm trying to get a minimal static libcurl working; later (or sooner) it may be necessary to add SSL, etc. The number of undefined symbols was reduced like this:

./configure --disable-shared --without-ssl --without-zlib --disable-ldap

The remaining list of undefined symbols is below; can anyone tell what libraries or options need to be removed or added? Some of the symbols look like "_fopen$UNIX2003". I don't know what "$UNIX2003" means. The application already uses functions like fopen() and is linked with the standard libraries.

Best wishes,

Tom

Ld /Applications/Wenlin4/Wenlin.app/Contents/MacOS/Wenlin normal i386
   cd /Users/tbishop/wenlin
   setenv MACOSX_DEPLOYMENT_TARGET 10.4
   /Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/Users/tbishop/wenlin/build/Default -Llib_osx -L/Users/tbishop/wenlin/lib_osx -L/Users/tbishop/wenlin/lib_osx -L/Users/tbishop/wenlin/lib_osx -F/Users/tbishop/wenlin/build/Default -filelist /Users/tbishop/wenlin/build/Wenlin.build/Default/Wenlin.build/Objects-normal/i386/Wenlin.LinkFileList -mmacosx-version-min=10.4 -lstdc++ -lSystemStubs -framework Carbon -framework QuickTime -lcbt_univ -lwenlincurl -o /Applications/Wenlin4/Wenlin.app/Contents/MacOS/Wenlin

Undefined symbols:
 "_select$UNIX2003", referenced from:
     _wait_ms in libwenlincurl.a(libcurl_la-select.o)
     _Curl_poll in libwenlincurl.a(libcurl_la-select.o)
     _Curl_socket_ready in libwenlincurl.a(libcurl_la-select.o)
 "_open$UNIX2003", referenced from:
     _file_connect in libwenlincurl.a(libcurl_la-file.o)
     _file_do in libwenlincurl.a(libcurl_la-file.o)
 "___stack_chk_fail", referenced from:
     _parse_proxy in libwenlincurl.a(libcurl_la-url.o)
...
 "___strcat_chk", referenced from:
     _dprintf_formatf in libwenlincurl.a(libcurl_la-mprintf.o)
...
 "___strcpy_chk", referenced from:
     _create_conn in libwenlincurl.a(libcurl_la-url.o)
     _create_conn in libwenlincurl.a(libcurl_la-url.o)
 "_read$UNIX2003", referenced from:
     _file_do in libwenlincurl.a(libcurl_la-file.o)
     _telnet_do in libwenlincurl.a(libcurl_la-telnet.o)
 "_close$UNIX2003", referenced from:
     _conn_free in libwenlincurl.a(libcurl_la-url.o)
...
 "_fcntl$UNIX2003", referenced from:
     _curlx_nonblock in libwenlincurl.a(libcurl_la-nonblock.o)
...
 "___memcpy_chk", referenced from:
     _singleipconnect in libwenlincurl.a(libcurl_la-connect.o)
...
 "_fstat$INODE64", referenced from:
     _file_do in libwenlincurl.a(libcurl_la-file.o)
     _file_do in libwenlincurl.a(libcurl_la-file.o)
 "_fopen$UNIX2003", referenced from:
     _Curl_cookie_output in libwenlincurl.a(libcurl_la-cookie.o)
...
 "_stat$INODE64", referenced from:
     _AddFormData in libwenlincurl.a(libcurl_la-formdata.o)
 "___stack_chk_guard", referenced from:
     ___stack_chk_guard$non_lazy_ptr in libwenlincurl.a(libcurl_la-url.o)

文林 Wenlin Institute, Inc. Software for Learning Chinese
E-mail: wenlin@wenlin.com Web: http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-02