[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Porters] compile/install/test problem



At 5:00 PM -0600 1/18/00, Matthew Langford wrote:
>I hope this is simple.  I think it is, an ignorance or overlooked detail.
>
>_Background_
>I've compiled successfully HTML::Parser 3.02 for both CFM68K and PPC.  I
>tried to create a proper "blib" structure (but probably didn't), and then
>ran Chris Nandor's installme.plx.  When I look for the various pieces,
>they seem to be in the right places in site_perl.
>
>But when I run the first test program, I get:
>    # Can't locate object method "handler" via package "HTML::Parser".
>    File 'Annex:The
>          Vault:Incoming:DownLoad:HTML-Parser-3.02:t:api_version.t';
>          Line 8
>
>
>HTML::Parser::handler is a major piece of H::P's new version 3
>functionality.  Other tests also complain about missing functions.
>
>
>Here's my blib structure:
>
>blib
>    lib
>       HTML
>          Entities.pm
>          Parser.pm
>          ... the other four *.pm files
>       MacCFM68K
>          auto
>             HTML
>                Parser
>                   Parser (actual CFM68K lib)
>       MacPPC
>          auto
>             HTML
>                Parser
>                   Parser (actual PPC shlib)
>
>Is this right?


In a proper blib the architecture dependent things go in blib/arch, 
but the way you have it looks like it will work.

>
>When I look in site_perl:HTML:Parser.pm, it is v.3.02.  The PPC lib (I am
>on a PPC) is in site_perl:MacPPC:auto:HTML:Parser: as Parser.  This looks
>the same as other modules I've installed.
>
>Who are the usual suspects in this case?


Wrong @INC.  You might want to put a "print "@INC";" at the beginning 
of the test just to make sure that the test script is seeing the 
right one.  Since handler is actually done by the XS, the other 
possibility is that the shared library isn't loading, but I'd expect 
a DynaLoader error in that case.

>
>
>I've looked at my CW project; it seems to have all the relevant libs,
>includes, paths, and so on.  It uses the .exp file to limit symbols to
>boot_HTML__Parser.  It compiles, and the "Parser" lib file I see in the
>various MacPPC folders reflects my most recent compilation.
>
>Suggestions?

You probably don't want to hear that HTML-Parser-3.04 is out :-)

>
>
>--
>MattLangford

--
Paul Schinder
schinder@pobox.com

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-porters-request@macperl.org