Skip to contentSkip to conversation

[Fwd: linking issues with ldap]

Fwd: linking issues with ldap Guillaume Rousse 2 participants 2 messages Jan 23, 2008 – Jan 24, 2008 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Sending again, first attempt failed.

Signature · 3 lines
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

Hello list.

Latest release (5.0.3) attempt to link against libldap_r, and fails on mandriva because of unresolved pthread symbols. However, according to ldap maintainer, libldap_r is supposed to be a private library. Hence autofs should use -lldap, not -lldap_r. Attached patch fix this.

Signature · 3 lines
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62
aclocal.m4 renamed from aclocal.m4.pthread +2 -2
diff -p -up autofs-5.0.3/aclocal.m4.pthread autofs-5.0.3/aclocal.m4
@@ -250,7 +250,7 @@ AC_DEFUN([AF_CHECK_FUNC_LDAP_CREATE_PAGE
 
 # save current ldflags
 af_check_ldap_create_page_control_save_ldflags="$LDFLAGS"
-LDFLAGS="$LDFLAGS -lldap_r"
+LDFLAGS="$LDFLAGS -lldap"
 
 AC_TRY_LINK(
   [ #include <ldap.h> ],
@@ -283,7 +283,7 @@ AC_DEFUN([AF_CHECK_FUNC_LDAP_PARSE_PAGE_
 
 # save current ldflags
 af_check_ldap_parse_page_control_save_ldflags="$LDFLAGS"
-LDFLAGS="$LDFLAGS -lldap_r"
+LDFLAGS="$LDFLAGS -lldap"
 
 AC_TRY_LINK(
   [ #include <ldap.h> ],

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#1 lore raw
Quoted 14 lines · Guillaume Rousse

Sending again, first attempt failed.
email message attachment (linking issues with ldap.eml)

Quoted 12 lines

-------- Forwarded Message --------
From: Guillaume Rousse <[email protected]>
To: [email protected]
Subject: linking issues with ldap
Date: Thu, 17 Jan 2008 16:48:42 +0100

Hello list.

Latest release (5.0.3) attempt to link against libldap_r, and fails on mandriva because of unresolved pthread symbols. However, according to ldap maintainer, libldap_r is supposed to be a private library. Hence autofs should use -lldap, not -lldap_r. Attached patch fix this.

Think you missed one.
Can you try this patch and let me know how it goes please.
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-correct-ldap-lib.patch

Ian