LibreCat / Catmandu-OAI

Catmandu modules for working with OAI repositories
https://metacpan.org/release/Catmandu-OAI
3 stars 2 forks source link

Catmandu::OAI broken on BSD platforms #4

Closed phochste closed 10 years ago

phochste commented 10 years ago

Basically the underlying HTTP::OAI 4.03 is broken on BSD platforms

#!/usr/bin/env perl
use HTTP::OAI::Harvester;
my $url = 'http://biblio.ugent.be/oai';
my $x = HTTP::OAI::Harvester->new(baseURL => $url, resume => 0);

gives:

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.
phochste commented 10 years ago

Patches send to HTTP::OAI Tim

phochste commented 10 years ago

My bad...