ports/173627: [patch] database/db42 clang issue
Takeshi Taguchi
taguchi at ff.iij4u.or.jp
Wed Nov 14 15:20:01 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list