Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 32706

Summary: missing "-lpthread" from linking line for libdb-4.1.25*
Product: Gentoo Linux Reporter: Ioan Marius Curelariu <icurelariu>
Component: [OLD] LibraryAssignee: Paul de Vrieze (RETIRED) <pauldv>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: I attached here an archive containing both the neccessary patch and the modified ebuild file that is using it

Description Ioan Marius Curelariu 2003-11-04 05:41:13 UTC
Due to missing of -lpthread from the line that links the libdb-4.1.25*, applications like perl that links agains libdb without explicitly linking pthread does not compile anymore.

This patch file I am copying to the rest of the mail will help solving the problem:

--- db-4.1.25.old/dist/Makefile.in	2003-10-19 12:50:05.903817864 +0300
+++ db-4.1.25/dist/Makefile.in	2003-10-19 12:31:45.000000000 +0300
@@ -57,7 +57,7 @@
 
 LDFLAGS=	@LDFLAGS@
 LIBS=		@LIBS@
-LIBSO_LIBS=	@LIBSO_LIBS@
+LIBSO_LIBS=	@LIBSO_LIBS@ $(LIBS)
 
 libdb=		libdb.a
 libso_base=	libdb
@@ -76,7 +76,7 @@
 CXX=		@MAKEFILE_CXX@
 CXXLINK=	@MAKEFILE_CXXLINK@
 XSOLINK=	@MAKEFILE_XSOLINK@
-LIBXSO_LIBS=	@LIBXSO_LIBS@
+LIBXSO_LIBS=	@LIBXSO_LIBS@ $(LIBS)
 
 libcxx=		libdb_cxx.a
 libxso_base=	libdb_cxx
@@ -92,7 +92,7 @@
 # Java support is optional and requires shared librarires.
 ##################################################
 CLASSPATH=	$(JAVA_CLASSTOP)
-LIBJSO_LIBS=	@LIBJSO_LIBS@
+LIBJSO_LIBS=	@LIBJSO_LIBS@ $(LIBS)
 
 JAR=		@JAR@
 JAVAC=		env CLASSPATH="$(CLASSPATH)" @JAVAC@
@@ -124,7 +124,7 @@
 # Tcl support is optional and requires shared libraries.
 ##################################################
 TCFLAGS=	@TCFLAGS@
-LIBTSO_LIBS=	@LIBTSO_LIBS@
+LIBTSO_LIBS=	@LIBTSO_LIBS@ $(LIBS)
 libtso_base=	libdb_tcl
 libtso=		$(libtso_base)-$(SOVERSION).@MODSUFFIX@
 libtso_static=	$(libtso_base)-$(SOVERSION).a
Comment 1 Ioan Marius Curelariu 2003-11-04 05:45:57 UTC
Created attachment 20251 [details, diff]
I attached here an archive containing both the neccessary patch and the modified ebuild file that is using it 

Maybe this can be used in order to create an db-4.1.25_p1-r4.ebuild, or
somthing like this ...
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2003-11-04 06:12:21 UTC
-r3 should allready fix this

*** This bug has been marked as a duplicate of 31292 ***