cURL
Your ad here would be seen by 100,000 unique vistors every month Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-python mailing list Archives

building pycurl on Snow Leopard

From: Bill Janssen <janssen_at_parc.com>
Date: Thu, 1 Oct 2009 17:58:37 PDT

I get this error when I try to build pycurl-7.19.0 on Snow Leopard (OS X
10.6.1):

% python setup.py build
Using curl-config (libcurl 7.19.4)
libs are ['-lcurl', '-lssl', '-lcrypto', '-Wl,-weak-lldap', '-dynamic',
'-Os', '-pipe', '-g0', '-Wno-system-headers', '-Wl,-search_paths_first',
'-Wl,-weak-lgssapi_krb5', '-Wl,-weak-lkrb5', '-Wl,-weak-lk5crypto',
'-Wl,-weak-lcom_err', '-Wl,-weak-lresolv', '-lssl', '-lcrypto', '-lz',
'-lz', '/usr/lib/libcurl.a', '-lssl', '-lcrypto', '-Wl,-weak-lldap',
'-dynamic', '-Os', '-pipe', '-g0', '-Wno-system-headers',
'-Wl,-search_paths_first', '-Wl,-weak-lgssapi_krb5', '-Wl,-weak-lkrb5',
'-Wl,-weak-lk5crypto', '-Wl,-weak-lcom_err', '-Wl,-weak-lresolv',
'-lssl', '-lcrypto', '-lz', '-lz']
running build
running build_py
running build_ext
building 'pycurl' extension
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc
-arch x86_64 build/temp.macosx-10.6-universal-2.6/src/pycurl.o -lcurl
-lssl -lcrypto -lssl -lcrypto -lz -lz -lssl -lcrypto -lssl -lcrypto -lz
-lz -o build/lib.macosx-10.6-universal-2.6/pycurl.so -Wl,-weak-lldap
-dynamic -Os -pipe -g0 -Wno-system-headers -Wl,-search_paths_first
-Wl,-weak-lgssapi_krb5 -Wl,-weak-lkrb5 -Wl,-weak-lk5crypto
-Wl,-weak-lcom_err -Wl,-weak-lresolv /usr/lib/libcurl.a -Wl,-weak-lldap
-dynamic -Os -pipe -g0 -Wno-system-headers -Wl,-search_paths_first
-Wl,-weak-lgssapi_krb5 -Wl,-weak-lkrb5 -Wl,-weak-lk5crypto
-Wl,-weak-lcom_err -Wl,-weak-lresolv
i686-apple-darwin10-gcc-4.2.1: /usr/lib/libcurl.a: No such file or directory
powerpc-apple-darwin10-gcc-4.2.1: /usr/lib/libcurl.a: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: /usr/lib/libcurl.a: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//cc5FCpmq.out
error: command 'gcc-4.2' failed with exit status 1
%

The problem seems to be that setup.py uses "curl-config --static-libs",
and that yields

/usr/lib/libcurl.a -lssl -lcrypto -Wl,-weak-lldap -dynamic -Os -pipe -g0
-Wno-system-headers -Wl,-search_paths_first -Wl,-weak-lgssapi_krb5
-Wl,-weak-lkrb5 -Wl,-weak-lk5crypto -Wl,-weak-lcom_err -Wl,-weak-lresolv
-lssl -lcrypto -lz -lz

which /usr/lib/libcurl.a is a non-existent library. This is Xcode 3.2.

What's the workaround?

Bill
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-10-02

These mail archives are generated by hypermail.

donate! Page updated September 25, 2009.
web site info

File upload with ASP.NET