curl-library
Re: Problems Making Perl Interface in OSX
Date: Sun, 15 Jun 2003 07:27:25 -0700 (PDT)
Cris,
Thanks for your reply.
- My old versions:
$Id: curl.h,v 1.1.1.2 2001/04/24 18:49:05 wsanchez Exp
$
curl 7.7.2 (powerpc-apple-darwin6.0) libcurl 7.7.2
(OpenSSL 0.9.6e) (ipv6 enabled)
- I used Fink to update to ...
curl 7.10.3 (powerpc-apple-darwin6.3) libcurl/7.10.3
ipv6 zlib/1.1.3
- but Fink didn't install a new curl.h, so I extracted
the contents of curl-7.10.3/include/curl
$Id: curl.h,v 1.185 2003/01/09 10:36:25 bagder Exp $
the new curl.h does define CURL_GLOBAL_ALL
#define CURL_GLOBAL_SSL (1<<0)
#define CURL_GLOBAL_WIN32 (1<<1)
#define CURL_GLOBAL_ALL
(CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
#define CURL_GLOBAL_NOTHING 0
#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
- I manually remade (make) WWW::Curl and it compiled
fine.
- But when I ran "make test," the tests failed still
- I looked at the libraries Fink installed:
/sw/lib/libcurl.2.0.2.dylib
/sw/lib/libcurl.2.dylib
- In my /usr/lib I found the "old" libcurl.a
root wheel 203848 Nov 5 2002 libcurl.a
I am not sure where the new ones are supposed to go,
so I added them to /usr/lib
- Again I ran "make test," the tests failed still
Listing of Test Failures:
/----------------------/
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/System/Library/Perl/darwin -I/System/Library/Perl
-e 'use Test::Harness qw(&runtests $verbose);
$verbose=0; runtests @ARGV;' t/*.t
t/00constants.............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/00constants.............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/01basic.................dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/01basic.................dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/02header-callback.......dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/02header-callback.......dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/03body-callback.........dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/03body-callback.........dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/04abort-test............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/04abort-test............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/05progress..............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/05progress..............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t/06http-post.............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/06http-post.............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/07ftp-upload............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/07ftp-upload............dubious
Test returned status 0 (wstat 5, 0x5)
t/08ssl...................dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/08ssl...................dubious
Test returned status 0 (wstat 5, 0x5)
t/09times.................dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/09times.................dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/10errbuf................dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/10errbuf................dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/11oldstyle1.............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/11oldstyle1.............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/12oldstyle2.............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/12oldstyle2.............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/13slowleak..............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/13slowleak..............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/14duphandle.............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/14duphandle.............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/15duphandle-callback....dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/15duphandle-callback....dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/16formpost..............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/16formpost..............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/17slist.................dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/17slist.................dubious
Test returned status 0 (wstat 5, 0x5)
t/18twinhandles...........dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/18twinhandles...........dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/19basic-back............dyld: /usr/bin/perl
Undefined symbols:
_curl_easy_duphandle
_curl_global_cleanup
_curl_global_init
t/19basic-back............dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed
List of Failed
-------------------------------------------------------------------------------
t/00constants.t 0 5 2 4 200.00%
1-2
t/01basic.t 0 5 6 12 200.00%
1-6
t/02header-callback.t 0 5 8 16 200.00%
1-8
t/03body-callback.t 0 5 8 16 200.00%
1-8
t/04abort-test.t 0 5 7 14 200.00%
1-7
t/05progress.t 0 5 9 18 200.00%
1-9
t/06http-post.t 0 5 6 12 200.00%
1-6
t/07ftp-upload.t 0 5 ?? ?? %
??
t/08ssl.t 0 5 ?? ?? %
??
t/09times.t 0 5 7 14 200.00%
1-7
t/10errbuf.t 0 5 5 10 200.00%
1-5
t/11oldstyle1.t 0 5 6 12 200.00%
1-6
t/12oldstyle2.t 0 5 8 16 200.00%
1-8
t/13slowleak.t 0 5 2 4 200.00%
1-2
t/14duphandle.t 0 5 7 14 200.00%
1-7
t/15duphandle-callback.t 0 5 7 14 200.00%
1-7
t/16formpost.t 0 5 6 12 200.00%
1-6
t/17slist.t 0 5 ?? ?? %
??
t/18twinhandles.t 0 5 8 16 200.00%
1-8
t/19basic-back.t 0 5 6 12 200.00%
1-6
Failed 20/20 test scripts, 0.00% okay. 108/108
subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
/----------------------/
--- Cris Bailiff <c.bailiff+curl_at_devsecure.com> wrote:
> On Sun, 15 Jun 2003 07:34 am, keiko koda wrote:
> > I need help making the Perl interface (WWW:Curl
> 2.0)
> > on MacOSX 10.2.3.
> >
> > I've tried installing it using CPAN, as well as
> making
> > it manually, but in both cases I run into the same
> > problem.
> >
> > I've tried to find a solution on the archives for
> this
> > mailing list, but find one that addressed the
> > particular error I am getting:
> >
> > Curl.xs:504: `CURL_GLOBAL_ALL' undeclared (first
> use
> > in this function)
> > Curl.xs:504: (Each undeclared identifier is
> reported
> > only once
> > Curl.xs:504: for each function it appears in.)
> > make: *** [Curl.o] Error 1
> >
> > I can't find where CURL_GLOBAL_ALL is defined.
>
> You didn't say which version of curl you have. I
> believe the one included with
> MacOSx is rather 'long in the tooth'. This symbol
> was added to libcurl (in
> curl.h) in May 2001, more than 2 years ago. (That
> would have been in curl
> v7.8 release).
>
> If that's not the case (and you have a newer curl),
> you do have 'curl.h'
> installed somewhere, I assume?
>
> > Commenting this line out allows the project to
> > compile, but then the tests all fail.
>
> It should be fine without this line. If you don't
> have the constant, then you
> probably don't have the global init function either.
>
> You don't say what fails about the tests - does
> libcurl fail to load (test
> 00constants.t)?, or can it not contact a site
> (01basic.t) or what?
>
> >
> > I would appreciate any help you can give me.
> >
> > Thanks,
> >
> > Keiko
> >
> >
> > Make listing below:
> >
> > cc -pipe -c -I/usr/include -g -pipe -pipe
> -fno-common
> > -no-cpp-precomp -flat_namespace
> > -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -Os
> > -DVERSION=\"2.0\" -DXS_VERSION=\"2.0\"
> > -I/System/Library/Perl/darwin/CORE
> > -DHAVE_INTERNAL_VARS Curl.c
> > cc1: warning: changing search order for system
> > directory "/usr/include"
> > cc1: warning: as it has already been specified
> as a
> > non-system directory
> > Curl.xs: In function `perl_curl_easy_duphandle':
> > Curl.xs:147: warning: assignment makes pointer
> from
> > integer without a cast
> > Curl.xs: In function `XS_WWW__Curl__easy_setopt':
> > Curl.xs:656: warning: passing arg 2 of
> `Perl_sv_2pv'
> > from incompatible pointer type
> > Curl.xs: In function `boot_WWW__Curl':
> > Curl.xs:504: `CURL_GLOBAL_ALL' undeclared (first
> use
> > in this function)
> > Curl.xs:504: (Each undeclared identifier is
> reported
> > only once
> > Curl.xs:504: for each function it appears in.)
> > make: *** [Curl.o] Error 1
>
> Not having any MacosX experience, I can't provide
> much assistance beyond this
> point. I'm happy to include any fixes/suggestions
> from MacOS-X users in the
> next release.
>
> Cris
>
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-15