From owner-freebsd-amd64@FreeBSD.ORG Sun Sep 12 17:40:29 2004 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5114A16A4DF for ; Sun, 12 Sep 2004 17:40:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 295AE43D2D for ; Sun, 12 Sep 2004 17:40:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8CHeTaB009225 for ; Sun, 12 Sep 2004 17:40:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8CHeT7A009224; Sun, 12 Sep 2004 17:40:29 GMT (envelope-from gnats) Resent-Date: Sun, 12 Sep 2004 17:40:29 GMT Resent-Message-Id: <200409121740.i8CHeT7A009224@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pete French Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB6A916A4CE for ; Sun, 12 Sep 2004 17:39:03 +0000 (GMT) Received: from smtp-out1.blueyonder.co.uk (smtp-out1.blueyonder.co.uk [195.188.213.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDD1943D2D for ; Sun, 12 Sep 2004 17:39:02 +0000 (GMT) (envelope-from pete@twisted.org.uk) Received: from skerry.twisted.org.uk ([82.35.80.30]) by smtp-out1.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sun, 12 Sep 2004 18:39:26 +0100 Received: from [192.168.4.2] (helo=frenic.drayhouse) by skerry.twisted.org.uk with esmtp (Exim 4.42 (FreeBSD)) id 1C6YJZ-000Juh-C6 for FreeBSD-gnats-submit@freebsd.org; Sun, 12 Sep 2004 18:39:01 +0100 Received: from pete by frenic.drayhouse with local (Exim 4.42 (FreeBSD)) id 1C6YJZ-0000H0-59 for FreeBSD-gnats-submit@freebsd.org; Sun, 12 Sep 2004 18:39:01 +0100 Message-Id: Date: Sun, 12 Sep 2004 18:39:01 +0100 From: Pete French To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: amd64/71674: static libraries cannot be linked when building shared libraries X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pete French List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2004 17:40:29 -0000 >Number: 71674 >Category: amd64 >Synopsis: static libraries cannot be linked when building shared libraries >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 12 17:40:28 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Pete French >Release: FreeBSD 5.3-BETA4 amd64 >Organization: >Environment: System: FreeBSD frenic.drayhouse 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Sun Sep 12 18:04:01 BST 2004 pete@frenic.drayhouse:/usr/obj/usr/src/sys/FRENIC amd64 >Description: The supplied /usr/lib/libobjc.a has been compiled in such a way that trying to link when making a shared library gives the following error: /usr/bin/ld: /usr/lib/libobjc.a(Protocol.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/lib/libobjc.a: could not read symbols: Bad value This did not happen on pre BETA versions. I am unsure as to whether the linker has changed or what. This may apply to all the static libraries in /usr/lib though! I have tried with libz.a and libufs.a with the same error. >How-To-Repeat: In this instance I was trying to build the GNUstep base libraries. But trying to make a very simple shared library, linking against static libraries in /usr/lib, will show it up. >Fix: Preseumably fix buildworld so that static libraries are compiled with -fPIC ? This also applies to static libraries built from ports. >Release-Note: >Audit-Trail: >Unformatted: