Sam,
I don't use ldap, however ldapaddressbook failed to configure
and compile. Apparently, solaris has a problem with ldap.h:
it cannot be compiled unless lber.h is included before it.
Perhaps the patch attached may work...
diff -du courier-0.53.1.20060318/ldapaddressbook/configure.in ./configure.in
--- courier-0.53.1.20060318/ldapaddressbook/configure.in 2006-03-04
15:20:34.000000000 +0100
+++ ./configure.in 2006-03-27 12:55:44.994201000 +0200
@@ -34,8 +34,13 @@
then
HAVE_OPENLDAP=0
-AC_CHECK_HEADER(ldap.h,
- [ HAVE_OPENLDAP=1 ])
+AC_CHECK_HEADERS([lber.h])
+AC_CHECK_HEADERS([ldap.h],
+ [ HAVE_OPENLDAP=1 ],,[
+#if HAVE_LBER_H
+#include <lber.h>
+#endif
+])
if test "$HAVE_OPENLDAP" = 1
then
@@ -43,6 +48,9 @@
LIBS="$LIBS -lldap"
AC_TRY_LINK([
#include <stdio.h>
+#if HAVE_LBER_H
+#include <lber.h>
+#endif
#include <ldap.h>
],
[
diff -du courier-0.53.1.20060318/ldapaddressbook/libldapsearch.h
./libldapsearch.h
--- courier-0.53.1.20060318/ldapaddressbook/libldapsearch.h 2006-02-18
23:18:04.000000000 +0100
+++ ./libldapsearch.h 2006-03-27 13:01:23.674201000 +0200
@@ -15,9 +15,12 @@
** Encapsulate interface for search address book in LDAP
*/
+#include "config.h"
+#if HAVE_LBER_H
+#include <lber.h>
+#endif
#include <ldap.h>
#include <stdio.h>
-#include "config.h"
struct ldapsearch {