cURL / Mailing Lists / curl-library / Single Mail

curl-library

how to build curl without ldap or ldaps on windows platform

From: <balloon121_at_gmail.com>
Date: Wed, 3 Aug 2011 16:56:59 +0800

Hi,
     I need to build libcurl.lib with openssl, but without ldap or ldaps.

     On linux platform, I have finished this job by :

/configure --disable-shared --enable-static --with-ssl=/usr/local/ssl
--without-zlib --disable-ldap --disable-ldaps
make

    But to windows, I have edit a batch file build.bat as:

call "c:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvars32.bat
x86_amd64"
set CFG=release-ssl
set OPENSSL_PATH=C:\cindy\openssl-0.9.8k\openssl-0.9.8k
nmake.exe -f Makefile.vc8

 And, add these lines to curl-7.21.3\lib\Makefile.vc8 :

CURL_DISABLE_LDAPS = true
CURL_DISABLE_LDAP = true

Then I run the build.bat, generate libcurl.lib. But, when I use this
libcurl.lib in another project, I still get error when compile my project
like:

libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_unbind_s referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_msgfree referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_next_entry referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ber_free referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_next_attribute referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_memfree referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_value_free_len referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_get_values_len referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_first_attribute referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_get_dn referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_first_entry referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_search_s referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_simple_bind_s referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_init referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_set_option referenced in function Curl_ldap
libcurl.lib(ldap.obj) : error LNK2019: unresolved external symbol
__imp_ldap_err2string referenced in function Curl_ldap

That means libcurl.lib is still compiled with ldap, right? How can I compile
libcurl.lib without ldap and ldaps then? Thanks for any suggestion.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-03