Re: [exim-dev] [exim] Avoid OpenSSL 1.0.1 for Exim, for now

Top Page
Delete this message
Reply to this message
Author: Todd Lyons
Date:  
To: exim-dev
Subject: Re: [exim-dev] [exim] Avoid OpenSSL 1.0.1 for Exim, for now
On Thu, May 3, 2012 at 6:21 AM, Phil Pennock <pdp@???> wrote:
> Folks,
>
> OpenSSL 1.0.1 adds support for TLS1.1 and TLS1.2.  It is also not
> working with Exim at present!


Do the test suite binaries, specifically client-ssl, build for you
with openssl 1.0.1? On my Ubuntu 11.04 box with openssl 0.9.8, it
builds just fine. On my Ubuntu 12.04 laptop with openssl 1.0.1, it
blows up:

gcc -g -O2 -DHAVE_OPENSSL -lssl -lcrypto -o bin/client-ssl src/client.c
/tmp/ccgVn7Zy.o: In function `info_callback':
/home/todd/projects/exim/test/src/client.c:196: undefined reference to
`SSL_state_string_long'
/tmp/ccgVn7Zy.o: In function `tls_start':
/home/todd/projects/exim/test/src/client.c:157: undefined reference to
`RAND_load_file'
/home/todd/projects/exim/test/src/client.c:159: undefined reference to `SSL_new'
/home/todd/projects/exim/test/src/client.c:160: undefined reference to
`SSL_set_session_id_context'
/home/todd/projects/exim/test/src/client.c:161: undefined reference to
`SSL_set_fd'
/home/todd/projects/exim/test/src/client.c:162: undefined reference to
`SSL_set_connect_state'
/home/todd/projects/exim/test/src/client.c:167: undefined reference to
`SSL_connect'
/home/todd/projects/exim/test/src/client.c:182: undefined reference to
`SSL_get_current_cipher'
/home/todd/projects/exim/test/src/client.c:182: undefined reference to
`SSL_CIPHER_get_name'
/home/todd/projects/exim/test/src/client.c:178: undefined reference to
`ERR_print_errors_fp'
/tmp/ccgVn7Zy.o: In function `main':
/home/todd/projects/exim/test/src/client.c:582: undefined reference to
`SSL_library_init'
/home/todd/projects/exim/test/src/client.c:583: undefined reference to
`SSL_load_error_strings'
/home/todd/projects/exim/test/src/client.c:585: undefined reference to
`SSLv23_method'
/home/todd/projects/exim/test/src/client.c:585: undefined reference to
`SSL_CTX_new'
/home/todd/projects/exim/test/src/client.c:594: undefined reference to
`SSL_CTX_use_certificate_file'
/home/todd/projects/exim/test/src/client.c:604: undefined reference to
`SSL_CTX_use_PrivateKey_file'
/home/todd/projects/exim/test/src/client.c:612: undefined reference to
`SSL_CTX_ctrl'
/home/todd/projects/exim/test/src/client.c:613: undefined reference to
`SSL_CTX_set_timeout'
/home/todd/projects/exim/test/src/client.c:614: undefined reference to
`SSL_CTX_set_info_callback'
/home/todd/projects/exim/test/src/client.c:853: undefined reference to
`SSL_write'
/home/todd/projects/exim/test/src/client.c:682: undefined reference to
`SSL_read'
/home/todd/projects/exim/test/src/client.c:797: undefined reference to
`SSL_shutdown'
/home/todd/projects/exim/test/src/client.c:798: undefined reference to
`SSL_free'
collect2: ld returned 1 exit status
make: *** [bin/client-ssl] Error 1

Googling really hasn't resulted in anything yet. It does seem to be
finding the include files, so I suspect a syntax error, but I can't
find it.

...Todd
--
Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. -- Martin Golding