From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 2 00:20:03 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 ECF82106564A for ; Thu, 2 Apr 2009 00:20:03 +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 C65F28FC24 for ; Thu, 2 Apr 2009 00:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n320K3up095574 for ; Thu, 2 Apr 2009 00:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n320K3de095572; Thu, 2 Apr 2009 00:20:03 GMT (envelope-from gnats) Resent-Date: Thu, 2 Apr 2009 00:20:03 GMT Resent-Message-Id: <200904020020.n320K3de095572@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, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 780C71065679 for ; Thu, 2 Apr 2009 00:16:32 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id 025F68FC1E for ; Thu, 2 Apr 2009 00:16:31 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LpAbe-0003Up-Re; Thu, 02 Apr 2009 04:16:30 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 29BD6129CC; Thu, 2 Apr 2009 04:16:34 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id BCD3110883C; Thu, 2 Apr 2009 04:16:24 +0400 (MSD) Message-Id: <20090402001624.BCD3110883C@hades.panopticon> Date: Thu, 2 Apr 2009 04:16:24 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: krion@FreeBSD.org Subject: ports/133290: [PATCH] devel/pcre: doesn't use -fPIC for static libraries on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 00:20:04 -0000 >Number: 133290 >Category: ports >Synopsis: [PATCH] devel/pcre: doesn't use -fPIC for static libraries on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 02 00:20:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Mar 21 18:50:30 MSK 2009 >Description: Each pcre source is built twice, so one object file goes into shared library, and another into static one. However, the object files the go into static libs are built without -fPIC, which make it impossible to link other code with static pcre library on amd64 (and other 64 bit archs is suppose). The example is lang/qscheme which is broken on amd64 because of that. --- from pcre build log: ===> Building for pcre-7.8 make all-am /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -O2 -fno-strict-aliasing -pipe -march=nocona -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c -o pcre_compile.lo pcre_compile.c mkdir .libs cc -DHAVE_CONFIG_H -I. -O2 -fno-strict-aliasing -pipe -march=nocona -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c pcre_compile.c -fPIC -DPIC -o .libs/pcre_compile.o cc -DHAVE_CONFIG_H -I. -O2 -fno-strict-aliasing -pipe -march=nocona -MT pcre_compile.lo -MD -MP -MF .deps/pcre_compile.Tpo -c pcre_compile.c -o pcre_compile.o >/dev/null 2>&1 mv -f .deps/pcre_compile.Tpo .deps/pcre_compile.Plo --- --- from qscheme error log: cc -DHAVE_CONFIG_H -I. -I. -I. -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -I/usr/local/include -o regex.so -shared -fPIC -I/usr/local/include ./regex.c /usr/local/lib/libpcre.a /usr/bin/ld: /usr/local/lib/libpcre.a(pcre_compile.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpcre.a: could not read symbols: Bad value gmake[2]: *** [regex.so] Error 1 gmake[2]: Leaving directory `/usr/work/usr/home/amdmi3/qscheme/work/qscheme-0.5.1' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/work/usr/home/amdmi3/qscheme/work/qscheme-0.5.1' gmake: *** [all-recursive-am] Error 2 *** Error code 1 Stop in /usr/home/amdmi3/qscheme. --- Port maintainer (krion@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: