From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 11 11:45:52 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org 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 D7BA016A403 for ; Tue, 11 Apr 2006 11:45:52 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F6BA43D45 for ; Tue, 11 Apr 2006 11:45:50 +0000 (GMT) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (cpe-024-211-118-154.sc.res.rr.com [24.211.118.154]) by ms-smtp-03-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3BBjkvb029060; Tue, 11 Apr 2006 07:45:48 -0400 (EDT) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.13.4/8.13.4) with ESMTP id k3BBjjUT027282; Tue, 11 Apr 2006 07:45:45 -0400 (EDT) (envelope-from morganw@chemikals.org) Date: Tue, 11 Apr 2006 07:45:45 -0400 (EDT) From: Wesley Morgan To: Steve Kargl In-Reply-To: <20060411033619.GA1495@troutmask.apl.washington.edu> Message-ID: <20060411074512.S17615@volatile.chemikals.org> References: <20060410235910.F1096@ganymede.hub.org> <20060411002924.E1096@ganymede.hub.org> <20060411033619.GA1495@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-amd64@freebsd.org Subject: Re: relocation R_X86_64_32 can not be used (Was: Re: (no subject)) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 11:45:52 -0000 On Mon, 10 Apr 2006, Steve Kargl wrote: > On Tue, Apr 11, 2006 at 12:30:02AM -0300, Marc G. Fournier wrote: >>> cc -shared -o common.o stream.o registry.o config.o memory.o >>> /usr/bin/ld: stream.o: relocation R_X86_64_32 can not be used when making >>> a shared object; recompile with -fPIC >>> stream.o: could not read symbols: Bad value > > You're mixing static and share libs. Add -static to your > CFLAGS. > > Or you could probably compile the other objects with -fPIC. -- This .signature sanitized for your protection