2 messages in net.sourceforge.lists.courier-users[courier-users] ldap on Solaris compi...
FromSent OnAttachments
Alessandro VeselyMar 27, 2006 10:12 am.patch
Sam VarshavchikMar 27, 2006 7:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] ldap on Solaris compile errorActions...
From:Alessandro Vesely (ves@tana.it)
Date:Mar 27, 2006 10:12:39 am
List:net.sourceforge.lists.courier-users
Attachments:

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 {