* [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
* Re: [Fwd: linking issues with ldap]
2008-01-23 17:37 [Fwd: linking issues with ldap] Guillaume Rousse
@ 2008-01-24 5:35 ` Ian Kent
0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2008-01-24 5:35 UTC (permalink / raw)
To: Guillaume Rousse; +Cc: autofs
On Wed, 2008-01-23 at 18:37 +0100, Guillaume Rousse wrote:
> Sending again, first attempt failed.
> email message attachment (linking issues with ldap.eml)
> > -------- Forwarded Message --------
> > From: Guillaume Rousse <Guillaume.Rousse@inria.fr>
> > To: autofs@linux.kernel.org
> > 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
^ 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.