linking error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

linking error

PRIYARANJAN NAYAK
Hi All,

While build the tls server I got this link error.Below I mentioned bild log .Can any one help me ?


Linking console executable: bin/Debug/dtlsServer
../openssl-1.0.1c/libssl.a(ssl_algs.o): In function `SSL_library_init':
ssl_algs.c:(.text+0x1e): undefined reference to `EVP_idea_cbc'
ssl_algs.c:(.text+0x79): undefined reference to `EVP_aes_128_gcm'
ssl_algs.c:(.text+0x86): undefined reference to `EVP_aes_256_gcm'
ssl_algs.c:(.text+0x93): undefined reference to `EVP_aes_128_cbc_hmac_sha1'
ssl_algs.c:(.text+0xa0): undefined reference to `EVP_aes_256_cbc_hmac_sha1'
ssl_algs.c:(.text+0xad): undefined reference to `EVP_camellia_128_cbc'
ssl_algs.c:(.text+0xba): undefined reference to `EVP_camellia_256_cbc'
ssl_algs.c:(.text+0xc7): undefined reference to `EVP_seed_cbc'
../openssl-1.0.1c/libssl.a(tls_srp.o): In function `SRP_Calc_A_param':
tls_srp.c:(.text+0x32f): undefined reference to `SRP_Calc_A'
tls_srp.c:(.text+0x374): undefined reference to `SRP_check_known_gN_param'
../openssl-1.0.1c/libssl.a(tls_srp.o): In function `SRP_generate_client_master_secret':
tls_srp.c:(.text+0x3cb): undefined reference to `SRP_Verify_B_mod_N'
tls_srp.c:(.text+0x456): undefined reference to `SRP_Calc_u'
tls_srp.c:(.text+0x4b1): undefined reference to `SRP_Calc_x'
tls_srp.c:(.text+0x4f5): undefined reference to `SRP_Calc_client_key'
../openssl-1.0.1c/libssl.a(tls_srp.o): In function `SRP_generate_server_master_secret':
tls_srp.c:(.text+0x5eb): undefined reference to `SRP_Verify_A_mod_N'
tls_srp.c:(.text+0x648): undefined reference to `SRP_Calc_u'
tls_srp.c:(.text+0x67e): undefined reference to `SRP_Calc_server_key'
../openssl-1.0.1c/libssl.a(tls_srp.o): In function `SSL_set_srp_server_param_pw':
tls_srp.c:(.text+0xbb7): undefined reference to `SRP_get_default_gN'
tls_srp.c:(.text+0xc64): undefined reference to `SRP_create_verifier_BN'
../openssl-1.0.1c/libssl.a(tls_srp.o): In function `SSL_srp_server_param_with_username':
tls_srp.c:(.text+0xd6c): undefined reference to `SRP_Calc_B'
collect2: ld returned 1 exit status

--
Thanks
Priyaranjan

Reply | Threaded
Open this post in threaded view
|

RE: linking error

J. J. Farrell-2
> From: Priyaranjan Nayak [mailto:[hidden email]]
> Sent: Thursday, November 22, 2012 2:36 PM
>
> While build the tls server I got this link error.Below I mentioned bild log .
> Can any one help me ?
>
> Linking console executable: bin/Debug/dtlsServer
> ../openssl-1.0.1c/libssl.a(ssl_algs.o): In function `SSL_library_init':
> ssl_algs.c:(.text+0x1e): undefined reference to `EVP_idea_cbc'
> ...

At a guess, you're not linking against libcrypto.a. If you are linking against libcrypto.a, then some versions of some linkers on some OSes are fussy about the order of libraries in the link command, and you'd need to make sure that libcrypto.a is listed after libssl.a.

If neither of those do it, then provide some basic information - what OS are you building on, what compiler and linker are you using, and what exactly is the linker command line you are running?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]