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