Forum

error while compiling hiawatha

vikas
6 April 2009, 18:16
ll-am
make[1]: Entering directory `/root/sanad/hiawatha-6.11'
arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -pthread -g -O2 -MT hiawatha-cache.o -MD -MP -MF .deps/hiawatha-cache.Tpo -c -o hiawatha-cache.o `test -f 'cache.c' || echo './'`cache.c
In file included from session.h:6,
from cache.c:19:
libssl.h:5:25: error: openssl/bio.h: No such file or directory
libssl.h:6:25: error: openssl/ssl.h: No such file or directory
In file included from session.h:6,
from cache.c:19:
libssl.h:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libssl.h:10: error: expected declaration specifiers or '...' before 'SSL'
libssl.h:10: error: expected declaration specifiers or '...' before 'SSL_CTX'
libssl.h:11: error: expected ')' before '*' token
libssl.h:12: error: expected ')' before '*' token
libssl.h:13: error: expected ')' before '*' token
libssl.h:14: error: expected ')' before '*' token
libssl.h:15: error: expected ')' before '*' token
In file included from session.h:10,
from cache.c:19:
serverconfig.h:76: error: expected specifier-qualifier-list before 'SSL_CTX'
In file included from cache.c:19:
session.h:85: error: expected specifier-qualifier-list before 'SSL


can anyone help me out
vikas
6 April 2009, 18:40
the above given error goes by giving the openssl directory to the root



now it gives an error



hiawatha-libssl.o: In function `ssl_cleanup':
/root/sanad/hiawatha-6.11/libssl.c:280: undefined reference to `SSL_CTX_free'
hiawatha-libssl.o: In function `ssl_close':
/root/sanad/hiawatha-6.11/libssl.c:268: undefined reference to `SSL_shutdown'
/root/sanad/hiawatha-6.11/libssl.c:269: undefined reference to `SSL_free'
/root/sanad/hiawatha-6.11/libssl.c:272: undefined reference to `ERR_remove_state'
hiawatha-libssl.o: In function `ssl_send':
/root/sanad/hiawatha-6.11/libssl.c:248: undefined reference to `SSL_write'
/root/sanad/hiawatha-6.11/libssl.c:252: undefined reference to `SSL_get_error'
hiawatha-libssl.o: In function `ssl_receive':
/root/sanad/hiawatha-6.11/libssl.c:228: undefined reference to `SSL_read'
/root/sanad/hiawatha-6.11/libssl.c:232: undefined reference to `SSL_get_error'
hiawatha-libssl.o: In function `ssl_accept':
/root/sanad/hiawatha-6.11/libssl.c:205: undefined reference to `BIO_new_socket'
/root/sanad/hiawatha-6.11/libssl.c:207: undefined reference to `SSL_new'
/root/sanad/hiawatha-6.11/libssl.c:211: undefined reference to `SSL_set_bio'
/root/sanad/hiawatha-6.11/libssl.c:213: undefined reference to `SSL_accept'
/root/sanad/hiawatha-6.11/libssl.c:218: undefined reference to `SSL_free'
hiawatha-libssl.o: In function `ssl_binding':
/root/sanad/hiawatha-6.11/libssl.c:142: undefined reference to `SSLv23_method'
/root/sanad/hiawatha-6.11/libssl.c:146: undefined reference to `SSL_CTX_new'
/root/sanad/hiawatha-6.11/libssl.c:151: undefined reference to `SSL_CTX_ctrl'
/root/sanad/hiawatha-6.11/libssl.c:153: undefined reference to `SSL_CTX_use_certificate_chain_file'
/root/sanad/hiawatha-6.11/libssl.c:158: undefined reference to `SSL_CTX_set_default_passwd_cb'
/root/sanad/hiawatha-6.11/libssl.c:160: undefined reference to `SSL_CTX_use_PrivateKey_file'
/root/sanad/hiawatha-6.11/libssl.c:165: undefined reference to `SSL_CTX_check_private_key'
/root/sanad/hiawatha-6.11/libssl.c:171: undefined reference to `SSL_CTX_set_verify_depth'
/root/sanad/hiawatha-6.11/libssl.c:172: undefined reference to `SSL_CTX_set_verify'
/root/sanad/hiawatha-6.11/libssl.c:173: undefined reference to `SSL_CTX_load_verify_locations'
/root/sanad/hiawatha-6.11/libssl.c:178: undefined reference to `SSL_load_client_CA_file'
/root/sanad/hiawatha-6.11/libssl.c:182: undefined reference to `SSL_CTX_set_client_CA_list'
hiawatha-libssl.o: In function `load_dh_params':
/root/sanad/hiawatha-6.11/libssl.c:122: undefined reference to `BIO_new_file'
/root/sanad/hiawatha-6.11/libssl.c:127: undefined reference to `PEM_read_bio_DHparams'
/root/sanad/hiawatha-6.11/libssl.c:128: undefined reference to `BIO_free'
/root/sanad/hiawatha-6.11/libssl.c:129: undefined reference to `SSL_CTX_ctrl'
hiawatha-libssl.o: In function `ssl_binding':
/root/sanad/hiawatha-6.11/libssl.c:192: undefined reference to `SSL_CTX_set_cipher_list'
hiawatha-libssl.o: In function `ssl_init':
/root/sanad/hiawatha-6.11/libssl.c:98: undefined reference to `SSL_library_init'
/root/sanad/hiawatha-6.11/libssl.c:99: undefined reference to `SSL_load_error_strings'
/root/sanad/hiawatha-6.11/libssl.c:102: undefined reference to `RAND_seed'
/root/sanad/hiawatha-6.11/libssl.c:105: undefined reference to `CRYPTO_num_locks'
/root/sanad/hiawatha-6.11/libssl.c:114: undefined reference to `CRYPTO_set_locking_callback'
/root/sanad/hiawatha-6.11/libssl.c:115: undefined reference to `CRYPTO_set_id_callback'

