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

Bug 896204

Summary: media-gfx/dcraw-9.28.0-r2 fails to compile (MUSL-CLANG-SYSTEM): dcraw.c:10101:3: 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: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: normal Keywords: PullRequest
Priority: Normal    
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-24 09:12:00 UTC

Issue: media-gfx/dcraw-9.28.0-r2 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-24 09:12:02 UTC
Created attachment 854286 [details]

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-10-31 19:34:59 UTC
The bug has been closed via the following commit(s):

commit 6172f7056a106ec032d333e1c0b3eb64af5813a2
Author:     Pascal Jäger <>
AuthorDate: 2023-09-22 11:26:39 +0000
Commit:     Andreas K. Hüttel <>
CommitDate: 2023-10-31 19:27:34 +0000

    media-gfx/dcraw: revbump, fix bugs
    Signed-off-by: Pascal Jäger <>
    Signed-off-by: Andreas K. Hüttel <>

 media-gfx/dcraw/dcraw-9.28.0-r3.ebuild             | 130 +++++++++++++++++++++
 .../dcraw-9.28.0-fix-LC_CTYPE-undeclared.patch     |  17 +++
 ...dcraw-9.28.0-fix-memmem-wrong-return-type.patch |  17 +++
 3 files changed, 164 insertions(+)