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

Bug 895050

Summary: dev-libs/libspt-1.1-r4 fails to compile (MUSL-CLANG-SYSTEM): sptagent.c:1035:5: error: call to undeclared function gettimeofday; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: CJK Team <cjk>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/33619
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412, 941869    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-02-17 08:16:32 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/libspt-1.1-r4 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-17 08:16:34 UTC
Created attachment 851964 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-07-05 08:16:44 UTC
*** Bug 920642 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2024-11-07 20:15:45 UTC
The bug has been closed via the following commit(s):

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

commit 45316ada568cb0962417ba4b68727d35ee0d049d
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-11-07 20:14:41 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-11-07 20:15:24 +0000

    dev-libs/libspt: fix compilation with musl
    
    Closes: https://bugs.gentoo.org/895050
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-libs/libspt/files/libspt-gettimeofday.patch | 14 ++++++++++++++
 dev-libs/libspt/libspt-1.1-r4.ebuild            |  3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)