Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894316 - app-admin/mcelog-191 fails to compile (MUSL-CLANG-SYSTEM): client.c:47:2: error: call to undeclared library function strncpy with type char (char , const char , unsigned long); ISO C99 and later do not support implicit function declarations [-Wimplicit-f
Summary: app-admin/mcelog-191 fails to compile (MUSL-CLANG-SYSTEM): client.c:47:2: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-14 08:33 UTC by Agostino Sarubbo
Modified: 2023-06-14 14:10 UTC (History)
0 users

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


Attachments
build.log (build.log,55.80 KB, text/plain)
2023-02-14 08:33 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-14 08:33:08 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-admin/mcelog-191 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-14 08:33:10 UTC
Created attachment 851004 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-14 08:33:12 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


cmp: lookup_intel_cputype.c: No such file or directory
cmp: version.c: No such file or directory
client.c:47:2: error: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2023-06-14 14:10:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2a2b302b1f169bd6c0337ab8b5365300edfd46

commit 5d2a2b302b1f169bd6c0337ab8b5365300edfd46
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-06-12 11:24:17 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-06-14 14:10:33 +0000

    app-admin/mcelog: Fix call to undeclared library function strncpy on musl
    
    Closes: https://bugs.gentoo.org/894316
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31397
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 app-admin/mcelog/files/mcelog-194-musl-fix.patch | 21 +++++++++
 app-admin/mcelog/mcelog-194-r1.ebuild            | 55 ++++++++++++++++++++++++
 2 files changed, 76 insertions(+)