Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894204 - app-admin/gtkdiskfree-2.0.4_p20200224 fails to compile (MUSL-CLANG-SYSTEM): main.c:45:5: error: call to undeclared function setlocale; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: app-admin/gtkdiskfree-2.0.4_p20200224 fails to compile (MUSL-CLANG-SYSTEM): m...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Samuel Bauer
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
Reported: 2023-02-13 16:26 UTC by Agostino Sarubbo
Modified: 2023-07-24 06:31 UTC (History)
1 user (show)

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

build.log (build.log,83.90 KB, text/plain)
2023-02-13 16:26 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-13 16:26:21 UTC

Issue: app-admin/gtkdiskfree-2.0.4_p20200224 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

(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-13 16:26:23 UTC
Created attachment 850708 [details]

build log and emerge --info
Comment 2 Samuel Bauer 2023-07-03 12:41:16 UTC

*** This bug has been marked as a duplicate of bug 830268 ***
Comment 3 Larry the Git Cow gentoo-dev 2023-07-24 06:31:00 UTC
The bug has been closed via the following commit(s):

commit 26595685e8adf66589c45923d3cee362b19a5876
Author:     Brahmajit Das <>
AuthorDate: 2023-06-29 19:10:43 +0000
Commit:     Joonas Niilola <>
CommitDate: 2023-07-24 06:30:57 +0000

    app-admin/gtkdiskfree: Fix call to undeclared function setlocale
    Signed-off-by: Brahmajit Das <>
    Signed-off-by: Joonas Niilola <>

 .../files/gtkdiskfree-2.0.4-musl-setlocale.patch   | 11 +++++++
 .../gtkdiskfree-2.0.4_p20200224-r1.ebuild          | 37 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)