[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: unable to install openldap 2.1



On Tue, 2003-01-21 at 07:17, Vincent FONTENEAU wrote:
> I'm using OpenBSD 3.2 and i would like to install openldap 2.1.12 with 
> sources. (i'm not using ported packages cause i'm not sure that all 
> compilation options are good). I've already installed db 4.1, Kerberos V 
> and i've got problems to compile SASL 2.1.10.
> error compilation:
> 
> */bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -I../include -I../lib -I../sasldb  -I/usr/local/include
> -I/usr/local/include  -Wall -W -Wall -g -O2 -c otp.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../lib -I../sasldb 
> -I/usr/local/include -I/usr/local/include -Wall -W -Wall
>  -g -O2 -c otp.c -o otp.o
> In file included from ../include/saslplug.h:14,
>                  from otp.c:60:
> ../include/hmac-md5.h:11: syntax error before `MD5_CTX'
> In file included from otp.c:60:
> ../include/saslplug.h:69: syntax error before `*'
> ../include/saslplug.h:70: syntax error before `*'
> ../include/saslplug.h:71: syntax error before `MD5_CTX'
> *** Error code 1
> 
> Stop in /home/ftp/opensource/cyrus-sasl/cyrus-sasl-2.1.10/plugins.
> *** Error code 1
> 
> Stop in /home/ftp/opensource/cyrus-sasl/cyrus-sasl-2.1.10 (line 274 of 
> Makefile).
> *** Error code 1*
> 
> with ./configure options:
> 
> *./configure --prefix=/usr/local --sysconfdir=/etc/sasl --disable-java 
> --localstatedir=/var/sasl --with-dbpath=
> /usr/local --with-dblib=berkeley with-bdb-libdir=/usr/local/lib 
> --with-bdb-incdir=/usr/local/include --with-saslauth=/usr/l
> ocal --disable-digest*
> 
> is somebody success in installing openldap with sasl, or is there good 
> docs to do it ?
> 

There are no docs of yet for doing this, though your best starting point
is to download a copy of the openbsd port and modify it to 2.1.12

The specific error you are seeing relates to the OpenSSL in tree, which
needs the internal MD5 engine suppressed (the newer OpenSSL's wish to
depreciate the libdes api).

Below is the specific patch you need, although consult the cyrus-sasl2
port for additional info.

--chris
cmaxwell@themanor.net



--- plugins/otp.c.orig  Mon Oct 14 21:39:43 2002
+++ plugins/otp.c       Tue Dec 10 09:22:02 2002
@@ -56,7 +56,9 @@
 #include <openssl/evp.h>
 
 #include <sasl.h>
+#if OPENSSL_VERSION_NUMBER < 0x00907000L
 #define MD5_H  /* suppress internal MD5 */
+#endif
 #include <saslplug.h>
 
 #include "plugin_common.h"