Subject: Re: p5-XML-Parser-2.30 doesn't work?
To: Chris Pinnock <cjep@fawlty.net>
From: Paul Hoffman <phoffman@proper.com>
List: tech-pkg
Date: 12/13/2002 10:19:14
At 1:29 PM +0000 12/13/02, Chris Pinnock wrote:
>On Thu, Dec 12, 2002 at 07:23:35PM -0800, Paul Hoffman wrote:
>>  Hi. I just installed from binary textproc/expat-1.95.2 and
>>  textproc/p5-XML-Parser-2.30. A one-line Perl program that says 'use
>>  XML::Parser;' fails checking:
>>
>>  Can't load
>> 
>>'/usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd/auto/XML/Parser/Expat/Expat.so'
>>  for module XML::Parser::Expat: Shared object "libexpat.so.4" not
>>  found at /usr/pkg/lib/perl5/5.8.0/i386-netbsd/DynaLoader.pm line 229.
>>    at /usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd/XML/Parser.pm line 15
>>  Compilation failed in require at
>>  /usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd/XML/Parser.pm line 15.
>>  BEGIN failed--compilation aborted at
>>  /usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd/XML/Parser.pm line 19.
>>  Compilation failed in require at foo line 3.
>>  BEGIN failed--compilation aborted at foo line 3.
>
>Seems to work for me (although I'm using perl 5.6.1):
>tubbs% perl -e "use XML::Parser;"
>tubbs%

I can't tell if this is a Perl 5.8 problem, a NetBSD 1.6 problem, or 
a combination.

>Can you do "pkg_info -L p5-XML-Parser" to see where the files are
>installed?

Information for p5-XML-Parser-2.30:

Files:
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser.pm
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/Japanese_Encodings.msg
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/README
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/big5.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/euc-kr.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-2.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-3.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-4.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-5.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-7.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-8.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/iso-8859-9.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/windows-1250.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/x-euc-jp-unicode.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/x-sjis-cp932.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/x-sjis-jdk117.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/x-sjis-jisx0221.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Encodings/x-sjis-unicode.enc
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/Expat.pm
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/XML/Parser/LWPExternEnt.pl
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/XML/Parser/.packlist
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/XML/Parser/Expat/Expat.bs
/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/XML/Parser/Expat/Expat.so


>(BTW, there's also a newer version in pkgsrc.)

I'll use that if people think it is fixed there. I try to use the 
binary versions instead of building my own.

--Paul Hoffman