From owner-freebsd-amd64@FreeBSD.ORG Wed Mar 24 07:56:12 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D899D16A4CE for ; Wed, 24 Mar 2004 07:56:12 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC59643D53 for ; Wed, 24 Mar 2004 07:56:12 -0800 (PST) (envelope-from peter@evilpete.dyndns.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id B2BA22A8D5 for ; Wed, 24 Mar 2004 07:56:12 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 13573E296 for ; Wed, 24 Mar 2004 07:56:13 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.12.11/8.12.11) with ESMTP id i2OFtPZ7002643; Wed, 24 Mar 2004 07:55:25 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.12.11/8.12.11/Submit) id i2OFtPnP002642; Wed, 24 Mar 2004 07:55:25 -0800 (PST) (envelope-from peter) From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Wed, 24 Mar 2004 07:55:25 -0800 User-Agent: KMail/1.6.1 References: <200403240751.06524.peter@wemm.org> In-Reply-To: <200403240751.06524.peter@wemm.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403240755.25406.peter@wemm.org> cc: adridg@cs.kun.nl Subject: Re: A different buildworld failure X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 15:56:13 -0000 On Wednesday 24 March 2004 07:51 am, Peter Wemm wrote: > On Wednesday 24 March 2004 12:43 am, Adriaan de Groot wrote: > > On Tue, 23 Mar 2004, Peter Wemm wrote: > > > No, you're missing the point. Do not put "-fPIC -DPIC" > > > *anywhere* in /etc/make.conf. Do not hack blindly hack ports to > > > compile everything with -fPIC (including executables), and yell > > > at anybody else who is doing it. > > > > Arr (in the manner of pirates everywhere). > > > > > Fix the problem, rather than just plaster over the top of it. > > > That means finding out why the port is doing this in the first > > > place? Is it just because the author is clueless and accidently > > > forgot that shared libraries need to be pic (and got away with it > > > till now on i386). Or they are doing it deliberately with > > > --prefer-non-pic to libtool (and got away with it until now). Or > > > something just went wrong. > > > > Well, here's the particular instance that caused me to take the > > road to ruin: > > > > /usr/bin/ld: > > /usr/local/lib/perl5/5.6.1/mach/CORE/libperl.a(perl.o): relocation > > R_X86_64_32S can not be used when making a shared object; recompile > > with -fPIC > > > > that's when I was trying to embed a perl interpreter in a C++ .so. > > Is that something I should just send-pr and be done with? > > You should be linking against libperl.so or embedding libperl_pic.a. > Except I've just looked and its missing. Argh! I wonder when that > happened? I'm sure it was working at one point... Hmm. perl5.8 has > a libperl.so and its now the default for 5.x ports.. is that > something you can use? I just reran 'make configure' on the perl5 port, and noticed from its configure output: Build a shared libperl.so (y/n) [n] So I guess thats why it doesn't happen. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5