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

Bug 898922

Summary: x11-plugins/wmDownload-0.1.2a-r3 fails to compile (MUSL-CLANG-SYSTEM): wmDownload.c:208:14: error: call to undeclared function strtouq; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31032
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-03-02 14:50:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-plugins/wmDownload-0.1.2a-r3 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-03-02 14:50:38 UTC
Created attachment 855800 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-05-25 07:17:43 UTC
The bug has been closed via the following commit(s):

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

commit 87c55164677082145e716a0df4a54d816ff1f0af
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-05-14 09:25:25 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2023-05-25 07:17:38 +0000

    x11-plugins/wmDownload: Fix error: call to undeclared function strtouq
    
    Dont use strtouq while builing on non-glibc systems
    
    Closes: https://bugs.gentoo.org/898922
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31032
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 .../wmDownload/files/wmDownload-strtouq-musl.patch | 24 ++++++++++++++
 x11-plugins/wmDownload/wmDownload-0.1.2a-r4.ebuild | 37 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)