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

Bug 897862

Summary: net-dns/dnssec-validator-2.2.3-r2 fails to compile (MUSL-CLANG-SYSTEM): res_tsig.c:142:9: error: call to undeclared function ns_name_pton; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/32816
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-02-26 08:22:03 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-dns/dnssec-validator-2.2.3-r2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-26 08:22:05 UTC
Created attachment 854764 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-26 08:22:07 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


checking if clang supports -c -o file.o... rm: cannot remove 'conftest*': No such file or directory
checking whether -lc should be explicitly linked in... rm: cannot remove 'conftest*': No such file or directory
rm: cannot remove 'libtoolT': No such file or directory
res_tsig.c:142:9: error: call to undeclared function 'ns_name_pton'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Conrad Kostecki gentoo-dev 2023-05-07 12:41:56 UTC
@sam: any ideas for this one?
Comment 4 Larry the Git Cow gentoo-dev 2023-09-15 22:48:22 UTC
The bug has been closed via the following commit(s):

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

commit 2f7374f8b31e0fe9f912ab51936b5419347e60d9
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-09-15 19:26:04 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2023-09-15 22:47:42 +0000

    net-dns/dnssec-validator: Fix call to undeclared function ns_name_pton
    
    Closes: https://bugs.gentoo.org/897862
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32816
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../dnssec-validator-2.2.3-r4.ebuild               | 61 ++++++++++++++++++++++
 .../files/dnssec-validator-2.2.3-musl-fix.patch    | 29 ++++++++++
 2 files changed, 90 insertions(+)