From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 14 15:20:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3B8DFAD for ; Wed, 14 Nov 2012 15:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A8C868FC17 for ; Wed, 14 Nov 2012 15:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAEFK0nP023095 for ; Wed, 14 Nov 2012 15:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAEFK0tR023094; Wed, 14 Nov 2012 15:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 14 Nov 2012 15:20:00 GMT Resent-Message-Id: <201211141520.qAEFK0tR023094@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, Takeshi Taguchi Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB3D9E6A for ; Wed, 14 Nov 2012 15:13:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 995928FC14 for ; Wed, 14 Nov 2012 15:13:51 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAEFDpE9082049 for ; Wed, 14 Nov 2012 15:13:51 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qAEFDpRx082048; Wed, 14 Nov 2012 15:13:51 GMT (envelope-from nobody) Message-Id: <201211141513.qAEFDpRx082048@red.freebsd.org> Date: Wed, 14 Nov 2012 15:13:51 GMT From: Takeshi Taguchi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/173627: [patch] database/db42 clang issue X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 15:20:01 -0000 >Number: 173627 >Category: ports >Synopsis: [patch] database/db42 clang issue >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: Wed Nov 14 15:20:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Takeshi Taguchi >Release: FreeBSD-CURRENT >Organization: >Environment: FreeBSD PandaMother-01 10.0-CURRENT FreeBSD 10.0-CURRENT #2: Mon Nov 12 06:56:4\ 8 JST 2012 root@PandaMother-01:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I could not compile database/db42 with clang. with gcc, it was successed. >How-To-Repeat: # cd /usr/ports/database/db42 # make install ..[snip]... /usr/bin/ld: .libs/cxx_db.o: relocation R_X86_64_32S against `_ZTV2Db' can not \ be used when making a shared object; recompile with -fPIC .libs/cxx_db.o: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation) *** [libdb_cxx-4.2.la] Error code 1 Stop in /usr/ports/databases/db42/work/db-4.2.52/build_unix. *** [do-build] Error code 1 >Fix: apply attached patch to databases/db42. db42 use its own ./libtool rather than out $(LOCALBASE)/bin/libtool. THIS is a probrem. attached patch will fix this issue. Patch attached with submission follows: --- files/patch-dist::configure.orig 2012-11-13 06:09:38.000000000 +0900 +++ files/patch-dist::configure 2012-11-13 06:17:55.000000000 +0900 @@ -1,7 +1,16 @@ ---- ../dist/configure.orig Wed Dec 5 13:14:02 2001 -+++ ../dist/configure Wed Dec 5 13:24:01 2001 -@@ -8794,10 +8794,10 @@ - INSTALLER="\$(LIBTOOL) --mode=install cp" +--- ../dist/configure.orig 2012-11-13 06:08:49.000000000 +0900 ++++ ../dist/configure 2012-11-13 06:16:09.000000000 +0900 +@@ -20046,7 +20046,7 @@ + + + SOFLAGS="-rpath \$(libdir)" +-LIBTOOL_PROG="${SHELL} ./libtool" ++LIBTOOL_PROG="$prefix/bin/libtool" + + # Set SOSUFFIX and friends + +@@ -20138,13 +20138,13 @@ + INSTALLER="\$(LIBTOOL) --mode=install cp -p" MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}" -MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version" @@ -12,4 +21,8 @@ +MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -version-info ${DB_VERSION_MINOR}" MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}" - # Configure for shared libraries, static libraries, or both. If both are +-LIBTOOL="\$(SHELL) ./libtool" ++LIBTOOL="$prefix/bin/libtool" + + case "$host_os" in + cygwin*) >Release-Note: >Audit-Trail: >Unformatted: