Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896424 - media-radio/gpredict-2.3-r1 fails to compile (MUSL-CLANG-SYSTEM): gtk-rot-ctrl.c:87:9: error: call to undeclared function gethostbyname; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: media-radio/gpredict-2.3-r1 fails to compile (MUSL-CLANG-SYSTEM): gtk-rot-ctr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-25 07:33 UTC by Agostino Sarubbo
Modified: 2023-03-14 10:38 UTC (History)
0 users

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


Attachments
build.log (build.log,100.12 KB, text/plain)
2023-02-25 07:33 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 2023-02-25 07:33:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-radio/gpredict-2.3-r1 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-25 07:33:04 UTC
Created attachment 854532 [details]
build.log

build log and emerge --info
Comment 2 Thomas Beierlein gentoo-dev 2023-03-14 10:37:59 UTC
Hmm gethostbyname() requires _GNU_SOURCE under MUSL.
Comment 3 Larry the Git Cow gentoo-dev 2023-03-14 10:38:17 UTC
The bug has been closed via the following commit(s):

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

commit e74ebf33b91fe033f132c5ef269ae336179a8596
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2023-03-14 10:36:21 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2023-03-14 10:36:54 +0000

    media-radio/gpredict: Fix implicit-function-declaration for gethostbyname()
    
    Closes: https://bugs.gentoo.org/896424
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 .../files/gpredict-2.3-gethostbyname.patch         | 32 +++++++++++++++++++
 media-radio/gpredict/gpredict-2.3-r2.ebuild        | 37 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)