cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Why curleasy do nothing for SFTP

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Tue, 21 Aug 2007 01:11:24 -0400

On Aug 20, 2007, at 10:23 PM, Mathew Simon wrote:

> I have no clue about what to include. Any suggestions?
>
> C:\CodeBlocks\curl-7.17.0\lib\hostthre.c:296: undefined reference to
> `WSASetLastError_at_4'
> C:\CodeBlocks\curl-7.17.0\lib\hostthre.c:624: undefined reference to
> `WSASetLastError_at_4'
> C:\CodeBlocks\curl-7.17.0\lib\connect.c:622: undefined reference to
> `getprotobyname_at_4'
> C:\CodeBlocks\curl-7.17.0\lib\select.c:121: undefined reference to
> `WSASetLastError_at_4'

These would most likely be found in the windows sockets library
(ws2_32.dll).

> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:328: undefined reference to
> `DES_set_odd_parity'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:329: undefined reference to
> `DES_set_key'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:344: undefined reference to
> `DES_ecb_encrypt'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:348: undefined reference to
> `DES_ecb_encrypt'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:352: undefined reference to
> `DES_ecb_encrypt'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:448: undefined reference to
> `MD4_Init'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:449: undefined reference to
> `MD4_Update'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:450: undefined reference to
> `MD4_Final'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:839: undefined reference to
> `gethostname_at_8'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:865: undefined reference to
> `RAND_bytes'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:876: undefined reference to
> `MD5_Init'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:877: undefined reference to
> `MD5_Update'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:878: undefined reference to
> `MD5_Final'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:397: undefined reference to
> `DES_ecb_encrypt'
> C:\CodeBlocks\curl-7.17.0\lib\http_ntlm.c:401: undefined reference to
> `DES_ecb_encrypt'
> C:\CodeBlocks\curl-7.17.0\lib\inet_ntop.c:75: undefined reference to
> `inet_ntoa_at_4'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:158: undefined reference to
> `RAND_status'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:185: undefined reference to
> `RAND_load_file'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:219: undefined reference to
> `RAND_screen'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:247: undefined reference to
> `RAND_file_name'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:250: undefined reference to
> `RAND_load_file'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:527: undefined reference to
> `X509_STORE_CTX_get_current_cert'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:528: undefined reference to
> `X509_get_subject_name'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:528: undefined reference to
> `X509_NAME_oneline'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:540: undefined reference to
> `ERR_error_string_n'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:560: undefined reference to
> `ENGINE_load_builtin_engines'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:581: undefined reference to
> `ERR_free_strings'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:628: undefined reference to
> `ENGINE_by_id'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:640: undefined reference to
> `ENGINE_init'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:636: undefined reference to
> `ENGINE_finish'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:637: undefined reference to
> `ENGINE_free'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:643: undefined reference to
> `ENGINE_free'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:644: undefined reference to
> `ERR_get_error'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:664: undefined reference to
> `ENGINE_set_default'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:665: undefined reference to
> `ENGINE_get_id'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:668: undefined reference to
> `ENGINE_get_id'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:688: undefined reference to
> `ENGINE_get_first'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:689: undefined reference to
> `ENGINE_get_id'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:688: undefined reference to
> `ENGINE_get_next'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:779: undefined reference to
> `ERR_get_error'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:780: undefined reference to
> `ERR_error_string'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:845: undefined reference to
> `ERR_remove_state'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:849: undefined reference to
> `ENGINE_finish'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:850: undefined reference to
> `ENGINE_free'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:1526: undefined reference to
> `ERR_get_error'
> C:\CodeBlocks\curl-7.17.0\lib\ssluse.c:1640: undefined reference to
> `X509_get_subject_name'

Looks like you forgot to link against OpenSSL's import library as well.

Cheers,

/* Andre Guibert de Bruet * 436f 6465 2070 6f65 742e 2042 6974 206a */
/* Code poet / Sysadmin * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/* GSM: +1 734 846 8758 * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */
Received on 2007-08-21