cURL / Mailing Lists / curl-library / Single Mail

curl-library

undefined reference's when building libcurl.dll on mingw-w64

From: ken han <j609444_at_gmail.com>
Date: Wed, 16 Oct 2013 11:38:12 -0700

I wonted to build with "mingw32-make mingw32-ssl-zlib" but I re-ran with
"mingw32-make mingw32" and get the same errors. I have not been able to
figure out what is causing this. Any ideas, please? First part of error is
bellow. Thanks

mingw32-make -C lib -f Makefile.m32
mingw32-make[1]: Entering directory 'curl-7.33.0/lib'
gcc -s -shared -o libcurl.dll \
  -Wl,--output-def,libcurl.def,--out-implib,libcurldll.a \
  file.o timeval.o base64.o hostip.o progress.o formdata.o cookie.o http.o
sendf.o ftp.o url.o dict.o if2ip.o speedcheck.o ldap.o ssluse.o version.o
getenv.o escape.o mprintf.o telnet.o netrc.o getinfo.o transfer.o
strequal.o easy.o security.o curl_fnmatch.o fileinfo.o ftplistparser.o
wildcard.o krb5.o memdebug.o http_chunks.o strtok.o connect.o llist.o
hash.o multi.o content_encoding.o share.o http_digest.o md4.o md5.o
http_negotiate.o inet_pton.o strtoofft.o strerror.o amigaos.o hostasyn.o
hostip4.o hostip6.o hostsyn.o inet_ntop.o parsedate.o select.o gtls.o
sslgen.o tftp.o splay.o strdup.o socks.o ssh.o nss.o qssl.o rawstr.o
curl_addrinfo.o socks_gssapi.o socks_sspi.o curl_sspi.o slist.o nonblock.o
curl_memrchr.o imap.o pop3.o smtp.o pingpong.o rtsp.o curl_threads.o
warnless.o hmac.o polarssl.o polarssl_threadlock.o curl_rtmp.o openldap.o
curl_gethostname.o gopher.o axtls.o idn_win32.o http_negotiate_sspi.o
cyassl.o http_proxy.o non-ascii.o asyn-ares.o asyn-thread.o curl_gssapi.o
curl_ntlm.o curl_ntlm_wb.o curl_ntlm_core.o curl_ntlm_msgs.o curl_sasl.o
curl_schannel.o curl_multibyte.o curl_darwinssl.o hostcheck.o bundles.o
conncache.o pipeline.o dotdot.o x509asn1.o gskit.o http2.o libcurl.res
-lwldap32 -lws2_32
ssluse.o: In function `ossl_recv':
curl-7.33.0\lib/ssluse.c:2580: undefined reference to `ERR_clear_error'
curl-7.33.0\lib/ssluse.c:2583: undefined reference to `SSL_read'
curl-7.33.0\lib/ssluse.c:2586: undefined reference to `SSL_get_error'
curl-7.33.0\lib/ssluse.c:2601: undefined reference to `ERR_get_error'
curl-7.33.0\lib/ssluse.c:2605: undefined reference to `ERR_error_string'
ssluse.o: In function `ossl_send':
curl-7.33.0\lib/ssluse.c:2530: undefined reference to `ERR_clear_error'
curl-7.33.0\lib/ssluse.c:2533: undefined reference to `SSL_write'
curl-7.33.0\lib/ssluse.c:2536: undefined reference to `SSL_get_error'
curl-7.33.0\lib/ssluse.c:2554: undefined reference to `ERR_get_error'
curl-7.33.0\lib/ssluse.c:2555: undefined reference to `ERR_error_string'
ssluse.o: In function `x509_name_oneline':
curl-7.33.0\lib/ssluse.c:668: undefined reference to `BIO_s_mem'
curl-7.33.0\lib/ssluse.c:668: undefined reference to `BIO_new'
curl-7.33.0\lib/ssluse.c:675: undefined reference to `X509_NAME_print_ex'
curl-7.33.0\lib/ssluse.c:676: undefined reference to `BIO_ctrl'
curl-7.33.0\lib/ssluse.c:686: undefined reference to `BIO_free'
ssluse.o: In function `cert_verify_callback':
curl-7.33.0\lib/ssluse.c:698: undefined reference to
`X509_STORE_CTX_get_current_cert'
curl-7.33.0\lib/ssluse.c:699: undefined reference to `X509_get_subject_name'
ssluse.o: In function `ssl_ui_writer':
curl-7.33.0\lib/ssluse.c:326: undefined reference to `UI_get_string_type'
curl-7.33.0\lib/ssluse.c:329: undefined reference to `UI_get0_user_data'
curl-7.33.0\lib/ssluse.c:330: undefined reference to `UI_get_input_flags'
curl-7.33.0\lib/ssluse.c:336: undefined reference to `UI_OpenSSL'
curl-7.33.0\lib/ssluse.c:336: undefined reference to `UI_method_get_writer'
ssluse.o: In function `ssl_ui_reader'
[...]

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-16