Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883285 - net-libs/udns-0.4-r1 fails to compile (CLANG-STRICTER-SYSTEM): rblcheck.c:(.text+0x34f): undefined reference to dns_pton
Summary: net-libs/udns-0.4-r1 fails to compile (CLANG-STRICTER-SYSTEM): rblcheck.c:(.t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-11-27 10:58 UTC by Agostino Sarubbo
Modified: 2023-12-16 08:24 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,51.12 KB, text/plain)
2022-11-27 10:58 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 2022-11-27 10:58:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/udns-0.4 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-27 10:58:22 UTC
Created attachment 837617 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-11-27 10:58:23 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/bin/x86_64-pc-linux-gnu-ld.bfd: dnsget.c:(.text+0x1adc): undefined reference to `dns_ntop'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: dnsget.c:(.text+0x3f4): undefined reference to `dns_ntop'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: dnsget.c:(.text+0x508): undefined reference to `dns_pton'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: dnsget.c:(.text+0x53c): undefined reference to `dns_pton'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: rblcheck.c:(.text+0x55d): undefined reference to `dns_ntop'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: rblcheck.c:(.text+0x61a): undefined reference to `dns_ntop'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: rblcheck.c:(.text+0xf6b): undefined reference to `dns_ntop'
dnsget.c:(.text+0x17ca): undefined reference to `dns_ntop'
dnsget.c:(.text+0x33e): undefined reference to `dns_pton'
dnsget.c:(.text+0x9d9): undefined reference to `dns_ntop'
ex-rdns.c:(.text+0x154): undefined reference to `dns_pton'
rblcheck.c:(.text+0x34f): undefined reference to `dns_pton'
rblcheck.c:(.text+0xdc6): undefined reference to `dns_ntop'
rblcheck.c:(.text+0xefe): undefined reference to `dns_ntop'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 3 Agostino Sarubbo gentoo-dev 2023-02-16 14:02:48 UTC
tinderbox_musl has reproduced this issue with version 0.4-r1 - Updating summary.
Comment 4 Larry the Git Cow gentoo-dev 2023-07-09 02:13:16 UTC
The bug has been closed via the following commit(s):

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

commit 484780bbcbc5bbace9eebb4ed538760df7dd2343
Author:     Violet Purcell <vimproved@inventati.org>
AuthorDate: 2023-07-08 18:39:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-09 02:10:18 +0000

    net-libs/udns: Fix detection of inet_pton and inet_ntop with clang 16
    
    Closes: https://bugs.gentoo.org/883285
    Signed-off-by: Violet Purcell <vimproved@inventati.org>
    Closes: https://github.com/gentoo/gentoo/pull/31806
    Signed-off-by: Sam James <sam@gentoo.org>

 .../udns-0.4-configure-pton-ntop-clang16.patch     | 22 ++++++++++++++++++++++
 .../{udns-0.4-r1.ebuild => udns-0.4-r2.ebuild}     |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)
Comment 5 Larry the Git Cow gentoo-dev 2023-12-16 08:24:54 UTC
The bug has been referenced in the following commit(s):

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

commit fdc52315cd216a96a9956991d21f06348ef9de6e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-16 08:11:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-16 08:23:54 +0000

    net-libs/udns: fix (another) modern C issue
    
    Bug: https://bugs.gentoo.org/874759
    Bug: https://bugs.gentoo.org/883285
    Closes: https://bugs.gentoo.org/919260
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/udns/files/udns-0.4-configure-c99.patch | 33 +++++++++++++++++
 net-libs/udns/udns-0.4-r3.ebuild                 | 46 ++++++++++++++++++++++++
 2 files changed, 79 insertions(+)