[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Problems including cyrus-sasl in openldap 2.1.22
- To: openldap-software@OpenLDAP.org
- Subject: Problems including cyrus-sasl in openldap 2.1.22
- From: Mikael Grehn <mikael@envilogg.se>
- Date: Mon, 20 Oct 2003 16:38:34 +0200
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
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