WLDAP32: link to the reentrant version of libldap

Robert Reif reif at earthlink.net
Sun Dec 18 08:13:55 CST 2005


Hans Leidekker wrote:

>On Thursday 15 December 2005 01:52, Robert Reif wrote:
>
>  
>
>>>>This patch breaks builds on RH9 and appears to be responsible for the
>>>>build breakage on http://www.astro.gla.ac.uk/users/paulm/WRT/wrt.php
>>>>        
>>>>
>
>  
>
>>nm shows that the symbols are in libldap.so but not libldap_r.so.
>>    
>>
>
>Can you try this patch? 
>
> -Hans
>  
>
Adding this fixes it for me but you may need to check for 
ldap_parse_reference also.
-------------- next part --------------
Index: parse.c
===================================================================
RCS file: /home/wine/wine/dlls/wldap32/parse.c,v
retrieving revision 1.2
diff -p -u -r1.2 parse.c
--- parse.c	2 Dec 2005 13:15:16 -0000	1.2
+++ parse.c	18 Dec 2005 14:02:35 -0000
@@ -130,7 +130,7 @@ ULONG ldap_parse_referenceW( WLDAP32_LDA
     PWCHAR **referrals )
 {
     ULONG ret = LDAP_NOT_SUPPORTED;
-#ifdef HAVE_LDAP
+#if defined(HAVE_LDAP) && defined(HAVE_LDAP_COUNT_REFERENCES)
     char **referralsU = NULL;
 
     TRACE( "(%p, %p, %p)\n", ld, message, referrals );


More information about the wine-devel mailing list