[Kroupware] Kolab installation

Lutz Badenheuer kroupware@mail.kde.org
Mon, 18 Nov 2002 02:21:34 +0100


Hi, 

Am Sonntag, 17. November 2002 12:58 schrieb Ryan Esty:
> If line 97 is:
> 	int ldap_search_ext_s(LDAP *ldap, char *base, int scope, char
> *filter, can you include the definition of LDAP there could be a
> problem with that but I don't have the source code in front of me
> so I don't know.  When ever I see a problem like this I start to
> look at a user defined type but I could be completely wrong too.

I've seen this error before; it normally occurs if LDAP is not 
defined. 

Assuming this, I found something strange: in file apr_ldap.h.in, I'd 
seen the lines 

@ldap_h@
@lber_h@
@ldap_ssl_h@

I didn't find anything in the autoconf generated apr_ldap.h file. I 
think these lines don't expand properly, maybe not initialized?

My patch is attached. Note that this only makes the whole thing 
compile, I've not tested if it really does work afterwards. Maybe 
someone who knows autoconf better than I do should fix this. 

YMMV, 
Lutz 

Attached the patch. YMMV, you have been warned. 
--snip-----
diff -u -r --new-file \ 
httpd-2.0.43.orig/srclib/apr-util/include/apr_ldap.h.in \ 
httpd-2.0.43/srclib/apr-util/include/apr_ldap.h.in
--- httpd-2.0.43.orig/srclib/apr-util/include/apr_ldap.h.in     Wed \
Mar 13 21:40:48 2002
+++ httpd-2.0.43/srclib/apr-util/include/apr_ldap.h.in  Mon Nov 18 \ 
00:48:00 2002
@@ -84,7 +84,9 @@
 #@apu_has_ldap_starttls@       APU_HAS_LDAP_STARTTLS

 /* LDAP header files */
+#include <ldap.h>
 @ldap_h@
+#include <lber.h>
 @lber_h@
 @ldap_ssl_h@

diff -u -r --new-file \ 
httpd-2.0.43.orig/srclib/apr-util/ldap/Makefile.in \ 
httpd-2.0.43/srclib/apr-util/ldap/Makefile.in
--- httpd-2.0.43.orig/srclib/apr-util/ldap/Makefile.in  Thu May  9 \ 
00:00:58 2002
+++ httpd-2.0.43/srclib/apr-util/ldap/Makefile.in       Mon Nov 18 \ 
01:14:57 2002
@@ -1,6 +1,6 @@
 VPATH = @srcdir@

-INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ @APRUTIL_INCLUDES@
+INCLUDES = @APRUTIL_PRIV_INCLUDES@ @APR_INCLUDES@ \
@APRUTIL_INCLUDES@ -I/kolab/include

 TARGETS = apr_ldap_compat.lo

--snap-----

-- 
Lutz Badenheuer     | IT--Consulting, Development, Networksolutions
luke@the-web-ac.com | C/C++, OO-Perl, sh | Linux, SCO UNIX, Solaris