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

Problems including cyrus-sasl in openldap 2.1.22



Hello again,

Another problem has occured when trying to include cyrus-sasl-2.1.15 together with openldap 2.1.22 (and db-4.1.25.NC) on W2K op and Visual C++ 6 environment. Including Berkeley 4.1.25 NC (Without strong cryptography) works fine.

Since this is directly an openldap problem (cyrus-sasl compiles perfectly as stand-alone library) I decided that this question was more suitable for the openldap-software mailing list than for the cyrus-list. Hopefully this was the correct decision.

Downloaded cyrus-sasl-2.1.15 and followed the "./cyrus-sasl-2.1.15/doc/windows.html" instructions using Makefile under "./cyrus-sasl-2.1.15/lib" folder using "nmake /f NTMakefile" (and "nmake /f NTMakefile CFG=Debug" for Debug release)

Included ".\cyrus-sasl-2.1.15\include" and ".\cyrus-sasl-2.1.15\lib" in Visual Tools-Options in corresponding places.
I could note that HAVE_SASL_H and HAVE_CYRUS_SASL are defined in portable.nt and that I have relinked the backend to myown backend.

In sasl.c I had to change the line 28 from # include <sasl/saslplug.h>
to # include <saslplug.h>


Tried to compile openLdap project and get the following external errors:

--------------------Configuration: slapd - Win32 Debug--------------------
Linking...
libslapd.lib(sasl.obj) : error LNK2001: unresolved external symbol _prop_set
libslapd.lib(sasl.obj) : error LNK2001: unresolved external symbol _prop_request
libslapd.lib(sasl.obj) : error LNK2001: unresolved external symbol _prop_getnames

I found something in archive concerning this at http://www.openldap.org/lists/openldap-software/200301/msg00744.html but when fixing some sasl-files accordning to this I still got errors:

--------------------Configuration: slapd - Win32 Debug--------------------
Compiling resources...
Compiling...
main.c
nt_svc.c
operational.c
result.c
Linking...
libslapd.lib(sasl.obj) : error LNK2001: unresolved external symbol __imp__prop_set
libslapd.lib(sasl.obj) : error LNK2001: unresolved external symbol __imp__prop_request
libslapd.lib(sasl.obj) : error LNK2001: unresolved external symbol __imp__prop_getnames

My definitions in prop.h are like:
	LIBSASL_API int prop_request(struct propctx *ctx, const char **names);
i.e. I added LIBSASL_API infront of the functions that couldnt be found.

Anyone else experienced this?
Fixable?

Greatful for any hints or help.

Sincerely
Mikael Grehn
Systems Engineer
Envilogg DB