From owner-freebsd-amd64@FreeBSD.ORG Wed Mar 24 00:43:45 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 6B08016A4CE for ; Wed, 24 Mar 2004 00:43:45 -0800 (PST) Received: from wn1.sci.kun.nl (wn1.sci.kun.nl [131.174.8.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C66843D39 for ; Wed, 24 Mar 2004 00:43:44 -0800 (PST) (envelope-from adridg@sci.kun.nl) Received: from wn4.sci.kun.nl [131.174.8.3] (helo=wn4.sci.kun.nl) by wn1.sci.kun.nl (8.12.10/3.67) with ESMTP id i2O8hh27019256 for ; Wed, 24 Mar 2004 09:43:43 +0100 (MET) Date: Wed, 24 Mar 2004 09:43:43 +0100 (MET) From: Adriaan de Groot To: freebsd-amd64@freebsd.org In-Reply-To: <200403231657.10742.peter@wemm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: A different buildworld failure X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: adridg@cs.kun.nl 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 08:43:45 -0000 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?