[Pkg-openldap-devel] [openldap] 01/17: lib uses threads, so it has to link with -pthreads; fixes RC bug #304549

Timo Aaltonen tjaalton-guest at alioth.debian.org
Thu Oct 10 05:35:30 UTC 2013


This is an automated email from the git hooks/post-receive script.

tjaalton-guest pushed a commit to annotated tag 2.2.23-3
in repository openldap.

commit 3399823d8664f38fa584fdeef03a7bf4ed06bd00
Author: Steve Langasek <vorlon at debian.org>
Date:   Sat Apr 16 08:50:08 2005 +0000

    lib uses threads, so it has to link with -pthreads; fixes RC bug #304549
---
 debian/changelog                |   11 +++++++++++
 libraries/libldap_r/Makefile.in |    2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index abcc530..c9f2cd3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+openldap2.2 (2.2.23-3) unstable; urgency=low
+
+  Steve Langasek <vorlon at debian.org>
+  * libraries/libldap_r/Makefile.in: Code that uses pthreads *must* be
+    linked with -pthread, even if it's a library; without this, the
+    libldap_r library ends up with dangling unversioned reference to
+    pthread_create() which gets resolved to a wrong version that causes
+    segfaults on 64-bit platforms.  Closes: #304549.
+
+ -- Steve Langasek <vorlon at debian.org>  Sat, 16 Apr 2005 01:45:55 -0700
+
 openldap2.2 (2.2.23-2) unstable; urgency=low
 
   * debian/configure.options: Change localstatedir to /var from /var/run
diff --git a/libraries/libldap_r/Makefile.in b/libraries/libldap_r/Makefile.in
index 7e03fcc..e8a177e 100644
--- a/libraries/libldap_r/Makefile.in
+++ b/libraries/libldap_r/Makefile.in
@@ -54,7 +54,7 @@ XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
 XXXLIBS = $(LTHREAD_LIBS)
 NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
-UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
+UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS)
 
 .links : Makefile
 	@for i in $(XXSRCS); do \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list