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

Bug 894204

Summary: 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]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Samuel Bauer <samuel.bauer>
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

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(+)