develooper Front page | perl.perl5.porters | Postings from June 2001

Re: PERL_DL_NONLAZY=1 and Cwd

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
June 30, 2001 12:39
Subject:
Re: PERL_DL_NONLAZY=1 and Cwd
Message ID:
20010630193954.529.5@dromedary.ni-s.u-net.com
Michael G Schwern <schwern@pobox.com> writes:
>So I'm trying to tear Cwd.pm out into its own CPAN module, and I've
>all but got it except for one problem...
>
>    $ perl -Iblib/lib -Iblib/arch t/Cwd.t
>
>That works.
>
>    $ PERL_DL_NONLAZY=1 perl -Iblib/lib -Iblib/arch t/Cwd.t
>
>That doesn't.  "Undefined subroutine &Cwd::abs_path called at
>blib/lib/Cwd.pm line 125"

PERL_DL_NONLAZY causes unresolved symbols in the .so file to be error 
a load time rather than when called. 

What does nm show on Cwd.so ? 

I suspect error above is a secondary one, with DynaLoader tying to use
Cwd::abs_path (probably indirectly) to find an alternate Cwd.so which 
might load after original failed.


>
>"make test" likes to run with PERL_DL_NONLAZY on, there's no way to
>shut it off I can find.  What's going on here?  Obviously PERL_DL_NONLAZY
>is causing some sort of problem loading the XS components.
>
>You'll find this version at http://www.pobox.com/~schwern/src/Cwd-2.05.tar.gz  
>There's only very minor modifications to it, a bit of filename
>twiddling in the test, and some tricks so fastcwd works.
-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About