Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677484 - net-mail/fdm-1.9 : configure: error: libssl not found
Summary: net-mail/fdm-1.9 : configure: error: libssl not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-08 08:48 UTC by Toralf Förster
Modified: 2019-06-26 18:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.56 KB, text/plain)
2019-02-08 08:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,152.15 KB, text/plain)
2019-02-08 08:49 UTC, Toralf Förster
Details
environment (environment,84.19 KB, text/plain)
2019-02-08 08:49 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.77 KB, application/x-bzip)
2019-02-08 08:49 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.66 KB, application/x-bzip)
2019-02-08 08:49 UTC, Toralf Förster
Details
net-mail:fdm-1.9:20190208-080305.log (net-mail:fdm-1.9:20190208-080305.log,4.44 KB, text/plain)
2019-02-08 08:49 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.67 KB, application/x-bzip)
2019-02-08 08:49 UTC, Toralf Förster
Details
work-around patch to get fdm-1.9 to compile against openssl-1.1* (fdm-1.9-openssl.patch,253 bytes, patch)
2019-02-16 20:56 UTC, Ken Pizzini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-08 08:48:57 UTC
checking for library containing BIO_new... -lcrypto
checking for library containing SSL_library_init... no
configure: error: "libssl not found"

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-mail/fdm-1.9/work/fdm-1.9/config.log

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_20190205-121519

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *



emerge -qpvO net-mail/fdm
[ebuild  N    ] net-mail/fdm-1.9  USE="pcre -courierauth -examples -libressl"
Comment 1 Toralf Förster gentoo-dev 2019-02-08 08:49:00 UTC
Created attachment 564212 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-08 08:49:03 UTC
Created attachment 564214 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-08 08:49:06 UTC
Created attachment 564216 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-08 08:49:12 UTC
Created attachment 564218 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-08 08:49:16 UTC
Created attachment 564220 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-08 08:49:19 UTC
Created attachment 564222 [details]
net-mail:fdm-1.9:20190208-080305.log
Comment 7 Toralf Förster gentoo-dev 2019-02-08 08:49:21 UTC
Created attachment 564224 [details]
temp.tbz2
Comment 8 Ken Pizzini 2019-02-16 20:54:43 UTC
Issue is that SSL_library_init() is now (openssl-1.1.1, maybe even -1.1.0) a macro defined in <openssl/ssl.h>, but fdm's configure.ac tries to find it using AC_SEARCH_LIBS, which assumes that it is an actual symbol in the .so for the library.

Proper fix is to have upstream use a different AC_SEARCH_LIBS invocation to detect the presence of the openssl library.  A work-around is to replace
"char SSL_library_init ();" with "#include <openssl/ssl.h>" in the "configure" script (this is brittle, however, in that a re-invocation of autoconf will clobber the "fix").
Comment 9 Ken Pizzini 2019-02-16 20:56:40 UTC
Created attachment 565570 [details, diff]
work-around patch to get fdm-1.9 to compile against openssl-1.1*
Comment 10 Larry the Git Cow gentoo-dev 2019-06-25 14:31:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5372dc2164679ced7d53b2918059f1dfc76b5ea8

commit 5372dc2164679ced7d53b2918059f1dfc76b5ea8
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2019-06-25 14:27:39 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2019-06-25 14:28:53 +0000

    net-mail/fdm: new version 2.0.
    
    This new version is intended to fix bug 677484 that is killing the
    build. The previous version is a few years old, and an upgrade is
    probably easier than patching. The new version also has some other
    improvements:
    
      * Courier support was dropped (upstream commit bc34a567).
    
      * The ./configure script now supports --enable-pcre instead
        of passing PCRE=1 to "make".
    
      * The build system installs stuff into the correct locations
        without us passing variables to "make install".
    
      * User creation has been moved to pkg_preinst() since the user
        is only needed at runtime.
    
      * Use EAPI=7.
    
      * Drop unused eutils, multilib, and toolchain-funcs eclasses.
    
    Bug: https://bugs.gentoo.org/677484
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 net-mail/fdm/Manifest       |  1 +
 net-mail/fdm/fdm-2.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
Comment 11 Michael Orlitzky gentoo-dev 2019-06-25 14:32:16 UTC
It was easier to add v2.0 than to try to fix this in v1.9. Please test and let me know if it fixes the problem.
Comment 12 Alec Moskvin 2019-06-26 00:15:19 UTC
(In reply to Michael Orlitzky from comment #11)
> It was easier to add v2.0 than to try to fix this in v1.9. Please test and
> let me know if it fixes the problem.

Seems to be working fine, thanks!
Comment 13 Michael Orlitzky gentoo-dev 2019-06-26 18:51:40 UTC
(In reply to Alec Moskvin from comment #12)
> 
> Seems to be working fine, thanks!

Glad to hear it. We'll also need fdm-2.0 to go stable when openssl-1.1 does, but for now this is fixed (you should be fine if you stick to either ~arch or stable). If anyone remembers, feel free to ping me about stabilization when the time comes.