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

Trouble building OpenLDAP on FreeBSD 4.3 with SASL



Hi,
 
I am having trouble building the latest OpenLDAP on FreeBSD with Cyrus SASL.
 
I installed Cyrus SASL 2.0.2 with no problems.
 
Then I ran "configure" for OpenLDAP with the following command:  "./configure --without-threads --with-cyrus_sasl"
I got the following error:
    checking for sasl.h... yes
    checking for sasl_client_init in -lsasl... no
    configure: error: Could not locate Cyrus SASL
 
I fixed this error by changing the linking options in the configure file from "-lsasl" to "-lsasl2", to compensate for the fact that Cyrus SASL 2.0.2 names its dynamic library file "libsasl2.so". After doing this, the configure ran with no problems. I can also run "make depend" with no problems.
 
However, when I do a "make", I get the compile errors listed below. My guess is that I'm using an unsupported version of Cyrus SASL. Can anyone help?
 
Thanks,
Dave Abouav
 
Entering subdirectory libldap
/bin/sh /usr/install_stuff/openldap-2.0.11/libtool  --mode=compile cc -g -O2 -I../../include -I../../include      -c cyrus.c
rm -f .libs/cyrus.lo
cc -g -O2 -I../../include -I../../include -c cyrus.c  -fPIC -DPIC -o .libs/cyrus.lo
cyrus.c: In function `sb_sasl_read':
cyrus.c:240: warning: passing arg 4 of `sasl_decode' from incompatible pointer type
cyrus.c: In function `sb_sasl_write':
cyrus.c:282: warning: passing arg 4 of `sasl_encode' from incompatible pointer type
cyrus.c: In function `ldap_int_sasl_open':
cyrus.c:416: `SASL_SECURITY_LAYER' undeclared (first use in this function)
cyrus.c:416: (Each undeclared identifier is reported only once
cyrus.c:416: for each function it appears in.)
cyrus.c:416: warning: passing arg 3 of `sasl_client_new' from incompatible pointer type
cyrus.c:416: warning: passing arg 5 of `sasl_client_new' from incompatible pointer type
cyrus.c:416: too few arguments to function `sasl_client_new'
cyrus.c:429: syntax error before `extprops'
cyrus.c:430: `extprops' undeclared (first use in this function)
cyrus.c: In function `ldap_int_sasl_bind':
cyrus.c:529: warning: passing arg 4 of `sasl_client_start' from incompatible pointer type
cyrus.c:529: warning: passing arg 5 of `sasl_client_start' from incompatible pointer type
cyrus.c:529: warning: passing arg 6 of `sasl_client_start' from incompatible pointer type
cyrus.c:529: too many arguments to function `sasl_client_start'
cyrus.c:607: warning: passing arg 5 of `sasl_client_step' from incompatible pointer type
cyrus.c:646: warning: passing arg 3 of `sasl_getprop' from incompatible pointer type
cyrus.c:651: `SASL_REALM' undeclared (first use in this function)
cyrus.c:651: warning: passing arg 3 of `sasl_getprop' from incompatible pointer type
cyrus.c:657: warning: passing arg 3 of `sasl_getprop' from incompatible pointer type
cyrus.c: In function `ldap_int_sasl_external':
cyrus.c:684: syntax error before `extprops'
cyrus.c:696: `extprops' undeclared (first use in this function)
cyrus.c: In function `ldap_int_sasl_get_option':
cyrus.c:871: warning: passing arg 3 of `sasl_getprop' from incompatible pointer type
cyrus.c: In function `ldap_int_sasl_set_option':
cyrus.c:917: syntax error before `extprops'
cyrus.c:930: `extprops' undeclared (first use in this function)
*** Error code 1
 
Stop in /usr/install_stuff/openldap-2.0.11/libraries/libldap.
*** Error code 1
 
Stop in /usr/install_stuff/openldap-2.0.11/libraries.
*** Error code 1
 
Stop in /usr/install_stuff/openldap-2.0.11.