SSL compilation error

Sekcia: Programovanie 26.04.2008 | 04:02
Avatar slazer   Používateľ
Ahoj,
mam problem skompilovat jeden program (http://www.milw0rm.com/exploits/download/4312) pod linuxom. Pre whitehats:kompilujem pre studijne ucely:)
Kompilacia prebieha na Ubuntu 8.04, ktore je v podstatne standardne nastavene, rovnaky problem bol aj pod Ubuntu 7.04.
(Linux mathias-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux)
mathias@mathias-desktop:~$ gcc 4312.c
4312.c:440:28: warning: no newline at end of file
/tmp/ccAIXMjJ.o: In function `handler':
4312.c:(.text+0x1b): undefined reference to `SSL_shutdown'
4312.c:(.text+0x28): undefined reference to `SSL_free'
/tmp/ccAIXMjJ.o: In function `step':
4312.c:(.text+0xf1): undefined reference to `ERR_print_errors_fp'
/tmp/ccAIXMjJ.o: In function `main':
4312.c:(.text+0x1f5): undefined reference to `X509_print_fp'
4312.c:(.text+0x35e): undefined reference to `SSL_library_init'
4312.c:(.text+0x552): undefined reference to `SSLv23_client_method'
4312.c:(.text+0x55a): undefined reference to `SSL_CTX_new'
4312.c:(.text+0x574): undefined reference to `SSL_CTX_use_certificate'
4312.c:(.text+0x589): undefined reference to `SSL_CTX_use_PrivateKey'
4312.c:(.text+0x596): undefined reference to `SSL_new'
4312.c:(.text+0x5a8): undefined reference to `SSL_set_connect_state'
4312.c:(.text+0x5bf): undefined reference to `SSL_set_fd'
4312.c:(.text+0x5f4): undefined reference to `SSL_connect'
4312.c:(.text+0x693): undefined reference to `X509_free'
4312.c:(.text+0x6ac): undefined reference to `SSL_shutdown'
4312.c:(.text+0x6b9): undefined reference to `SSL_free'
/tmp/ccAIXMjJ.o: In function `Create_Death_Certificate':
4312.c:(.text+0x734): undefined reference to `X509_new'
4312.c:(.text+0x73c): undefined reference to `EVP_PKEY_new'
4312.c:(.text+0x763): undefined reference to `RSA_generate_key'
4312.c:(.text+0x780): undefined reference to `EVP_PKEY_assign'
4312.c:(.text+0x792): undefined reference to `X509_set_pubkey'
4312.c:(.text+0x7a5): undefined reference to `X509_set_version'
4312.c:(.text+0x7aa): undefined reference to `ASN1_INTEGER_new'
4312.c:(.text+0x7c0): undefined reference to `ASN1_INTEGER_set'
4312.c:(.text+0x7d2): undefined reference to `X509_set_serialNumber'
4312.c:(.text+0x7d7): undefined reference to `ASN1_TIME_new'
4312.c:(.text+0x7df): undefined reference to `ASN1_TIME_new'
4312.c:(.text+0x7fb): undefined reference to `ASN1_TIME_set'
4312.c:(.text+0x814): undefined reference to `ASN1_TIME_set'
4312.c:(.text+0x826): undefined reference to `X509_set_notBefore'
4312.c:(.text+0x838): undefined reference to `X509_set_notAfter'
4312.c:(.text+0x856): undefined reference to `EVP_md5'
4312.c:(.text+0x86c): undefined reference to `X509_sign'
4312.c:(.text+0x87f): undefined reference to `X509_NAME_free'
4312.c:(.text+0x88a): undefined reference to `ASN1_INTEGER_free'
4312.c:(.text+0x895): undefined reference to `ASN1_TIME_free'
4312.c:(.text+0x8a0): undefined reference to `ASN1_TIME_free'
/tmp/ccAIXMjJ.o: In function `set_subject':
4312.c:(.text+0xa0e): undefined reference to `X509_get_subject_name'
4312.c:(.text+0xa22): undefined reference to `X509_get_issuer_name'
4312.c:(.text+0xa68): undefined reference to `X509_set_subject_name'
4312.c:(.text+0xa7e): undefined reference to `X509_NAME_delete_entry'
4312.c:(.text+0xa96): undefined reference to `X509_set_issuer_name'
/tmp/ccAIXMjJ.o: In function `DUF_add_entry':
4312.c:(.text+0xab4): undefined reference to `X509_NAME_ENTRY_new'
4312.c:(.text+0xaca): undefined reference to `OBJ_txt2obj'
4312.c:(.text+0xadf): undefined reference to `X509_NAME_ENTRY_set_object'
4312.c:(.text+0xb1b): undefined reference to `ASN1_mbstring_ncopy'
4312.c:(.text+0xb3f): undefined reference to `X509_NAME_add_entry'
collect2: ld returned 1 exit status

Nainstalovane su aj tieto baliky:
libcurl4-openssl-dev
openssl
libssl-dev
libssl0.9.8
libcrypt-openssl-x509-perl

Dakujem za akekolvek info o probleme.
    • Re: SSL compilation error 26.04.2008 | 08:11
      fckr   Návštevník
      gcc -lssl 4312.c
      • Re: SSL compilation error 26.04.2008 | 12:05
        Avatar slazer   Používateľ
        Dakujem, problem vyrieseny.