cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Cannot Create Truly Static Program With cURL

From: <brandonshw_at_aol.com>
Date: Thu, 7 Jul 2011 16:03:23 -0400 (EDT)

Thanks. I do use only HTTP. Which of those options you included has the effect of making sure that everything is linked in statically to the libcurl.a that I produce?

Here is the log with some irrelevant company sensitive file names omitted, but all of the errors showing:

[root_at_linux Proj]# make

.....

g++ -static <list of .o files> -o <executable name> -lbz2 -lxml2 -lm -lcrypto -lcurl -ldl -lz
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0xafb): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(netrc.o): In function `Curl_parsenetrc':
netrc.c:(.text+0x33b): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
(.text+0xedf): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
(.text+0xfed): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
LinuxAgent.o: In function `Agent::StaticMainOfCommandProcessor(void*)':
LinuxAgent.cpp:(.text+0x20ab): undefined reference to `pthread_exit'
LinuxAgent.o: In function `Agent::startCommandProcessor()':
LinuxAgent.cpp:(.text+0x2b93): undefined reference to `pthread_create'
VncRedirector.o: In function `Redir::RunVNC(char*, int, int)':
VncRedirector.cpp:(.text+0x88): undefined reference to `pthread_create'
VncRedirector.o: In function `Redir::staticMainOfRedir(void*)':
VncRedirector.cpp:(.text+0x100): undefined reference to `pthread_exit'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(strerror.o): In function `Curl_idn_strerror':
strerror.c:(.text+0x6e): undefined reference to `idna_strerror'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(timeval.o): In function `curlx_tvnow':
timeval.c:(.text+0x89): undefined reference to `clock_gettime'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(url.o): In function `fix_hostname':
url.c:(.text+0x10ee): undefined reference to `stringprep_check_version'
url.c:(.text+0x1113): undefined reference to `idna_to_ascii_lz'
url.c:(.text+0x111b): undefined reference to `stringprep_locale_charset'
url.c:(.text+0x1157): undefined reference to `idna_to_unicode_lzlz'
url.c:(.text+0x11b6): undefined reference to `tld_check_lz'
url.c:(.text+0x11cb): undefined reference to `idn_free'
url.c:(.text+0x11d5): undefined reference to `tld_strerror'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(url.o): In function `Curl_disconnect':
url.c:(.text+0x1bd4): undefined reference to `idn_free'
url.c:(.text+0x1be6): undefined reference to `idn_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_version':
ssluse.c:(.text+0xc): undefined reference to `SSLeay'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_data_pending':
ssluse.c:(.text+0x262): undefined reference to `SSL_pending'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `x509_name_oneline':
ssluse.c:(.text+0x3d6): undefined reference to `X509_NAME_print_ex'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `cert_verify_callback':
ssluse.c:(.text+0x460): undefined reference to `X509_STORE_CTX_get_current_cert'
ssluse.c:(.text+0x468): undefined reference to `X509_get_subject_name'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `X509V3_ext':
ssluse.c:(.text+0xadb): undefined reference to `X509_EXTENSION_get_object'
ssluse.c:(.text+0xaf3): undefined reference to `X509_EXTENSION_get_critical'
ssluse.c:(.text+0xb47): undefined reference to `X509V3_EXT_print'
ssluse.c:(.text+0xca2): undefined reference to `ASN1_STRING_print'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `verifyhost':
ssluse.c:(.text+0xe29): undefined reference to `X509_get_ext_d2i'
ssluse.c:(.text+0xebf): undefined reference to `GENERAL_NAMES_free'
ssluse.c:(.text+0xf75): undefined reference to `GENERAL_NAMES_free'
ssluse.c:(.text+0xfa5): undefined reference to `GENERAL_NAMES_free'
ssluse.c:(.text+0xfc3): undefined reference to `X509_get_subject_name'
ssluse.c:(.text+0xfea): undefined reference to `X509_NAME_get_index_by_NID'
ssluse.c:(.text+0xffe): undefined reference to `X509_NAME_get_entry'
ssluse.c:(.text+0x1006): undefined reference to `X509_NAME_ENTRY_get_data'
ssluse.c:(.text+0x102c): undefined reference to `ASN1_STRING_to_UTF8'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `servercert':
ssluse.c:(.text+0x1254): undefined reference to `SSL_get_peer_certificate'
ssluse.c:(.text+0x128c): undefined reference to `X509_get_subject_name'
ssluse.c:(.text+0x12ca): undefined reference to `X509_free'
ssluse.c:(.text+0x1348): undefined reference to `SSL_get_peer_cert_chain'
ssluse.c:(.text+0x1510): undefined reference to `X509_get_pubkey'
ssluse.c:(.text+0x153f): undefined reference to `EVP_PKEY_free'
ssluse.c:(.text+0x158e): undefined reference to `PEM_write_bio_X509'
ssluse.c:(.text+0x1639): undefined reference to `X509_get_subject_name'
ssluse.c:(.text+0x16a0): undefined reference to `X509_get_issuer_name'
ssluse.c:(.text+0x1701): undefined reference to `ASN1_INTEGER_get'
ssluse.c:(.text+0x1773): undefined reference to `X509_get_serialNumber'
ssluse.c:(.text+0x18c2): undefined reference to `X509_free'
ssluse.c:(.text+0x190d): undefined reference to `X509_get_issuer_name'
ssluse.c:(.text+0x194a): undefined reference to `X509_free'
ssluse.c:(.text+0x1974): undefined reference to `ASN1_INTEGER_get'
ssluse.c:(.text+0x23f3): undefined reference to `PEM_read_X509'
ssluse.c:(.text+0x241a): undefined reference to `X509_check_issued'
ssluse.c:(.text+0x2456): undefined reference to `X509_free'
ssluse.c:(.text+0x245e): undefined reference to `X509_free'
ssluse.c:(.text+0x24a9): undefined reference to `X509_free'
ssluse.c:(.text+0x24f4): undefined reference to `X509_free'
ssluse.c:(.text+0x2500): undefined reference to `X509_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o):ssluse.c:(.text+0x2534): more undefined references to `X509_free' follow
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `servercert':
ssluse.c:(.text+0x2545): undefined reference to `SSL_get_verify_result'
ssluse.c:(.text+0x2574): undefined reference to `X509_verify_cert_error_string'
ssluse.c:(.text+0x25b5): undefined reference to `X509_verify_cert_error_string'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `ossl_send':
ssluse.c:(.text+0x2622): undefined reference to `SSL_write'
ssluse.c:(.text+0x264e): undefined reference to `SSL_get_error'
ssluse.c:(.text+0x26d8): undefined reference to `ERR_error_string'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `ossl_recv':
ssluse.c:(.text+0x272f): undefined reference to `SSL_read'
ssluse.c:(.text+0x275e): undefined reference to `SSL_get_error'
ssluse.c:(.text+0x27a1): undefined reference to `ERR_error_string'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_close_all':
ssluse.c:(.text+0x2814): undefined reference to `ENGINE_finish'
ssluse.c:(.text+0x2822): undefined reference to `ENGINE_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_close':
ssluse.c:(.text+0x2869): undefined reference to `SSL_shutdown'
ssluse.c:(.text+0x2877): undefined reference to `SSL_set_connect_state'
ssluse.c:(.text+0x2885): undefined reference to `SSL_free'
ssluse.c:(.text+0x28a7): undefined reference to `SSL_CTX_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_shutdown':
ssluse.c:(.text+0x2963): undefined reference to `SSL_read'
ssluse.c:(.text+0x2971): undefined reference to `SSL_get_error'
ssluse.c:(.text+0x29ae): undefined reference to `ERR_error_string'
ssluse.c:(.text+0x29fb): undefined reference to `SSL_free'
ssluse.c:(.text+0x2a4c): undefined reference to `SSL_get_shutdown'
ssluse.c:(.text+0x2b41): undefined reference to `SSL_shutdown'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_engines_list':
ssluse.c:(.text+0x2b7e): undefined reference to `ENGINE_get_first'
ssluse.c:(.text+0x2b94): undefined reference to `ENGINE_get_next'
ssluse.c:(.text+0x2ba2): undefined reference to `ENGINE_get_id'
ssluse.c:(.text+0x2bc2): undefined reference to `ENGINE_get_next'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_set_engine_default':
ssluse.c:(.text+0x2c22): undefined reference to `ENGINE_set_default'
ssluse.c:(.text+0x2c34): undefined reference to `ENGINE_get_id'
ssluse.c:(.text+0x2c62): undefined reference to `ENGINE_get_id'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_set_engine':
ssluse.c:(.text+0x2ca3): undefined reference to `ENGINE_get_first'
ssluse.c:(.text+0x2cbc): undefined reference to `ENGINE_get_next'
ssluse.c:(.text+0x2cce): undefined reference to `ENGINE_get_id'
ssluse.c:(.text+0x2cf8): undefined reference to `ENGINE_finish'
ssluse.c:(.text+0x2d06): undefined reference to `ENGINE_free'
ssluse.c:(.text+0x2d18): undefined reference to `ENGINE_init'
ssluse.c:(.text+0x2d42): undefined reference to `ENGINE_free'
ssluse.c:(.text+0x2d5b): undefined reference to `ERR_error_string_n'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_check_cxn':
ssluse.c:(.text+0x2dd2): undefined reference to `SSL_peek'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_cleanup':
ssluse.c:(.text+0x2e07): undefined reference to `ERR_free_strings'
ssluse.c:(.text+0x2e0c): undefined reference to `EVP_cleanup'
ssluse.c:(.text+0x2e11): undefined reference to `ENGINE_cleanup'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_init':
ssluse.c:(.text+0x2e27): undefined reference to `ENGINE_load_builtin_engines'
ssluse.c:(.text+0x2e2c): undefined reference to `SSL_load_error_strings'
ssluse.c:(.text+0x2e31): undefined reference to `SSL_library_init'
ssluse.c:(.text+0x2e41): undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_seed':
ssluse.c:(.text+0x2e89): undefined reference to `RAND_load_file'
ssluse.c:(.text+0x2f0a): undefined reference to `RAND_file_name'
ssluse.c:(.text+0x2f23): undefined reference to `RAND_load_file'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `ossl_connect_step1':
ssluse.c:(.text+0x2ff1): undefined reference to `SSLv23_client_method'
ssluse.c:(.text+0x300e): undefined reference to `SSL_CTX_free'
ssluse.c:(.text+0x3019): undefined reference to `SSL_CTX_new'
ssluse.c:(.text+0x3064): undefined reference to `SSL_CTX_ctrl'
ssluse.c:(.text+0x30e7): undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
ssluse.c:(.text+0x30fa): undefined reference to `SSL_CTX_set_default_passwd_cb'
ssluse.c:(.text+0x3157): undefined reference to `d2i_PKCS12_fp'
ssluse.c:(.text+0x3175): undefined reference to `PKCS12_PBE_add'
ssluse.c:(.text+0x31a2): undefined reference to `PKCS12_parse'
ssluse.c:(.text+0x31b5): undefined reference to `PKCS12_free'
ssluse.c:(.text+0x31c7): undefined reference to `SSL_CTX_use_certificate'
ssluse.c:(.text+0x31ee): undefined reference to `EVP_PKEY_free'
ssluse.c:(.text+0x31f9): undefined reference to `X509_free'
ssluse.c:(.text+0x3209): undefined reference to `TLSv1_client_method'
ssluse.c:(.text+0x324c): undefined reference to `SSL_CTX_set_cipher_list'
ssluse.c:(.text+0x3282): undefined reference to `SSL_CTX_load_verify_locations'
ssluse.c:(.text+0x3306): undefined reference to `SSL_CTX_ctrl'
ssluse.c:(.text+0x3311): undefined reference to `SSLv3_client_method'
ssluse.c:(.text+0x3321): undefined reference to `SSLv2_client_method'
ssluse.c:(.text+0x3347): undefined reference to `SSL_CTX_callback_ctrl'
ssluse.c:(.text+0x3373): undefined reference to `SSL_CTX_ctrl'
ssluse.c:(.text+0x3419): undefined reference to `ERR_error_string'
ssluse.c:(.text+0x3467): undefined reference to `X509_LOOKUP_file'
ssluse.c:(.text+0x3485): undefined reference to `X509_STORE_add_lookup'
ssluse.c:(.text+0x34a3): undefined reference to `X509_load_crl_file'
ssluse.c:(.text+0x3522): undefined reference to `ENGINE_ctrl'
ssluse.c:(.text+0x3562): undefined reference to `ENGINE_ctrl_cmd'
ssluse.c:(.text+0x3584): undefined reference to `SSL_CTX_use_certificate'
ssluse.c:(.text+0x35ab): undefined reference to `X509_free'
ssluse.c:(.text+0x35d6): undefined reference to `SSL_CTX_use_certificate_file'
ssluse.c:(.text+0x3630): undefined reference to `SSL_CTX_use_PrivateKey_file'
ssluse.c:(.text+0x3686): undefined reference to `SSL_CTX_use_certificate_chain_file'
ssluse.c:(.text+0x3766): undefined reference to `SSL_CTX_use_PrivateKey'
ssluse.c:(.text+0x37aa): undefined reference to `UI_OpenSSL'
ssluse.c:(.text+0x37d0): undefined reference to `ENGINE_load_private_key'
ssluse.c:(.text+0x37ea): undefined reference to `SSL_CTX_use_PrivateKey'
ssluse.c:(.text+0x3810): undefined reference to `EVP_PKEY_free'
ssluse.c:(.text+0x3831): undefined reference to `ERR_error_string'
ssluse.c:(.text+0x3861): undefined reference to `EVP_PKEY_free'
ssluse.c:(.text+0x386f): undefined reference to `SSL_new'
ssluse.c:(.text+0x3882): undefined reference to `SSL_get_certificate'
ssluse.c:(.text+0x3894): undefined reference to `X509_get_pubkey'
ssluse.c:(.text+0x38a2): undefined reference to `SSL_get_privatekey'
ssluse.c:(.text+0x38b1): undefined reference to `EVP_PKEY_copy_parameters'
ssluse.c:(.text+0x38bc): undefined reference to `EVP_PKEY_free'
ssluse.c:(.text+0x38c7): undefined reference to `SSL_free'
ssluse.c:(.text+0x38d2): undefined reference to `SSL_CTX_check_private_key'
ssluse.c:(.text+0x3940): undefined reference to `X509_STORE_set_flags'
ssluse.c:(.text+0x3991): undefined reference to `SSL_CTX_set_verify'
ssluse.c:(.text+0x39d5): undefined reference to `SSL_free'
ssluse.c:(.text+0x39ec): undefined reference to `SSL_new'
ssluse.c:(.text+0x3a05): undefined reference to `SSL_set_connect_state'
ssluse.c:(.text+0x3a75): undefined reference to `SSL_set_session'
ssluse.c:(.text+0x3a92): undefined reference to `ERR_error_string'
ssluse.c:(.text+0x3ae9): undefined reference to `ERR_error_string'
ssluse.c:(.text+0x3b0b): undefined reference to `PKCS12_free'
ssluse.c:(.text+0x3ba9): undefined reference to `SSL_set_fd'
ssluse.c:(.text+0x3bcf): undefined reference to `X509_free'
ssluse.c:(.text+0x3c73): undefined reference to `ERR_error_string'
ssluse.c:(.text+0x3ce8): undefined reference to `SSL_ctrl'
ssluse.c:(.text+0x3d17): undefined reference to `SSL_CTX_check_private_key'
ssluse.c:(.text+0x3d77): undefined reference to `SSL_CTX_ctrl'
ssluse.c:(.text+0x3d9a): undefined reference to `SSL_CTX_add_client_CA'
ssluse.c:(.text+0x3dc7): undefined reference to `EVP_PKEY_free'
ssluse.c:(.text+0x3dd2): undefined reference to `X509_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `ossl_connect_common':
ssluse.c:(.text+0x3fab): undefined reference to `SSL_connect'
ssluse.c:(.text+0x3fc6): undefined reference to `SSL_get_error'
ssluse.c:(.text+0x40d0): undefined reference to `SSL_get_current_cipher'
ssluse.c:(.text+0x40d8): undefined reference to `SSL_CIPHER_get_name'
ssluse.c:(.text+0x418b): undefined reference to `ERR_error_string_n'
ssluse.c:(.text+0x41eb): undefined reference to `ERR_error_string_n'
ssluse.c:(.text+0x42f8): undefined reference to `SSL_get1_session'
ssluse.c:(.text+0x43ea): undefined reference to `SSL_SESSION_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(ssluse.o): In function `Curl_ossl_session_free':
ssluse.c:(.text+0x728): undefined reference to `SSL_SESSION_free'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(http_ntlm.o): In function `mk_nt_hash':
http_ntlm.c:(.text+0x6a): undefined reference to `MD4_Init'
http_ntlm.c:(.text+0x7d): undefined reference to `MD4_Update'
http_ntlm.c:(.text+0x8c): undefined reference to `MD4_Final'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_disconnect':
openldap.c:(.text+0x73): undefined reference to `ldap_unbind_ext'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_connecting':
openldap.c:(.text+0x172): undefined reference to `ldap_sasl_bind'
openldap.c:(.text+0x1b0): undefined reference to `ldap_result'
openldap.c:(.text+0x1fe): undefined reference to `ldap_parse_result'
openldap.c:(.text+0x227): undefined reference to `ldap_get_option'
openldap.c:(.text+0x238): undefined reference to `ldap_memfree'
openldap.c:(.text+0x255): undefined reference to `ldap_set_option'
openldap.c:(.text+0x29e): undefined reference to `ldap_err2string'
openldap.c:(.text+0x2e4): undefined reference to `ldap_err2string'
openldap.c:(.text+0x34d): undefined reference to `ldap_get_option'
openldap.c:(.text+0x36c): undefined reference to `ber_sockbuf_add_io'
openldap.c:(.text+0x3ac): undefined reference to `ldap_err2string'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_recv':
openldap.c:(.text+0x557): undefined reference to `ldap_result'
openldap.c:(.text+0x589): undefined reference to `ldap_first_message'
openldap.c:(.text+0x5b0): undefined reference to `ldap_next_message'
openldap.c:(.text+0x5c6): undefined reference to `ldap_msgtype'
openldap.c:(.text+0x5fd): undefined reference to `ldap_get_dn_ber'
openldap.c:(.text+0x6a9): undefined reference to `ldap_get_attribute_ber'
openldap.c:(.text+0x954): undefined reference to `ber_memfree'
openldap.c:(.text+0x9ed): undefined reference to `ber_free'
openldap.c:(.text+0xa02): undefined reference to `ldap_msgfree'
openldap.c:(.text+0xa58): undefined reference to `ldap_parse_result'
openldap.c:(.text+0xa8b): undefined reference to `ldap_err2string'
openldap.c:(.text+0xac3): undefined reference to `ldap_memfree'
openldap.c:(.text+0xad3): undefined reference to `ldap_err2string'
openldap.c:(.text+0xb33): undefined reference to `ldap_err2string'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_connect':
openldap.c:(.text+0xc1d): undefined reference to `ldap_init_fd'
openldap.c:(.text+0xc2b): undefined reference to `ldap_err2string'
openldap.c:(.text+0xc93): undefined reference to `ldap_set_option'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_done':
openldap.c:(.text+0xe20): undefined reference to `ldap_abandon_ext'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_do':
openldap.c:(.text+0xe7d): undefined reference to `ldap_url_parse'
openldap.c:(.text+0xf24): undefined reference to `ldap_search_ext'
openldap.c:(.text+0xf31): undefined reference to `ldap_free_urldesc'
openldap.c:(.text+0xf3d): undefined reference to `ldap_err2string'
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libcurl.a(openldap.o): In function `ldap_setup':
openldap.c:(.text+0xffe): undefined reference to `ldap_url_parse'
openldap.c:(.text+0x105a): undefined reference to `ldap_pvt_url_scheme2proto'
openldap.c:(.text+0x1067): undefined reference to `ldap_free_urldesc'
collect2: ld returned 1 exit status
make: *** [<executable namei>] Error 1
[root_at_linux Proj]#

-----Original Message-----
From: Dan Fandrich <dan_at_coneharvesters.com>
To: curl-users <curl-users_at_cool.haxx.se>
Sent: Thu, Jul 7, 2011 3:28 pm
Subject: Re: Cannot Create Truly Static Program With cURL

On Thu, Jul 07, 2011 at 03:12:22PM -0400, brandonshw_at_aol.com wrote:
 The make for my own program, which uses the libcurl.a that I produce,
omplains
 about libraries that I have on my machine, as though the libcurl.a wasn't
 produced statically.
Can you post the exact log where this happens?
> Is there any switch one can put on the make command when
 creating libcurl.a from source to make it absolutely self-sufficient?
You can do that not on the make command, but on the configure command.
configure --help" will show you a list of options. Assuming you want just
TTP support, you'll probably want the options:
--disable-ftp --disable-file --disable-ldap --disable-dict
-disable-telnet --disable-tftp --disable-rtsp --disable-pop3
-disable-imap --disable-smtp --disable-gopher --disable-ares
-disable-debug --without-ssl --without-zlib --without-libidn
>>> Dan
------------------------------------------------------------------
ist admin: http://cool.haxx.se/list/listinfo/curl-users
AQ: http://curl.haxx.se/docs/faq.html
tiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-07