From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 12 18:20:03 2008 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 4512D1065690 for ; Sun, 12 Oct 2008 18: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 1FF6D8FC22 for ; Sun, 12 Oct 2008 18: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 m9CIK244091796 for ; Sun, 12 Oct 2008 18:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9CIK28o091795; Sun, 12 Oct 2008 18:20:02 GMT (envelope-from gnats) Resent-Date: Sun, 12 Oct 2008 18:20:02 GMT Resent-Message-Id: <200810121820.m9CIK28o091795@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, Roman Bogorodskiy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E4B21065692 for ; Sun, 12 Oct 2008 18:14:43 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8BD1E8FC0C for ; Sun, 12 Oct 2008 18:14:43 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from freefall.freebsd.org (novel@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9CIEh26091585 for ; Sun, 12 Oct 2008 18:14:43 GMT (envelope-from novel@freefall.freebsd.org) Received: (from novel@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9CIEh9J091584; Sun, 12 Oct 2008 18:14:43 GMT (envelope-from novel) Message-Id: <200810121814.m9CIEh9J091584@freefall.freebsd.org> Date: Sun, 12 Oct 2008 18:14:43 GMT From: Roman Bogorodskiy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/128033: [ patch ] net/xmlrpc-c: libraries should be compiled with -fPIC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Roman Bogorodskiy List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2008 18:20:03 -0000 >Number: 128033 >Category: ports >Synopsis: [ patch ] net/xmlrpc-c: libraries should be compiled with -fPIC >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 12 18:20:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Roman Bogorodskiy >Release: FreeBSD 7.1-PRERELEASE i386 >Organization: >Environment: >Description: It's not possible to link with static xmlrpc-c libraries - linker complains that they should be build with -fPIC. The attached patch obtained from gentoo portage fixes the problem. PS The thing I cannot figure out: why does it build only static version of C++ libraries? >How-To-Repeat: >Fix: --- xmlrpc-c-pic.diff begins here --- Index: files/patch-src-cpp-Makefile =================================================================== RCS file: files/patch-src-cpp-Makefile diff -N files/patch-src-cpp-Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src-cpp-Makefile 12 Oct 2008 18:05:15 -0000 @@ -0,0 +1,11 @@ +--- src/cpp/Makefile.orig 2008-10-12 21:53:42.000000000 +0400 ++++ src/cpp/Makefile 2008-10-12 21:53:51.000000000 +0400 +@@ -139,7 +139,7 @@ + # RULES TO COMPILE OBJECT MODULES FOR LIBRARIES + #----------------------------------------------------------------------------- + +-CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) ++CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) -fPIC + + XmlRpcCpp.o:%.o:%.cpp + $(CXX) -c $(BASIC_INCLUDES) $(CXXFLAGS) $< --- xmlrpc-c-pic.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: