Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739876 - mail-mta/opensmtpd-6.8.0_p2-r1 fails to compile: configure: error: *** Can't find recent LibreSSL libcrypto (see config.log for details) ***
Summary: mail-mta/opensmtpd-6.8.0_p2-r1 fails to compile: configure: error: *** Can't ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: missing-depend
  Show dependency tree
 
Reported: 2020-09-01 12:54 UTC by Agostino Sarubbo
Modified: 2023-04-29 05:47 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,23.20 KB, text/plain)
2020-09-01 12:54 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,532.21 KB, text/plain)
2020-09-01 12:54 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-01 12:54:50 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: mail-mta/opensmtpd-6.7.1_p1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-01 12:54:53 UTC
Created attachment 657730 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-01 12:54:55 UTC
Created attachment 657732 [details]
1-config.log

1-config.log
Comment 3 Agostino Sarubbo gentoo-dev 2022-01-10 08:28:35 UTC
tinderbox has reproduced this issue with version 6.8.0_p2-r1 - Updating summary.
Comment 4 orbea 2023-04-25 15:03:35 UTC
This only occurs on multilib + clang systems, configure.ac has several instances where it hard codes the libdir during configure tests.
Comment 5 Larry the Git Cow gentoo-dev 2023-04-26 03:51:48 UTC
The bug has been closed via the following commit(s):

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

commit a05af7c36a3e4e74879cad3c03ef4ca2e3601b82
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-04-25 14:38:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-26 03:51:12 +0000

    mail-mta/opensmtpd: Build fixes
    
    Fixes some build issues:
    
    * Build failure on musl systems
    * Build failure with clang-16
    * Uses AM_PROG_AR to find ar(1) during configure
    * Uses configure arguments to find libevent and libssl on multilib
      systems.
    
    Closes: https://bugs.gentoo.org/720782
    Closes: https://bugs.gentoo.org/727260
    Closes: https://bugs.gentoo.org/739876
    Closes: https://bugs.gentoo.org/896050
    Closes: https://bugs.gentoo.org/899876
    Upstream-Issue: https://github.com/OpenSMTPD/OpenSMTPD/issues/1065
    Upstream-PR: https://github.com/OpenSMTPD/OpenSMTPD/pull/1195
    Upstream-PR: https://github.com/OpenSMTPD/OpenSMTPD/pull/1198
    Upstream-PR: https://github.com/OpenSMTPD/OpenSMTPD/pull/1199
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/30750
    Signed-off-by: Sam James <sam@gentoo.org>

 .../opensmtpd/files/opensmtpd-6.8.0_p2-ar.patch    |  42 +++
 ...pd-6.8.0_p2-implicit-function-declaration.patch | 303 +++++++++++++++++++++
 .../opensmtpd-6.8.0_p2-strict-prototypes.patch     |  74 +++++
 mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r3.ebuild    |  91 +++++++
 4 files changed, 510 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2023-04-29 05:47:06 UTC
The bug has been referenced in the following commit(s):

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

commit c3ef6da30448f328b0d173d38c944b6f6ce3171a
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-04-28 20:04:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-29 05:46:33 +0000

    mail-mta/opensmtpd: fix libdir path
    
    This fixes the path from the previous commit that sets the libevent and
    libssl paths explicitly to avoid configure failures on multilib systems
    that use lld where the incorrect lib directory is linked.
    
    The configure check will test the path as a sysroot and then will take
    it in its entirety in the 'else' case.
    
    Fixes: https://github.com/gentoo/gentoo/commit/a05af7c36a3e4e74879cad3c03ef4ca2e3601b82
    Bug: https://bugs.gentoo.org/739876
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/30803
    Signed-off-by: Sam James <sam@gentoo.org>

 mail-mta/opensmtpd/opensmtpd-6.8.0_p2-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)