All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: linking issues with ldap]
@ 2008-01-23 17:37 Guillaume Rousse
  2008-01-24  5:35 ` Ian Kent
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Rousse @ 2008-01-23 17:37 UTC (permalink / raw)
  To: autofs

[-- Attachment #1: Type: text/plain, Size: 114 bytes --]

Sending again, first attempt failed.
-- 
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

[-- Attachment #2: linking issues with ldap.eml --]
[-- Type: message/rfc822, Size: 1839 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 366 bytes --]

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.
-- 
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

[-- Attachment #2.1.2: autofs-5.0.3-ldap-linking.patch --]
[-- Type: text/x-patch, Size: 691 bytes --]

diff -p -up autofs-5.0.3/aclocal.m4.pthread autofs-5.0.3/aclocal.m4
--- autofs-5.0.3/aclocal.m4.pthread	2008-01-15 14:30:04.000000000 +0000
+++ autofs-5.0.3/aclocal.m4	2008-01-15 14:30:30.000000000 +0000
@@ -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> ],

[-- Attachment #3: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-24  5:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 17:37 [Fwd: linking issues with ldap] Guillaume Rousse
2008-01-24  5:35 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.