Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727260 - mail-mta/opensmtpd-6.8.0_p2-r1: VIS_{CSTYLE,NL,SAFE} undefined on musl
Summary: mail-mta/opensmtpd-6.8.0_p2-r1: VIS_{CSTYLE,NL,SAFE} undefined on musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason A. Donenfeld
URL: https://github.com/OpenSMTPD/OpenSMTP...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-06-05 20:53 UTC by Stijn Tintel
Modified: 2023-04-26 03:51 UTC (History)
2 users (show)

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


Attachments
build.log of mail-mta/opensmtpd-6.7.1_p1 (build.log,64.82 KB, text/x-log)
2020-06-05 20:54 UTC, Stijn Tintel
Details
emerge --info mail-mta/opensmtpd (emerge-info.txt,7.55 KB, text/plain)
2020-06-05 23:38 UTC, Stijn Tintel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Tintel 2020-06-05 20:53:51 UTC
mail-mta/opensmtpd-6.7.1_p1 does not compile on musl systems.
mail-mta/opensmtpd-6.6.4_p1 compiled fine, please consider restoring it to the tree for now as a quick fix.

Reproducible: Always

Steps to Reproduce:
1. emerge mail-mta/opensmtpd

Actual Results:  
 * ERROR: mail-mta/opensmtpd-6.7.1_p1::gentoo failed (compile phase):
 *   emake failed

Expected Results:  
opensmtpd should install without issue
Comment 1 Stijn Tintel 2020-06-05 20:54:30 UTC
Created attachment 643568 [details]
build.log of mail-mta/opensmtpd-6.7.1_p1
Comment 2 Jonas Stein gentoo-dev 2020-06-05 23:09:30 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* paste the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 3 Stijn Tintel 2020-06-05 23:38:19 UTC
Created attachment 643574 [details]
emerge --info mail-mta/opensmtpd
Comment 4 Agostino Sarubbo gentoo-dev 2022-01-24 20:41:11 UTC
tinderbox_musl has reproduced this issue with version 6.8.0_p2-r1 - Updating summary.
Comment 5 orbea 2023-04-25 15:36:05 UTC
The real issue is:

../../smtpd/mda.c:552:9: warning: implicit declaration of function 'strnvis'; did you mean 'strip'? [-Wimplicit-function-declaration]

Where the correct 'vis.h' needs to be included.
Comment 6 Larry the Git Cow gentoo-dev 2023-04-26 03:51:49 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(+)