Hello,

whenever I run the simple LWP program below, I get the following error messages (I am using perl 5.8.0). I get the same message when I try to build LWP 5.7.2.

[philippe ~/Desktop] % perl testlwp1.pl
dyld: perl Undefined symbols:
_Perl_safefree
_Perl_safemalloc
_Perl_saferealloc
_Perl_sv_2pv
_Perl_sv_catpvn
_Perl_sv_catsv
_Perl_sv_pvn_force
_perl_call_method
_perl_call_sv
_perl_get_hv
_perl_get_sv
Trace/BPT trap
[philippe ~/Desktop] %

Any help would be much appreciated.

Philippe

============== Program ==================

use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$ua->agent("MyApp/0.1 ");

 # Create a request
 my $req = HTTP::Request->new(POST => 'http://www.perl.com');
 $req->content_type('application/x-www-form-urlencoded');
 $req->content('match=www&errors=0');

 # Pass request to the user agent and get a response back
 my $res = $ua->request($req);

 # Check the outcome of the response
 if ($res->is_success) {
         print $res->content;
 } else {
         print "Bad luck this time\n";
 }
========================================



Reply via email to