Module HTTP::OAI::Harvester broken on OpenBSD
Closed this issue · 0 comments
phochste commented
Platform: OpenBSD 53
Perl: v5.12.2
I'm trying to execute this script:
#!/usr/bin/env perl
use HTTP::OAI::Harvester;
my $url = 'http://search.ugent.be/meercat/x/oai';
my $x = HTTP::OAI::Harvester->new(baseURL => $url);
And get:
String found where operator expected at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 221, near "Carp::confess "Internal error - bad bytes but not in 0x80-0xff range???""
(Do you need to predeclare Carp::confess?)
String found where operator expected at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 241, near "Carp::confess "Requires verb parameter""
(Do you need to predeclare Carp::confess?)
syntax error at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 221, near "Carp::confess "Internal error - bad bytes but not in 0x80-0xff range???""
syntax error at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 241, near "Carp::confess "Requires verb parameter""
Global symbol "$self" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 243.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 246.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 246.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 247.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 247.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 249.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 251.
Global symbol "%args" requires explicit package name at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 251.
syntax error at /usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm line 255, near "}"
/usr/local/libdata/perl5/site_perl/HTTP/OAI/UserAgent.pm has too many errors.
Compilation failed in require at (eval 2) line 2.
...propagated at /usr/libdata/perl5/base.pm line 94.
BEGIN failed--compilation aborted at /usr/local/libdata/perl5/site_perl/HTTP/OAI/Harvester.pm line 3.
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.
On
Platform: OSX 10.9.3
Perl: 5.18.2
I get using the same script this response:
an't locate object method "new" via package "HTTP::OAI::Identify" (perhaps you forgot to load "HTTP::OAI::Identify"?) at /Users/hochsten/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/HTTP/OAI/Harvester.pm line 21.