curl-and-python

Mac OS X 10.4

From: joe kim <joe.kim_at_gmail.com>
Date: Sun, 26 Nov 2006 02:50:12 -0800

Has anyone had any luck building pycurl on mac os x 10.4 on a macbook pro?

Here is what happened when I tried:
python setup.py install
Using curl-config (libcurl 7.13.1)
running install
running build
running build_py
running build_ext
building 'pycurl' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c
src/pycurl.c -o build/temp.macosx-10.3-fat-2.5/src/pycurl.o
src/pycurl.c:52:4: error: #error "Need libcurl version 7.15.5 or greater to
compile pycurl."
src/pycurl.c:52:4: error: #error "Need libcurl version 7.15.5 or greater to
compile pycurl."
src/pycurl.c: In function 'read_callback':
src/pycurl.c:1122: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c: In function 'read_callback':
src/pycurl.c:1122: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c: In function 'do_curl_setopt':
src/pycurl.c:1454: error: 'CURLOPT_COOKIELIST' undeclared (first use in this
function)
src/pycurl.c:1454: error: (Each undeclared identifier is reported only once
src/pycurl.c:1454: error: for each function it appears in.)
src/pycurl.c:1481: error: 'CURLOPT_FTP_ALTERNATIVE_TO_USER' undeclared
(first use in this function)
src/pycurl.c:1488: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c:1690: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c:1697: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c:1768: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c: In function 'do_curl_setopt':
src/pycurl.c:1454: error: 'CURLOPT_COOKIELIST' undeclared (first use in this
function)
src/pycurl.c:1454: error: (Each undeclared identifier is reported only once
src/pycurl.c:1454: error: for each function it appears in.)
src/pycurl.c:1481: error: 'CURLOPT_FTP_ALTERNATIVE_TO_USER' undeclared
(first use in this function)
src/pycurl.c:1488: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c:1690: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c:1697: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c:1768: warning: passing argument 3 of 'PyString_AsStringAndSize'
from incompatible pointer type
src/pycurl.c: In function 'do_curl_getinfo':
src/pycurl.c:1995: error: 'CURLINFO_LASTSOCKET' undeclared (first use in
this function)
src/pycurl.c: In function 'do_curl_getinfo':
src/pycurl.c:1995: error: 'CURLINFO_LASTSOCKET' undeclared (first use in
this function)
src/pycurl.c:2010: error: 'CURLINFO_FTP_ENTRY_PATH' undeclared (first use in
this function)
src/pycurl.c:2010: error: 'CURLINFO_FTP_ENTRY_PATH' undeclared (first use in
this function)
src/pycurl.c:2051: error: 'CURLINFO_COOKIELIST' undeclared (first use in
this function)
src/pycurl.c:2051: error: 'CURLINFO_COOKIELIST' undeclared (first use in
this function)
src/pycurl.c: In function 'initpycurl':
src/pycurl.c:3192: error: 'CURLOPT_IGNORE_CONTENT_LENGTH' undeclared (first
use in this function)
src/pycurl.c:3193: error: 'CURLOPT_COOKIELIST' undeclared (first use in this
function)
src/pycurl.c:3194: error: 'CURLOPT_FTP_SKIP_PASV_IP' undeclared (first use
in this function)
src/pycurl.c:3195: error: 'CURLOPT_CONNECT_ONLY' undeclared (first use in
this function)
src/pycurl.c:3196: error: 'CURLOPT_LOCALPORT' undeclared (first use in this
function)
src/pycurl.c:3197: error: 'CURLOPT_LOCALPORTRANGE' undeclared (first use in
this function)
src/pycurl.c:3198: error: 'CURLOPT_FTP_ALTERNATIVE_TO_USER' undeclared
(first use in this function)
src/pycurl.c:3199: error: 'CURLOPT_MAX_SEND_SPEED_LARGE' undeclared (first
use in this function)
src/pycurl.c:3200: error: 'CURLOPT_MAX_RECV_SPEED_LARGE' undeclared (first
use in this function)
src/pycurl.c: In function 'initpycurl':
src/pycurl.c:3192: error: 'CURLOPT_IGNORE_CONTENT_LENGTH' undeclared (first
use in this function)
src/pycurl.c:3193: error: 'CURLOPT_COOKIELIST' undeclared (first use in this
function)
src/pycurl.c:3194: error: 'CURLOPT_FTP_SKIP_PASV_IP' undeclared (first use
in this function)
src/pycurl.c:3195: error: 'CURLOPT_CONNECT_ONLY' undeclared (first use in
this function)
src/pycurl.c:3196: error: 'CURLOPT_LOCALPORT' undeclared (first use in this
function)
src/pycurl.c:3197: error: 'CURLOPT_LOCALPORTRANGE' undeclared (first use in
this function)
src/pycurl.c:3198: error: 'CURLOPT_FTP_ALTERNATIVE_TO_USER' undeclared
(first use in this function)
src/pycurl.c:3199: error: 'CURLOPT_MAX_SEND_SPEED_LARGE' undeclared (first
use in this function)
src/pycurl.c:3200: error: 'CURLOPT_MAX_RECV_SPEED_LARGE' undeclared (first
use in this function)
src/pycurl.c:3258: error: 'CURLINFO_COOKIELIST' undeclared (first use in
this function)
src/pycurl.c:3259: error: 'CURLINFO_LASTSOCKET' undeclared (first use in
this function)
src/pycurl.c:3260: error: 'CURLINFO_FTP_ENTRY_PATH' undeclared (first use in
this function)
src/pycurl.c:3258: error: 'CURLINFO_COOKIELIST' undeclared (first use in
this function)
src/pycurl.c:3259: error: 'CURLINFO_LASTSOCKET' undeclared (first use in
this function)
src/pycurl.c:3260: error: 'CURLINFO_FTP_ENTRY_PATH' undeclared (first use in
this function)
lipo: can't figure out the architecture type of: /var/tmp//ccOlOt1d.out
error: command 'gcc' failed with exit status 1

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2006-11-26