[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Issues compiling libevent 2.0.22-stable on OS X 10.11.6 (15G31) and OpenSSL 1.1.0c 10 Nov 2016



On Sat, Nov 12, 2016 at 2:22 AM, varun <varun.net@xxxxxxxxx> wrote:
> Hi,
>
> Now I am getting a different error on make for libevent-release-2.1.7-rc:
>
> Undefined symbols for architecture x86_64:
>   "_OPENSSL_init_crypto", referenced from:
>       _main in le-proxy.o
>   "_OPENSSL_init_ssl", referenced from:
>       _main in le-proxy.o
>   "_TLS_method", referenced from:
>       _main in le-proxy.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[1]: *** [sample/le-proxy] Error 1
> make: *** [all] Error 2
>
>
>
> I configured, compiled and install openssl-.1.1.0c with the correct target
> platform.
> ~/openssl-1.1.0c $ ./configure darwin64-x86_64-cc && make

Hi!

So in openssl 1.1 thouse functions was deprecated [1], and in [2]
le-proxy.c wasn't fixed.
But what bothers me is that those functions *should exist*, but seems
that OPENSSL_NO_DEPRECATED do this.

Anyway can you give [3] a try?

[1]: https://www.openssl.org/docs/man1.1.0/ssl/SSL_library_init.html
[2]: https://github.com/libevent/libevent/pull/397
[3]: https://github.com/libevent/libevent/compare/master...azat:openssl-1.1-init-fixes.patch
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.