curl-library
Cannot find LDAP symbols while statically linking with CURL
Date: Thu, 2 Jun 2011 20:42:12 -0400
Hi. I'm using curl version 7.21.6 running on a Solaris 10 box.
I'm trying to build a stand-alone executable to deliver so I would like to
statically link CURL with my main() program.
When I try to link it, I get numerous undefined symbols, many of them LDAP
related. (See below)
Is there a static library that I should be linking with that will give me
these symbols?
Currently my linker line includes "-Bstatic -lcrypto -lssl -lssh2"
Undefined first referenced
symbol in file
ldap_first_entry
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
inflate
/home/myHome/CURL/lib/libcurl.a(libcurl_la-content_encoding.o)
PEM_read_bio_DSAPrivateKey
/home/myHome/SSH2/lib/libssh2.a(openssl.o)
ldap_err2string
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_next_entry
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
deflateEnd /home/myHome/SSH2/lib/libssh2.a(comp.o)
inflateEnd
/home/myHome/CURL/lib/libcurl.a(libcurl_la-content_encoding.o)
ldap_msgfree
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
PEM_read_bio_PrivateKey
/home/myHome/SSH2/lib/libssh2.a(openssl.o)
OPENSSL_add_all_algorithms_noconf
/home/myHome/SSH2/lib/libssh2.a(global.o)
ldap_memfree
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_get_values_len
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_get_dn
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_next_attribute
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_unbind_s
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_init
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_first_attribute
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_search_s
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_free_urldesc
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
inflateInit2_
/home/myHome/CURL/lib/libcurl.a(libcurl_la-content_encoding.o)
deflate /home/myHome/SSH2/lib/libssh2.a(comp.o)
ldap_simple_bind_s
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
deflateInit_ /home/myHome/SSH2/lib/libssh2.a(comp.o)
zlibVersion
/home/myHome/CURL/lib/libcurl.a(libcurl_la-content_encoding.o)
ber_free
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_url_parse
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
inflateInit_
/home/myHome/CURL/lib/libcurl.a(libcurl_la-content_encoding.o)
ldap_set_option
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
ldap_value_free_len
/home/myHome/CURL/lib/libcurl.a(libcurl_la-ldap.o)
PEM_read_bio_RSAPrivateKey
/home/myHome/SSH2/lib/libssh2.a(openssl.o)
- Saqib
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-03