From owner-freebsd-ports@FreeBSD.ORG Sat Feb 12 00:10:55 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AAE416A4CE; Sat, 12 Feb 2005 00:10:55 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECA8C43D2F; Sat, 12 Feb 2005 00:10:54 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 2FF684AC49; Sat, 12 Feb 2005 01:10:54 +0100 (CET) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23941-03; Sat, 12 Feb 2005 01:10:54 +0100 (CET) Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66]) by melon.pingpong.net (Postfix) with ESMTP id D044D4AC3F; Sat, 12 Feb 2005 01:10:53 +0100 (CET) Date: Sat, 12 Feb 2005 01:10:53 +0100 From: Palle Girgensohn To: Sven Willenberger , Tom Lane Message-ID: <2D0E6F6604E3C0760BEC3820@palle.girgensohn.se> In-Reply-To: <1108166934.10860.59.camel@lanshark.dmv.com> References: <1108135462.10866.12.camel@lanshark.dmv.com> <510442EEF15A0237A0138D49@rambutan.pingpong.net> <1108138215.10866.20.camel@lanshark.dmv.com> <20050211203503.GA79170@heechee.tobez.org> <1108158115.10863.40.camel@lanshark.dmv.com> <20050211220935.GB79170@heechee.tobez.org> <20050211222002.GC79170@heechee.tobez.org> <1108163489.10860.49.camel@lanshark.dmv.com> <16124.1108164945@sss.pgh.pa.us> <1108166934.10860.59.camel@lanshark.dmv.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net cc: pgsql-general@postgresql.org cc: freebsd-ports@freebsd.org cc: Anton Berezin Subject: Re: [GENERAL] databases/p5-postgresql-plperl links to wrong libperl.so X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 00:10:55 -0000 --On fredag, februari 11, 2005 19.08.54 -0500 Sven Willenberger wrote: > On Fri, 2005-02-11 at 18:35 -0500, Tom Lane wrote: >> Sven Willenberger writes: >> > it looks like the sed line is stripping out pgac_tmp2 from the >> > pgac_tmp1 leaving the system to use the default perl libperl.so. >> > when I modified perl_embed_ldflags to not remove the -R line, the >> > compile works and links to the proper libperl.so >> >> It worked for you, but not necessarily for other people. This thread >> may be instructive: >> http://archives.postgresql.org/pgsql-bugs/2004-11/msg00181.php >> >> regards, tom lane > > I see they used the same solution that I did, namely remove the part of > the sed statement that removes the ccdflags frmo the ExtUtils::Embed's > output. The rpath solution you provided to patch GNUmakefile did not > work however, bailing with: > > gcc -O2 -fno-strict-aliasing -Wmissing-declarations, -Wl, > -rpath, /usr/local/lib/perl5/5.8.6/mach/CORE -fpic -DPIC -I. > -I/usr/local/lib/perl5/5.8.6/mach/CORE -I../../../src/include -c -o > plperl.o plperl.c > gcc: cannot specify -o with -c or -S and multiple compilations > > (As you said it may not work on all platforms). > > At this point I will try to submit or suggest a patch for the freebsd > ports system to simply change the lines in the configure config/perl.m4 > files to strip out the replacement part of the sed statement. > > Thanks, > > Sven > Sven, I think this sounds fine, beeing that it is FreeBSD specific. If you can test this, once it's OK, send me a patch and I'll commit it. Regards, Palle