On Tue, Apr 08, 2008 at 10:55:25AM +0100, Stephen Gran wrote:
> This one time, at band camp, Pierre Chifflier said:
> > Hi,
> > 
> > DynaLoader has disappeared, but it seems it *was* needed for my current
> > use (without it, I can't load the perl module anymore, so Perl 5.8
> > support is broken, and I don't know if 5.10 is working ..)
> > 
> > I was not using it explicitly, but it was coming from the output of the
> > command perl -MExtUtils::Embed -e ldopts
> > -Wl,-E  -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
> > -L/usr/lib/perl/5.8/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
> > 
> > As cmake does not support specifying LDFLAGS directly, it do not see any
> > simple solution ...
> 
> I tested builing under both 5.8 and 5.10 before I filed that patch and
> did the NMU.  Running `VERBOSE=1 cmake` showed that the 5.8 version was
> doing the right thing and including DynaLoader, or at least it certainly
> looked that way to me.

Hum, I really think that the symbol is *not* found:
$ ldd build/modules/perl/libwzd_perl.so | grep perl
libperl.so.5.8 => /usr/lib/libperl.so.5.8 (0x00002b50f61a0000)

$ nm build/modules/perl/libwzd_perl.so | grep Dyna
         U boot_DynaLoader

Note that the symbol is unresolved, because it is part of DynaLoader.a,
which is not linked anymore:
$ nm /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a |grep boot_Dyna
0000000000000050 T boot_DynaLoader

I think the only solution is to make a conditional inclusion, like: if
detected, then link to the file.

I have not yet checked how perl 5.10 manages dynamic loading ..

Regards,
Pierre



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to