Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: XSLoad::load calls itself?

by Errto (Vicar)
on Aug 29, 2007 at 03:14 UTC ( #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.

Comment on Re: XSLoad::load calls itself?
Select or Download Code
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 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{""}.

    - 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{""} since it doesnít compile right? But I did a use glip::wad; in 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{""} doesnít really work right? Since INC is an array? How do you find out what value it is finding and using?
      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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2015-12-01 21:27 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (27 votes), past polls