From owner-freebsd-ports@FreeBSD.ORG Tue Apr 11 18:07:11 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 E987016A403; Tue, 11 Apr 2006 18:07:11 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 432B943D45; Tue, 11 Apr 2006 18:07:11 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id 8BCBA62CAC0; Tue, 11 Apr 2006 15:07:10 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id dJGJWT+-rLLS; Tue, 11 Apr 2006 15:07:02 -0300 (ADT) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id B806262CA95; Tue, 11 Apr 2006 15:07:09 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id AF7A845EAD; Tue, 11 Apr 2006 15:07:08 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id A829B3464E; Tue, 11 Apr 2006 15:07:08 -0300 (ADT) Date: Tue, 11 Apr 2006 15:07:08 -0300 (ADT) From: "Marc G. Fournier" To: Steve Kargl In-Reply-To: <20060411043016.GA1866@troutmask.apl.washington.edu> Message-ID: <20060411150640.G1096@ganymede.hub.org> References: <20060410235910.F1096@ganymede.hub.org> <20060411002924.E1096@ganymede.hub.org> <20060411033619.GA1495@troutmask.apl.washington.edu> <20060411010839.Q1096@ganymede.hub.org> <20060411043016.GA1866@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ports@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: relocation R_X86_64_32 can not be used (Was: Re: (no subject)) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 18:07:12 -0000 On Mon, 10 Apr 2006, Steve Kargl wrote: > On Tue, Apr 11, 2006 at 01:09:07AM -0300, Marc G. Fournier wrote: >> 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. >> >> Same result: >> >> ===> Building for resin-2.1.17_1 >> (cd src/c/plugin; make) >> for dir in common apache2; do (cd $dir; make); done >> cc -c -I/usr/include -static -DNO_IDEA stream.c >> stream.c: In function `select_host': >> stream.c:1103: warning: cast from pointer to integer of different size >> cc -c -I/usr/include -static -DNO_IDEA registry.c >> cc -c -I/usr/include -static -DNO_IDEA config.c >> cc -c -I/usr/include -static -DNO_IDEA memory.c >> cc -shared -o common.o stream.o registry.o config.o memory.o > ^^^^^^^ > > This isn't -static. You said to add it to CFLAGS ... which variable defines -shared vs -static? ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664