Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Oct 2008 18:14:43 GMT
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/128033: [ patch ] net/xmlrpc-c: libraries should be compiled with -fPIC
Message-ID:  <200810121814.m9CIEh9J091584@freefall.freebsd.org>
Resent-Message-ID: <200810121820.m9CIK28o091795@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810121814.m9CIEh9J091584>