From owner-freebsd-current Tue Sep 15 14:31:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09622 for freebsd-current-outgoing; Tue, 15 Sep 1998 14:31:00 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.kar.net (n182.cdialup.kar.net [195.178.130.182]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09420 for ; Tue, 15 Sep 1998 14:30:13 -0700 (PDT) (envelope-from kushn@mail.kar.net) Received: from localhost (volodya@localhost) by mail.kar.net (8.9.1/8.8.8) with SMTP id AAA16863; Wed, 16 Sep 1998 00:28:33 +0300 (EEST) (envelope-from kushn@mail.kar.net) Date: Wed, 16 Sep 1998 00:28:31 +0300 (EEST) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua To: Mark Murray cc: current@FreeBSD.ORG Subject: Re: Some more perl5 questions under elf In-Reply-To: <199809150650.IAA28146@gratis.grondar.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 15 Sep 1998, Mark Murray wrote: > Vladimir Kushnir wrote: > > There're some problems with perl5 build under -current (elf): > > i) Sorry, I don't know is this is intended, but during make > > This is intended. > > > buildworld perl5 is linked to static libperl.a. When re-built afterwards: > > -r-xr-xr-x 2 bin bin 7936 Sep 14 13:57 /usr/bin/perl > > -r-xr-xr-x 1 bin bin 449796 Sep 14 13:52 /usr/bin/perl.orig > > ii) (And more essential) Perl5 as it is doesn't want to load modules > > dynamically unless linked with -rdynamic (or at least the originally built > > during buildworld doesn't). BTW, exactly the same situation I had with elf > > X server and its modules, with development glib-1.1 and its libgmodule-1.1 > > and so on. > > I do not completely understand it, but this seems to be by design. > > M > -- > Mark Murray > Join the anti-SPAM movement: http://www.cauce.org > I'm awfully sorry, I might very well be a silly ass as far as programming is concerned, but here's just a simple example: MD5-1.7.tar.gz made with the base perl5 (/usr/bin/perl.orig, built during buildworld) and dinamically linked with option -rdynamic (/usr/bin/perl, built right after installworld is completed). No patches, just plain "perl(.orig) Makefile.PL; make; make test". /disk2/Archive/MD5-1.7> make test PERL_DL_NONLAZY=1 /usr/bin/perl.orig -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00502/mach -I/usr/libdata/perl/5.00502 test.pl 1..14 Can't load 'blib/arch/auto/MD5/MD5.so' for module MD5: blib/arch/auto/MD5/MD5.so: Undefined symbol "perl_get_sv" at /usr/libdata/perl/5.00502/mach/DynaLoader.pm line 168. at test.pl line 12 BEGIN failed--compilation aborted at test.pl line 12. not ok 1 *** Error code 2 Stop. /disk2/Archive/MD5-1.7> make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00502/mach -I/usr/libdata/perl/5.00502 test.pl 1..14 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ===========================|======================= Vladimir Kushnir | kushn@mail.kar.net, | Powered by FreeBSD kushnir@ap3.bitp.kiev.ua | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message