Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.

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]
[LanX]: Rat or newest nodes
[LanX]: I think there are RSS feeds you could use, but never used them
[Eily]: LanX how does the first link work, should I send a message to rat? :D
[LanX]: yes, or click the second link

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2018-03-19 09:55 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (238 votes). Check out past polls.