Summary: | net-mail/dovecot-2.2.27 : ../.../libssl_iostream_openssl.so: undefined reference to `OPENSSL_cleanup' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Eray Aslan <eras> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | isidansick, net-mail+disabled, randy, tsmksubc |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 561854 | ||
Attachments: |
config.log
emerge-history.txt environment etc.portage.tbz2 net-mail:dovecot-2.2.27:20161206-222142.log |
Description
Toralf Förster
2016-12-07 07:56:00 UTC
Created attachment 455320 [details]
config.log
Created attachment 455322 [details]
emerge-history.txt
Created attachment 455324 [details]
environment
Created attachment 455326 [details]
etc.portage.tbz2
Created attachment 455328 [details]
net-mail:dovecot-2.2.27:20161206-222142.log
Related to 599024? No. In #599024, link fails because libssl_iostream_openssl.la does not exist. In this bug, link fails because libssl_iostream_openssl.so does not contain the symbol OPENSSL_cleanup, which does not exist in libressl. Try this patch: --- a/src/lib-ssl-iostream/dovecot-openssl-common.c +++ b/src/lib-ssl-iostream/dovecot-openssl-common.c @@ -101,7 +101,7 @@ ERR_remove_thread_state(NULL); #endif ERR_free_strings(); -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) OPENSSL_cleanup(); #endif Ha. Yes, that does work, and it does not result in the segfault that that call is there to prevent. I have sent a pull request upstream. See https://github.com/dovecot/core/commit/b4884ca2e67bb794786419d9e7b6140842b03bcc for the reason why that line is in there. See https://github.com/dovecot/core/pull/30 for the pull request. Please add this to bug #561854 as blocker. This is fixed in all ebuilds in the tree. |