Subject: | WWW-Curl does not build under Mac OS X 10.4 |
Date: | Wed, 23 Apr 2008 12:50:37 -0400 |
To: | bug-WWW-Curl [...] rt.cpan.org |
From: | Ian Soboroff <ian.soboroff [...] nist.gov> |
I am trying to build WWW-Curl under Mac OS X 10.4.11. It will not build
either with the stock curl, or with a freshly-built latest-version curl
from curl.haxx.se.
This is WWW-Curl-4.00, Perl version 5.8.6.
uname -a: "Darwin rogue.ncsl.nist.gov 8.11.1 Darwin Kernel Version
8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386
i386 i386 MacPro1,1 Darwin"
Using the stock curl that comes with Mac OS X:
$ PATH=/usr/bin:$PATH perl Makefile.PL /usr/include
Locating required external dependency bin:curl-config... found at /usr/bin/curl-config.
Found curl.h in /usr/include/curl/curl.h
Building curlopt-constants.c for your libcurl version
Building Easy.pm constants for your libcurl version
Building Share.pm constants for your libcurl version
Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Curl
$ make
cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm
AutoSplitting blib/lib/WWW/Curl/Share.pm (blib/lib/auto/WWW/Curl/Share)
cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
AutoSplitting blib/lib/WWW/Curl/Easy.pm (blib/lib/auto/WWW/Curl/Easy)
cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
/usr/bin/perl "-Iinc" /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.6/ExtUtils/typemap -typemap typemap Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
cc -c -I/usr/include -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -O3 -DVERSION=\"4.00\" -DXS_VERSION=\"4.00\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" Curl.c
In file included from Curl.xs:548:
curlopt-constants.c: In function 'constant':
curlopt-constants.c:213: error: 'CURLOPT_SOURCE_POSTQUOTE' undeclared (first use in this function)
curlopt-constants.c:213: error: (Each undeclared identifier is reported only once
curlopt-constants.c:213: error: for each function it appears in.)
curlopt-constants.c:214: error: 'CURLOPT_SOURCE_PREQUOTE' undeclared (first use in this function)
curlopt-constants.c:215: error: 'CURLOPT_SOURCE_QUOTE' undeclared (first use in this function)
curlopt-constants.c:216: error: 'CURLOPT_SOURCE_URL' undeclared (first use in this function)
curlopt-constants.c:217: error: 'CURLOPT_SOURCE_USERPWD' undeclared (first use in this function)
Curl.xs: In function 'XS_WWW__Curl__Easy_init':
Curl.xs:591: error: parse error before 'int'
Curl.xs: In function 'XS_WWW__Curl__Easy_setopt':
Curl.xs:710: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
make: *** [Curl.o] Error 1
Using a newly-built curl-7.18.1:
$ PATH=/usr/local/bin:$PATH perl Makefile.PL /usr/local/include
Locating required external dependency bin:curl-config... found at /usr/local/bin/curl-config.
Found curl.h in /usr/local/include/curl/curl.h
Building curlopt-constants.c for your libcurl version
Building Easy.pm constants for your libcurl version
Building Share.pm constants for your libcurl version
Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Curl
$ make
cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm
AutoSplitting blib/lib/WWW/Curl/Share.pm (blib/lib/auto/WWW/Curl/Share)
cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
AutoSplitting blib/lib/WWW/Curl/Easy.pm (blib/lib/auto/WWW/Curl/Easy)
cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
/usr/bin/perl "-Iinc" /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.6/ExtUtils/typemap -typemap typemap Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
cc -c -I/usr/local/include -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -O3 -DVERSION=\"4.00\" -DXS_VERSION=\"4.00\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" Curl.c
Curl.xs: In function 'XS_WWW__Curl__Easy_init':
Curl.xs:591: error: parse error before 'int'
Curl.xs: In function 'XS_WWW__Curl__Easy_setopt':
Curl.xs:710: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
make: *** [Curl.o] Error 1
rogue:~/Desktop/Downloads/WWW-Curl-4.00 soboroff$