Hugo Leisink
6 April 2009, 18:48
The error
libssl.h:5:25: error: openssl/bio.h: No such file or directory
libssl.h:6:25: error: openssl/ssl.h: No such file or directory

indicates that the OpenSSL developer libraries are missing. On many Linux distros, the package for that is called 'libssl-dev'. If you need help with installing those libraries, just let me know. In that case, please tell me what OS you are using.
vikas
6 April 2009, 19:09
while compiling with gcc .. it works fine ...
I am cross compiling it with ARM .. then there was this issue ..
but it was resolved by putting 'openssl' in the current working directory itself..

the other problem is



hiawatha-libssl.o: In function `ssl_cleanup':
/root/sanad/hiawatha-6.11/libssl.c:280: undefined reference to `SSL_CTX_free'
hiawatha-libssl.o: In function `ssl_close':
/root/sanad/hiawatha-6.11/libssl.c:268: undefined reference to `SSL_shutdown'
/root/sanad/hiawatha-6.11/libssl.c:269: undefined reference to `SSL_free'
/root/sanad/hiawatha-6.11/libssl.c:272: undefined reference to `ERR_remove_state'
hiawatha-libssl.o: In function `ssl_send':
/root/sanad/hiawatha-6.11/libssl.c:248: undefined reference to `SSL_write'
/root/sanad/hiawatha-6.11/libssl.c:252: undefined reference to `SSL_get_error'
hiawatha-libssl.o: In function `ssl_receive':
/root/sanad/hiawatha-6.11/libssl.c:228: undefined reference to `SSL_read'
/root/sanad/hiawatha-6.11/libssl.c:232: undefined reference to `SSL_get_error'
hiawatha-libssl.o: In function `ssl_accept':
/root/sanad/hiawatha-6.11/libssl.c:205: undefined reference to `BIO_new_socket'
/root/sanad/hiawatha-6.11/libssl.c:207: undefined reference to `SSL_new'
/root/sanad/hiawatha-6.11/libssl.c:211: undefined reference to `SSL_set_bio'
/root/sanad/hiawatha-6.11/libssl.c:213: undefined reference to `SSL_accept'
/root/sanad/hiawatha-6.11/libssl.c:218: undefined reference to `SSL_free'
hiawatha-libssl.o: In function `ssl_binding':
/root/sanad/hiawatha-6.11/libssl.c:142: undefined reference to `SSLv23_method'
/root/sanad/hiawatha-6.11/libssl.c:146: undefined reference to `SSL_CTX_new'
/root/sanad/hiawatha-6.11/libssl.c:151: undefined reference to `SSL_CTX_ctrl'
/root/sanad/hiawatha-6.11/libssl.c:153: undefined reference to `SSL_CTX_use_certificate_chain_file'
/root/sanad/hiawatha-6.11/libssl.c:158: undefined reference to `SSL_CTX_set_default_passwd_cb'
/root/sanad/hiawatha-6.11/libssl.c:160: undefined reference to `SSL_CTX_use_PrivateKey_file'
/root/sanad/hiawatha-6.11/libssl.c:165: undefined reference to `SSL_CTX_check_private_key'
/root/sanad/hiawatha-6.11/libssl.c:171: undefined reference to `SSL_CTX_set_verify_depth'
/root/sanad/hiawatha-6.11/libssl.c:172: undefined reference to `SSL_CTX_set_verify'
/root/sanad/hiawatha-6.11/libssl.c:173: undefined reference to `SSL_CTX_load_verify_locations'
/root/sanad/hiawatha-6.11/libssl.c:178: undefined reference to `SSL_load_client_CA_file'
/root/sanad/hiawatha-6.11/libssl.c:182: undefined reference to `SSL_CTX_set_client_CA_list'
hiawatha-libssl.o: In function `load_dh_params':
/root/sanad/hiawatha-6.11/libssl.c:122: undefined reference to `BIO_new_file'
/root/sanad/hiawatha-6.11/libssl.c:127: undefined reference to `PEM_read_bio_DHparams'
/root/sanad/hiawatha-6.11/libssl.c:128: undefined reference to `BIO_free'
/root/sanad/hiawatha-6.11/libssl.c:129: undefined reference to `SSL_CTX_ctrl'
hiawatha-libssl.o: In function `ssl_binding':
/root/sanad/hiawatha-6.11/libssl.c:192: undefined reference to `SSL_CTX_set_cipher_list'
hiawatha-libssl.o: In function `ssl_init':
/root/sanad/hiawatha-6.11/libssl.c:98: undefined reference to `SSL_library_init'
/root/sanad/hiawatha-6.11/libssl.c:99: undefined reference to `SSL_load_error_strings'
/root/sanad/hiawatha-6.11/libssl.c:102: undefined reference to `RAND_seed'
/root/sanad/hiawatha-6.11/libssl.c:105: undefined reference to `CRYPTO_num_locks'
/root/sanad/hiawatha-6.11/libssl.c:114: undefined reference to `CRYPTO_set_locking_callback'
/root/sanad/hiawatha-6.11/libssl.c:115: undefined reference to `CRYPTO_set_id_callback'




how to resolve this
Hugo Leisink
7 April 2009, 00:44
You need to use -lssl with gcc. Use -I<dir> to point to OpenSSL's shared libraries. I have no experience with cross platform compiling, so I don't know all the details.
vikas
7 April 2009, 08:42
thanks for your prompt replies.

I have used -lssl and now I am getting the following errors.



s3_pkt.c:(.text+0xf74): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0xfe4): undefined reference to `ERR_put_error'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_pkt.o):s3_pkt.c:(.text+0x105c): more undefined references to `ERR_put_error' follow
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_pkt.o): In function `ssl3_read_bytes':
s3_pkt.c:(.text+0x12cc): undefined reference to `BIO_clear_flags'
s3_pkt.c:(.text+0x12d8): undefined reference to `BIO_set_flags'
s3_pkt.c:(.text+0x13d0): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x13e8): undefined reference to `BIO_snprintf'
s3_pkt.c:(.text+0x13f8): undefined reference to `ERR_add_error_data'
s3_pkt.c:(.text+0x1434): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x14b0): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x14e0): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x15c0): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x1600): undefined reference to `BIO_clear_flags'
s3_pkt.c:(.text+0x160c): undefined reference to `BIO_set_flags'
s3_pkt.c:(.text+0x1660): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x1684): undefined reference to `ERR_put_error'
s3_pkt.c:(.text+0x1714): undefined reference to `ERR_put_error'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_both.o): In function `ssl3_setup_buffers':
s3_both.c:(.text+0x15c): undefined reference to `CRYPTO_malloc'
s3_both.c:(.text+0x198): undefined reference to `CRYPTO_malloc'
s3_both.c:(.text+0x1e0): undefined reference to `ERR_put_error'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_both.o): In function `ssl_cert_type':
s3_both.c:(.text+0x210): undefined reference to `X509_get_pubkey'
s3_both.c:(.text+0x250): undefined reference to `EVP_PKEY_free'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_both.o): In function `ssl3_get_message':
s3_both.c:(.text+0x2bc): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x404): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x47c): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x4a8): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x4c4): undefined reference to `BUF_MEM_grow_clean'
s3_both.c:(.text+0x4e8): undefined reference to `ERR_put_error'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_both.o): In function `ssl3_output_cert_chain':
s3_both.c:(.text+0x664): undefined reference to `BUF_MEM_grow_clean'
s3_both.c:(.text+0x688): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x6c0): undefined reference to `X509_STORE_CTX_init'
s3_both.c:(.text+0x6e4): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x6f8): undefined reference to `i2d_X509'
s3_both.c:(.text+0x710): undefined reference to `BUF_MEM_grow_clean'
s3_both.c:(.text+0x734): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x77c): undefined reference to `i2d_X509'
s3_both.c:(.text+0x78c): undefined reference to `X509_get_subject_name'
s3_both.c:(.text+0x798): undefined reference to `X509_get_issuer_name'
s3_both.c:(.text+0x7a4): undefined reference to `X509_NAME_cmp'
s3_both.c:(.text+0x7b4): undefined reference to `X509_get_issuer_name'
s3_both.c:(.text+0x7c8): undefined reference to `X509_STORE_get_by_subject'
s3_both.c:(.text+0x7dc): undefined reference to `X509_free'
s3_both.c:(.text+0x810): undefined reference to `sk_value'
s3_both.c:(.text+0x81c): undefined reference to `i2d_X509'
s3_both.c:(.text+0x834): undefined reference to `BUF_MEM_grow_clean'
s3_both.c:(.text+0x858): undefined reference to `ERR_put_error'
s3_both.c:(.text+0x8a0): undefined reference to `i2d_X509'
s3_both.c:(.text+0x8b4): undefined reference to `sk_num'
s3_both.c:(.text+0x938): undefined reference to `X509_STORE_CTX_cleanup'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_both.o): In function `ssl3_get_finished':
s3_both.c:(.text+0x9c4): undefined reference to `ERR_put_error'
s3_both.c:(.text+0xa04): undefined reference to `ERR_put_error'
s3_both.c:(.text+0xa3c): undefined reference to `ERR_put_error'



I am compiling it in ARM, and using the ssl library compiled in ARM.


Can you help me out.


vikas
7 April 2009, 09:49
I have also provided the crypto library for ARM

now I am getting the following errors


ssl_cert.c:(.text+0x4dc): undefined reference to `PEM_read_bio_X509'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_cert.o): In function `SSL_get_ex_data_X509_STORE_CTX_idx':
ssl_cert.c:(.text+0xcf4): undefined reference to `X509_STORE_CTX_get_ex_new_index'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_cert.o): In function `ssl_verify_cert_chain':
ssl_cert.c:(.text+0xd8c): undefined reference to `X509_STORE_CTX_init'
ssl_cert.c:(.text+0xdc8): undefined reference to `X509_STORE_CTX_get0_param'
ssl_cert.c:(.text+0xdd0): undefined reference to `X509_VERIFY_PARAM_inherit'
ssl_cert.c:(.text+0xde4): undefined reference to `X509_STORE_CTX_set_ex_data'
ssl_cert.c:(.text+0xe04): undefined reference to `X509_STORE_CTX_set_default'
ssl_cert.c:(.text+0xe18): undefined reference to `X509_STORE_CTX_set_verify_cb'
ssl_cert.c:(.text+0xe44): undefined reference to `X509_verify_cert'
ssl_cert.c:(.text+0xe58): undefined reference to `X509_STORE_CTX_cleanup'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_ciph.o): In function `load_builtin_compressions':
ssl_ciph.c:(.text+0x374): undefined reference to `COMP_zlib'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_ciph.o): In function `ssl_cipher_get_evp':
ssl_ciph.c:(.text+0x1650): undefined reference to `EVP_enc_null'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_rsa.o): In function `SSL_CTX_use_certificate_chain_file':
ssl_rsa.c:(.text+0x280): undefined reference to `PEM_read_bio_X509'
ssl_rsa.c:(.text+0x32c): undefined reference to `PEM_read_bio_X509'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_rsa.o): In function `SSL_CTX_use_certificate_file':
ssl_rsa.c:(.text+0x1100): undefined reference to `PEM_read_bio_X509'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_rsa.o): In function `SSL_use_certificate_file':
ssl_rsa.c:(.text+0x125c): undefined reference to `PEM_read_bio_X509'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(ssl_algs.o): In function `SSL_library_init':
ssl_algs.c:(.text+0x8): undefined reference to `EVP_des_cbc'
ssl_algs.c:(.text+0x10): undefined reference to `EVP_des_ede3_cbc'
ssl_algs.c:(.text+0x18): undefined reference to `EVP_idea_cbc'
ssl_algs.c:(.text+0x20): undefined reference to `EVP_rc4'
ssl_algs.c:(.text+0x28): undefined reference to `EVP_rc2_cbc'
ssl_algs.c:(.text+0x30): undefined reference to `EVP_aes_128_cbc'
ssl_algs.c:(.text+0x38): undefined reference to `EVP_aes_192_cbc'
ssl_algs.c:(.text+0x40): undefined reference to `EVP_aes_256_cbc'
ssl_algs.c:(.text+0x48): undefined reference to `EVP_md2'
ssl_algs.c:(.text+0xa8): undefined reference to `EVP_dss1'
ssl_algs.c:(.text+0xe4): undefined reference to `EVP_ecdsa'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_srvr.o): In function `ssl3_get_cert_verify':
s3_srvr.c:(.text+0x700): undefined reference to `X509_certificate_type'
s3_srvr.c:(.text+0x908): undefined reference to `DSA_verify'
s3_srvr.c:(.text+0x960): undefined reference to `ECDSA_verify'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_srvr.o): In function `ssl3_get_client_key_exchange':
s3_srvr.c:(.text+0x10f0): undefined reference to `ECDH_compute_key'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_srvr.o): In function `ssl3_send_server_key_exchange':
s3_srvr.c:(.text+0x1f70): undefined reference to `EVP_dss1'
s3_srvr.c:(.text+0x202c): undefined reference to `EVP_ecdsa'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_clnt.o): In function `ssl3_check_cert_and_algorithm':
s3_clnt.c:(.text+0xe4): undefined reference to `X509_certificate_type'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_clnt.o): In function `ssl3_send_client_key_exchange':
s3_clnt.c:(.text+0xd38): undefined reference to `ECDH_compute_key'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_clnt.o): In function `ssl3_get_key_exchange':
s3_clnt.c:(.text+0x1eac): undefined reference to `EVP_dss1'
s3_clnt.c:(.text+0x1f54): undefined reference to `EVP_ecdsa'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_enc.o): In function `ssl3_change_cipher_state':
s3_enc.c:(.text+0xc58): undefined reference to `COMP_CTX_free'
s3_enc.c:(.text+0xc70): undefined reference to `COMP_CTX_new'
s3_enc.c:(.text+0xd48): undefined reference to `COMP_CTX_free'
s3_enc.c:(.text+0xd60): undefined reference to `COMP_CTX_new'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_pkt.o): In function `ssl3_do_compress':
s3_pkt.c:(.text+0x2d0): undefined reference to `COMP_compress_block'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_pkt.o): In function `ssl3_do_uncompress':
s3_pkt.c:(.text+0x7dc): undefined reference to `COMP_expand_block'
/root/sanad/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/lib/libssl.a(s3_both.o): In function `ssl3_output_cert_chain':
s3_both.c:(.text+0x6c0): undefined reference to `X509_STORE_CTX_init'
s3_both.c:(.text+0x7c8): undefined reference to `X509_STORE_get_by_subject'
s3_both.c:(.text+0x938): undefined reference to `X509_STORE_CTX_cleanup'
collect2: ld returned 1 exit status





vikas
7 April 2009, 10:30
I have compiled it without ssl
./configure --disable-ssl

it compiled successfully over ARM


will ask for support when ssl would be required
Hugo Leisink
7 April 2009, 18:45
Try adding -lcrypto.
This topic has been closed.