Skip to content

Instantly share code, notes, and snippets.

@igalic
Created February 27, 2013 19:30
Show Gist options
  • Save igalic/5050888 to your computer and use it in GitHub Desktop.
Save igalic/5050888 to your computer and use it in GitHub Desktop.
igalic@tynix ...cs/ca/openssl/ssl-conservatory/openssl (git)-[master] % make
gcc -lcrypto -lssl test_client.o openssl_hostname_validation.o -o test_client
test_client.o: In function `send_http_get_and_print':
test_client.c:(.text+0x31): undefined reference to `BIO_new_fp'
test_client.c:(.text+0x4c): undefined reference to `BIO_puts'
test_client.c:(.text+0x6a): undefined reference to `BIO_read'
test_client.c:(.text+0x98): undefined reference to `BIO_write'
test_client.c:(.text+0xaa): undefined reference to `BIO_free'
test_client.o: In function `main':
test_client.c:(.text+0xd4): undefined reference to `SSL_library_init'
test_client.c:(.text+0xd9): undefined reference to `SSL_load_error_strings'
test_client.c:(.text+0xde): undefined reference to `RAND_status'
test_client.c:(.text+0x10b): undefined reference to `TLSv1_client_method'
test_client.c:(.text+0x113): undefined reference to `SSL_CTX_new'
test_client.c:(.text+0x12d): undefined reference to `SSL_CTX_set_verify'
test_client.c:(.text+0x143): undefined reference to `SSL_CTX_load_verify_locations'
test_client.c:(.text+0x17c): undefined reference to `SSL_CTX_set_cipher_list'
test_client.c:(.text+0x191): undefined reference to `BIO_new_ssl_connect'
test_client.c:(.text+0x1b2): undefined reference to `BIO_ctrl'
test_client.c:(.text+0x1f9): undefined reference to `BIO_ctrl'
test_client.c:(.text+0x205): undefined reference to `SSL_do_handshake'
test_client.c:(.text+0x215): undefined reference to `SSL_get_verify_result'
test_client.c:(.text+0x22c): undefined reference to `X509_verify_cert_error_string'
test_client.c:(.text+0x25c): undefined reference to `ERR_print_errors_fp'
test_client.c:(.text+0x26a): undefined reference to `SSL_get_peer_certificate'
test_client.c:(.text+0x2c2): undefined reference to `X509_free'
test_client.c:(.text+0x2d1): undefined reference to `BIO_ssl_shutdown'
test_client.c:(.text+0x2dd): undefined reference to `BIO_free_all'
test_client.c:(.text+0x2ec): undefined reference to `SSL_CTX_free'
test_client.c:(.text+0x2f1): undefined reference to `EVP_cleanup'
test_client.c:(.text+0x2f6): undefined reference to `ERR_free_strings'
openssl_hostname_validation.o: In function `matches_common_name':
openssl_hostname_validation.c:(.text+0x38): undefined reference to `X509_get_subject_name'
openssl_hostname_validation.c:(.text+0x4a): undefined reference to `X509_NAME_get_index_by_NID'
openssl_hostname_validation.c:(.text+0x69): undefined reference to `X509_get_subject_name'
openssl_hostname_validation.c:(.text+0x76): undefined reference to `X509_NAME_get_entry'
openssl_hostname_validation.c:(.text+0x94): undefined reference to `X509_NAME_ENTRY_get_data'
openssl_hostname_validation.c:(.text+0xb2): undefined reference to `ASN1_STRING_data'
openssl_hostname_validation.c:(.text+0xc2): undefined reference to `ASN1_STRING_length'
openssl_hostname_validation.o: In function `matches_subject_alternative_name':
openssl_hostname_validation.c:(.text+0x14e): undefined reference to `X509_get_ext_d2i'
openssl_hostname_validation.c:(.text+0x16f): undefined reference to `sk_num'
openssl_hostname_validation.c:(.text+0x18f): undefined reference to `sk_value'
openssl_hostname_validation.c:(.text+0x1ae): undefined reference to `ASN1_STRING_data'
openssl_hostname_validation.c:(.text+0x1c2): undefined reference to `ASN1_STRING_length'
openssl_hostname_validation.c:(.text+0x21d): undefined reference to `GENERAL_NAME_free'
openssl_hostname_validation.c:(.text+0x225): undefined reference to `sk_pop_free'
collect2: error: ld returned 1 exit status
make: *** [test_client] Error 1
2 igalic@tynix ...cs/ca/openssl/ssl-conservatory/openssl (git)-[master] %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment