Subject: libssh2.a static linking problem

libssh2.a static linking problem

From: £Å£ö£å£ò <unix_at_vip.qq.com>
Date: Thu, 19 Jul 2012 20:01:23 +0800

when I execute
gcc -Wall -Wl,-as-needed -o ssh_exec ssh2_exec.c -I/usr/local/libssh2/include -L/usr/local/libssh2/lib/ -L/lib64 -Wl,-Bstatic -lssh2 -Wl,-Bdynamic -lpthread
cmd,I got the following text,but when I use the share lib,that is ok.
/usr/local/libssh2/lib//libssh2.a(channel.o): In function `channel_x11_req':
/home/ever/Downloads/libssh2-1.4.2/src/channel.c:1138: undefined reference to `RAND_bytes'
/usr/local/libssh2/lib//libssh2.a(hostkey.o): In function `hostkey_method_ssh_dss_dtor':
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:383: undefined reference to `DSA_free'
/usr/local/libssh2/lib//libssh2.a(hostkey.o): In function `hostkey_method_ssh_dss_signv':
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:358: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:358: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:360: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:362: undefined reference to `EVP_DigestFinal'
/usr/local/libssh2/lib//libssh2.a(hostkey.o): In function `hostkey_method_ssh_dss_dtor':
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:383: undefined reference to `DSA_free'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:383: undefined reference to `DSA_free'
/usr/local/libssh2/lib//libssh2.a(hostkey.o): In function `hostkey_method_ssh_rsa_dtor':
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:199: undefined reference to `RSA_free'
/usr/local/libssh2/lib//libssh2.a(hostkey.o): In function `hostkey_method_ssh_rsa_signv':
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:173: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:173: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:175: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:177: undefined reference to `EVP_DigestFinal'
/usr/local/libssh2/lib//libssh2.a(hostkey.o): In function `hostkey_method_ssh_rsa_dtor':
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:199: undefined reference to `RSA_free'
/home/ever/Downloads/libssh2-1.4.2/src/hostkey.c:199: undefined reference to `RSA_free'
/usr/local/libssh2/lib//libssh2.a(transport.o): In function `_libssh2_transport_send':
/home/ever/Downloads/libssh2-1.4.2/src/transport.c:818: undefined reference to `RAND_bytes'
/home/ever/Downloads/libssh2-1.4.2/src/transport.c:818: undefined reference to `RAND_bytes'
/usr/local/libssh2/lib//libssh2.a(knownhost.o): In function `knownhost_check':
/home/ever/Downloads/libssh2-1.4.2/src/knownhost.c:402: undefined reference to `EVP_sha1'
/home/ever/Downloads/libssh2-1.4.2/src/knownhost.c:402: undefined reference to `HMAC_Init'
/home/ever/Downloads/libssh2-1.4.2/src/knownhost.c:403: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/knownhost.c:405: undefined reference to `HMAC_Final'
/home/ever/Downloads/libssh2-1.4.2/src/knownhost.c:406: undefined reference to `HMAC_CTX_cleanup'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `read_private_key_from_file':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:400: undefined reference to `BIO_new_file'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:408: undefined reference to `BIO_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `write_bn':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:543: undefined reference to `BN_bn2bin'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_pub_priv_keyfile':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:752: undefined reference to `BIO_new_file'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:759: undefined reference to `EVP_get_cipherbyname'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:767: undefined reference to `BIO_ctrl'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:768: undefined reference to `PEM_read_bio_PrivateKey'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:769: undefined reference to `BIO_free'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:800: undefined reference to `EVP_PKEY_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_dsa_evp':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:697: undefined reference to `EVP_PKEY_get1_DSA'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_dsa':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:596: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:597: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:598: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:599: undefined reference to `BN_num_bits'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_dsa_evp':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:712: undefined reference to `DSA_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_rsa_evp':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:669: undefined reference to `RSA_free'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:643: undefined reference to `EVP_PKEY_get1_RSA'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_rsa':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:561: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:562: undefined reference to `BN_num_bits'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_rsa_evp':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:658: undefined reference to `RSA_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `gen_publickey_from_dsa_evp':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:723: undefined reference to `DSA_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_pub_priv_keyfile':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:765: undefined reference to `OpenSSL_add_all_ciphers'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `libssh2_md5':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:529: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:529: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:530: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:531: undefined reference to `EVP_DigestFinal'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `libssh2_sha1':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:518: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:518: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:519: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:520: undefined reference to `EVP_DigestFinal'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_dsa_sha1_sign':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:485: undefined reference to `DSA_do_sign'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:490: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:495: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:503: undefined reference to `BN_bn2bin'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:504: undefined reference to `BN_bn2bin'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:506: undefined reference to `DSA_SIG_free'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:497: undefined reference to `DSA_SIG_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_rsa_sha1_sign':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:455: undefined reference to `RSA_size'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:462: undefined reference to `RSA_sign'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_dsa_new_private':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:439: undefined reference to `PEM_read_bio_DSAPrivateKey'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_rsa_new_private':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:423: undefined reference to `PEM_read_bio_RSAPrivateKey'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `aes_ctr_cleanup':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:305: undefined reference to `EVP_CIPHER_CTX_get_app_data'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:312: undefined reference to `EVP_CIPHER_CTX_cleanup'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `aes_ctr_do_cipher':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:266: undefined reference to `EVP_CIPHER_CTX_get_app_data'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:285: undefined reference to `EVP_EncryptUpdate'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `aes_ctr_init':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:239: undefined reference to `EVP_aes_256_ecb'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:248: undefined reference to `EVP_EncryptInit'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:252: undefined reference to `EVP_CIPHER_CTX_set_padding'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:256: undefined reference to `EVP_CIPHER_CTX_set_app_data'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:233: undefined reference to `EVP_aes_128_ecb'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:236: undefined reference to `EVP_aes_192_ecb'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_cipher_crypt':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:197: undefined reference to `EVP_Cipher'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_cipher_init':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:177: undefined reference to `EVP_CIPHER_CTX_init'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:178: undefined reference to `EVP_CipherInit'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_dsa_sha1_verify':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:158: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:159: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:160: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:161: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:164: undefined reference to `DSA_do_verify'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:165: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:166: undefined reference to `BN_clear_free'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_dsa_new':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:127: undefined reference to `DSA_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:129: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:130: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:132: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:133: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:135: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:136: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:138: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:139: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:142: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:143: undefined reference to `BN_bin2bn'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_rsa_sha1_verify':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:109: undefined reference to `RSA_verify'
/usr/local/libssh2/lib//libssh2.a(openssl.o): In function `_libssh2_rsa_new':
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:69: undefined reference to `RSA_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:71: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:72: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:74: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:75: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:78: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:79: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:81: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:82: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:84: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:85: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:87: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:88: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:90: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:91: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:93: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/openssl.c:94: undefined reference to `BN_bin2bn'
/usr/local/libssh2/lib//libssh2.a(global.o): In function `libssh2_init':
/home/ever/Downloads/libssh2-1.4.2/src/global.c:48: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/local/libssh2/lib//libssh2.a(kex.o): In function `diffie_hellman_sha1':
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:642: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:644: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:646: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:648: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:650: undefined reference to `BN_CTX_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:96: undefined reference to `BN_CTX_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:97: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:98: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:99: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:100: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:106: undefined reference to `BN_rand'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:107: undefined reference to `BN_mod_exp'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:113: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:114: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:129: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:130: undefined reference to `BN_bn2bin'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:221: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:221: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:222: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:224: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:243: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:243: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:244: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:246: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:134: undefined reference to `BN_bn2bin'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:274: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:282: undefined reference to `BN_mod_exp'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:284: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:285: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:298: undefined reference to `BN_num_bits'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:299: undefined reference to `BN_bn2bin'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:305: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:305: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:309: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:311: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:326: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:328: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:334: undefined reference to `EVP_DigestUpdate'
/usr/local/libssh2/lib//libssh2.a(kex.o):/home/ever/Downloads/libssh2-1.4.2/src/kex.c:336: more undefined references to `EVP_DigestUpdate' follow
/usr/local/libssh2/lib//libssh2.a(kex.o): In function `diffie_hellman_sha1':
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:396: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:470: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:477: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:517: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:562: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:524: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestFinal'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_get_digestbyname'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestInit'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:588: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:302: undefined reference to `BN_bn2bin'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:317: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:319: undefined reference to `EVP_DigestUpdate'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:365: undefined reference to `EVP_DigestUpdate'
/usr/local/libssh2/lib//libssh2.a(kex.o): In function `kex_method_diffie_hellman_group1_sha1_key_exchange':
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:725: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:727: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:706: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:707: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:710: undefined reference to `BN_set_word'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:711: undefined reference to `BN_bin2bn'
/usr/local/libssh2/lib//libssh2.a(kex.o): In function `kex_method_diffie_hellman_group_exchange_sha1_key_exchange':
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:902: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:904: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:825: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:826: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:880: undefined reference to `BN_bin2bn'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:885: undefined reference to `BN_bin2bn'
/usr/local/libssh2/lib//libssh2.a(kex.o): In function `kex_method_diffie_hellman_group14_sha1_key_exchange':
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:802: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:804: undefined reference to `BN_clear_free'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:781: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:782: undefined reference to `BN_new'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:786: undefined reference to `BN_set_word'
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:787: undefined reference to `BN_bin2bn'
/usr/local/libssh2/lib//libssh2.a(kex.o): In function `kexinit':
/home/ever/Downloads/libssh2-1.4.2/src/kex.c:1069: undefined reference to `RAND_bytes'
/usr/local/libssh2/lib//libssh2.a(mac.o): In function `mac_method_hmac_ripemd160_hash':
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:260: undefined reference to `EVP_ripemd160'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:260: undefined reference to `HMAC_Init'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:261: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:262: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:266: undefined reference to `HMAC_Final'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:267: undefined reference to `HMAC_CTX_cleanup'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:264: undefined reference to `HMAC_Update'
/usr/local/libssh2/lib//libssh2.a(mac.o): In function `mac_method_hmac_md5_hash':
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:188: undefined reference to `EVP_md5'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:188: undefined reference to `HMAC_Init'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:189: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:190: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:194: undefined reference to `HMAC_Final'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:195: undefined reference to `HMAC_CTX_cleanup'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:192: undefined reference to `HMAC_Update'
/usr/local/libssh2/lib//libssh2.a(mac.o): In function `mac_method_hmac_sha1_hash':
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:116: undefined reference to `EVP_sha1'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:116: undefined reference to `HMAC_Init'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:117: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:118: undefined reference to `HMAC_Update'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:122: undefined reference to `HMAC_Final'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:123: undefined reference to `HMAC_CTX_cleanup'
/home/ever/Downloads/libssh2-1.4.2/src/mac.c:120: undefined reference to `HMAC_Update'
/usr/local/libssh2/lib//libssh2.a(comp.o): In function `comp_method_zlib_dtor':
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:349: undefined reference to `inflateEnd'
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:347: undefined reference to `deflateEnd'
/usr/local/libssh2/lib//libssh2.a(comp.o): In function `comp_method_zlib_decomp':
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:254: undefined reference to `inflate'
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:318: undefined reference to `inflate'
/usr/local/libssh2/lib//libssh2.a(comp.o): In function `comp_method_zlib_comp':
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:198: undefined reference to `deflate'
/usr/local/libssh2/lib//libssh2.a(comp.o): In function `comp_method_zlib_init':
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:159: undefined reference to `inflateInit_'
/home/ever/Downloads/libssh2-1.4.2/src/comp.c:156: undefined reference to `deflateInit_'
/usr/local/libssh2/lib//libssh2.a(crypt.o): In function `crypt_dtor':
/home/ever/Downloads/libssh2-1.4.2/src/crypt.c:111: undefined reference to `EVP_CIPHER_CTX_cleanup'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0xf8): undefined reference to `EVP_aes_256_cbc'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x138): undefined reference to `EVP_aes_256_cbc'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x178): undefined reference to `EVP_aes_192_cbc'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x1b8): undefined reference to `EVP_aes_128_cbc'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x1f8): undefined reference to `EVP_bf_cbc'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x238): undefined reference to `EVP_rc4'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x278): undefined reference to `EVP_rc4'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x2b8): undefined reference to `EVP_cast5_cbc'
/usr/local/libssh2/lib//libssh2.a(crypt.o):(.rodata+0x2f8): undefined reference to `EVP_des_ede3_cbc'
collect2: ld ·µ»Ø 1

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-07-19