Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 907833

Summary: net-mail/fdm-2.2-r3 has implicit function declarations in configure logs (MUSL-SYSTEM)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: arkamar
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906027, 941869    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-06-04 11:54:05 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-mail/fdm-2.2-r1 has implicit function declarations in configure logs (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
See also: https://bugs.gentoo.org/898488#c4.
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-04 11:54:07 UTC
Created attachment 863217 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-04 11:54:09 UTC
Found the following implicit function declarations in configure logs:

config.log:743 - b64_ntop
config.log:792 - b64_ntop
Comment 3 Agostino Sarubbo gentoo-dev 2024-02-14 08:12:57 UTC
tinderbox_musl has reproduced this issue with version 2.2-r2 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2024-12-01 10:19:04 UTC
tinderbox_musl has reproduced this issue with version 2.2-r3 - Updating summary.
Comment 5 Petr Vaněk gentoo-dev 2025-01-10 10:46:02 UTC
The issue here is that the musl does not provide b64_ntop function at all, that is why the implicit function declaration is triggered. The configuration test fails later, because the program cannot be linked anyway.

> checking for b64_ntop... no
> checking for b64_ntop with -lresolv... no

What is the proper fix for this issue? Should the test function redeclare the function prototype to silent the implicit function declaration warning?
Comment 6 Larry the Git Cow gentoo-dev 2025-01-10 13:26:38 UTC
The bug has been closed via the following commit(s):

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

commit 40934b99ce963b13e33514aa345a4cca68d278a2
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2025-01-10 13:15:41 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2025-01-10 13:26:27 +0000

    net-mail/fdm: skip qa check for b64_ntop
    
    Musl does no provide b64_ntop function, therefore the implicit function
    declaration message is rather false positive. fdm fallbacks to compat
    implementation based on this configuration check.
    
    Closes: https://bugs.gentoo.org/907833
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 net-mail/fdm/fdm-2.2-r3.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)