From owner-freebsd-perl@FreeBSD.ORG Fri Apr 8 12:06:33 2005 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE3C816A4CE; Fri, 8 Apr 2005 12:06:33 +0000 (GMT) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8E4043D49; Fri, 8 Apr 2005 12:06:32 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 05AEC125475; Fri, 8 Apr 2005 14:06:31 +0200 (CEST) Date: Fri, 8 Apr 2005 14:06:31 +0200 From: Anton Berezin To: c0ldbyte Message-ID: <20050408120630.GD20503@heechee.tobez.org> Mail-Followup-To: Anton Berezin , c0ldbyte , Dmitry Pryanishnikov , freebsd-gnats-submit@freebsd.org, freebsd-perl@freebsd.org References: <42564B67.6070205@atlantis.dp.ua> <20050408071756.C388@eleanor.us1.wmi.uvac.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050408071756.C388@eleanor.us1.wmi.uvac.net> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ cc: Dmitry Pryanishnikov cc: freebsd-gnats-submit@freebsd.org cc: freebsd-perl@freebsd.org Subject: Re: ports/79397: news/inn fails to build nnrpd under RELEASE-4.11 and perl v5.8.6 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 12:06:34 -0000 On Fri, Apr 08, 2005 at 07:21:51AM -0400, c0ldbyte wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Fri, 8 Apr 2005, Dmitry Pryanishnikov wrote: > > > > >Hello! > > > >I've tried to install fresh 4.11-RELEASE, lang/perl5, use.perl port - > >similar problem, news/inn can't buld nnrpd: > > > >cc -rpath=/usr/lib:/usr/local/lib -o nnrpd article.o cache.o group.o > >commands.o line.o list.o misc.o newnews.o nnrpd.o perl.o perm.o post.o > >python.o sasl_config.o tls.o track.o > >/usr/ports/news/inn/work/inn-2.4.1/history/libinnhist.a > >/usr/ports/news/inn/work/inn-2.4.1/storage/libstorage.a > >/usr/ports/news/inn/work/inn-2.4.1/lib/libinn.a -L/usr/lib -lssl > >-lcrypto /usr/ports/news/inn/work/inn-2.4.1/lib/perl.o > >-Wl,-R/usr/local/lib/perl5/5.6.2/mach/CORE -Wl,-E -L/usr/local/lib > >/usr/local/lib/perl5/5.6.2/mach/auto/DynaLoader/DynaLoader.a > >-L/usr/local/lib/perl5/5.6.2/mach/CORE -lperl -lm -lcrypt -lutil > >/usr/local/lib/perl5/5.6.2/mach/auto/DynaLoader/DynaLoader.a(DynaLoader.o): > >In function `SaveError': > >DynaLoader.o(.text+0x1a6): undefined reference to `Perl_vmess' > >gmake[1]: *** [nnrpd] Error 1 > > > >So it looks that neither perl 5.6 nor perl 5.8 can't be used together > >with inn under 4.11-RELEASE. Pretty weird ;( > > > >Sincerely, Dmitry > > > > Yeah its been that way for quite a while. The INN-2.4.2 source has been > out for a quite a while now and not updated in the ports and Ive just been > patiently waiting for it just for thought of it might fix some of the > things that has it going bad right now. INN-CURRENT compiles fine and if > Im correct that was one I tried before the release of 2.4.2 SO! hopefully > we will some something soon in the effect of a fix & a update. Please see a recent update of exim for a fix hint. Briefly: for correct perl embedding -Wl,-R/usr/local/lib/perl5/${PERL_VERSION}/mach/CORE is necessary, but -rpath=/usr/lib:/usr/local/lib above leads to the final rpath being /usr/lib:/usr/local/lib:/usr/local/lib/perl5/${PERL_VERSION}/mach/CORE So libperl.so from the base system perl gets picked first. Even when -rpath gets moved after -Wl,-R..., the problem still remains, since -rpath takes precedence. The proper fix will mean both moving -rpath further in the line _and_ replacing it with -Wl,-rpath, so they get the same precedence. \Anton. -- The moronity of the universe is a monotonically increasing function. -- Jarkko Hietaniemi