From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 30 23:10:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2A22106568B for ; Mon, 30 Nov 2009 23:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 965EB8FC19 for ; Mon, 30 Nov 2009 23:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAUNA14g069047 for ; Mon, 30 Nov 2009 23:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAUNA1DX069046; Mon, 30 Nov 2009 23:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 30 Nov 2009 23:10:01 GMT Resent-Message-Id: <200911302310.nAUNA1DX069046@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Reilly Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7621106566B for ; Mon, 30 Nov 2009 23:03:49 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from nschwmtas02p.mx.bigpond.com (nschwmtas02p.mx.bigpond.com [61.9.189.140]) by mx1.freebsd.org (Postfix) with ESMTP id 74F748FC12 for ; Mon, 30 Nov 2009 23:03:48 +0000 (UTC) Received: from nschwotgx01p.mx.bigpond.com ([124.188.161.100]) by nschwmtas02p.mx.bigpond.com (InterMail vM.7.05.02.08 201-2174-114-118-20080528) with ESMTP id <20091130230347.OMD2264.nschwmtas02p.mx.bigpond.com@nschwotgx01p.mx.bigpond.com> for ; Mon, 30 Nov 2009 23:03:47 +0000 Received: from areilly.bpa.nu ([124.188.161.100]) by nschwotgx01p.mx.bigpond.com with ESMTP id <20091130230346.DMII1743.nschwotgx01p.mx.bigpond.com@areilly.bpa.nu> for ; Mon, 30 Nov 2009 23:03:46 +0000 Received: (qmail 74531 invoked by uid 501); 30 Nov 2009 23:03:45 -0000 Message-Id: <20091130230345.74530.qmail@areilly.bpa.nu> Date: 30 Nov 2009 23:03:45 -0000 From: Andrew Reilly To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/141038: cups-base (etc) doesn't link on amd64 because of -pie -fPIE X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrew Reilly List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2009 23:10:02 -0000 >Number: 141038 >Category: ports >Synopsis: cups-base (etc) doesn't link on amd64 because of -pie -fPIE >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 30 23:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andrew Reilly >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD duncan.reilly.home 9.0-CURRENT FreeBSD 9.0-CURRENT #6: Sat Nov 28 09:41:57 EST 2009 root@duncan.reilly.home:/usr/obj/usr/src/sys/DUNCAN amd64 >Description: Specifically: ke[1]: Entering directory `/usr/ports/print/cups-base/work/cups-1.4.2/backend' echo Linking ipp... Linking ipp... cc -L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -L/usr/local/lib/ -L/usr/local/lib -Wl,-R/usr/local/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -o ipp ipp.o libbackend.a -lcups -L/usr/local/lib -lgnutls -pthread -lm -lcrypt /usr/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/lib/crt1.o: could not read symbols: Bad value gmake[1]: *** [ipp] Error 1 gmake[1]: Leaving directory `/usr/ports/print/cups-base/work/cups-1.4.2/backend' gmake: *** [all] Error 1 *** Error code 1 Stop in /usr/ports/print/cups-base. Fix this one and there are a bunch of others that follow (all of the filters). This can be made to work by repeating the link step without the -pie -fPIE switches. (manually) >How-To-Repeat: Be on an amd64 machine and try to build any of cups. >Fix: Work-around: re-compile without -pie -fPIE switches. Not sure how to convince config to do that properly, since our gcc (in -current) seems to support them well enough to get through configure, but not well enough to link. >Release-Note: >Audit-Trail: >Unformatted: