cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems Making Perl Interface in OSX

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 16 Jun 2003 08:33:39 +0200 (CEST)

On Sun, 15 Jun 2003, keiko koda wrote:

> 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)

Yeah, Apple doesn't seem to update their curl installation. They like that
ancient 7.7.2. It makes Apple users see problems like this all the time.

> - 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

The headers are usually in 'devel' packages, I see that Fink provides a
'curl-dev' package that might be what you need.

> the new curl.h does define CURL_GLOBAL_ALL
>
> - I manually remade (make) WWW::Curl and it compiled fine.

Then you know its fine.

> 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

This proves that it links with the wrong version of the library, as these
functions are present in the newer version but not in that older version of
yours.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
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-16