Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: XSLoad::load calls itself?

by Errto (Vicar)
on Aug 29, 2007 at 03:14 UTC ( [id://635720]=note: print w/replies, xml ) Need Help??


in reply to XSLoad::load calls itself?

The module where you're seeing the problem is called APR::XSLoader. The module the error is being reported about is called XSLoader. They're two different modules, not related except that one apparently depends on the other. If you don't have XSLoader installed on your machine, you can get it from CPAN.

Replies are listed 'Best First'.
Re^2: XSLoad::load calls itself? (use)
by tye (Sage) on Aug 29, 2007 at 04:30 UTC

    Good point.

    Since the "use XSLoader ();" statement isn't dieing, I suspect XSLoader is already loaded (it is also a core module).

    Oh! I just had an idea. One simple explanation would be if @INC included "/usr/lib64­/perl5/ven­dor_perl/5­.8.8/x86_6­4-linux-th­read-multi­/APR" before the path where the XSLoader module is. Then "use XSLoader ();" would load the XSLoader.pm from the APR::XSLoader module.

    Note that @INC should not contain "/usr/lib64­/perl5/ven­dor_perl/5­.8.8/x86_6­4-linux-th­read-multi­/APR" at all.

    So the next step I'd recomment is reporting the value of $INC{"XSLoader.pm"}.

    - tye        

      Folks, Oh, XSLoader and APR::XSLoader are different. That explains a lot. I did a cpan install of XSLoader, and evidently I didn’t have that since it installed right? But it is still getting the same undefined XSLoader::load error.
      You can’t do a print of $INC{"XSLoader.pm"} since it doesn’t compile right? But I did a use glip::wad; in startup.pl to cause the below error dump of @INC:
      But there is no APR anywhere in there right? It must be getting it some where since, as you said, the use XSLoader is not dieing right, even before I installed it?
      So this $INC{"XSLoader.pm"} doesn’t really work right? Since INC is an array? How do you find out what value it is finding and using?
      Thanks
      Brent Allsop
      @INC (@INC contains: /usr/local/webtools /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Apache2 / +usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Bundle /u +sr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/p +erl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/ +perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/per +l5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib6 +4/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/ +perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr +/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 +. /etc/httpd)

        perlvar covers both @INC and %INC. Did you even try? Or did you just assume it wouldn't compile?

        "/usr/lib64­/perl5/ven­dor_perl/5­.8.8/x86_6­4-linux-th­read-multi­/Apache2" looks suspicious to me. And, indeed, there is an Apache2::XSLoader module.

        - tye        

        `

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://635720]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found