Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896210 - media-gfx/gozer-0.7-r4 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:571:30: error: call to undeclared library function strcmp with type int (const char , const char ); ISO C99 and later do not support implicit function declarations [-Wimplicit-function
Summary: media-gfx/gozer-0.7-r4 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:571:30:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-24 09:17 UTC by Agostino Sarubbo
Modified: 2023-10-01 16:57 UTC (History)
0 users

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


Attachments
build.log (build.log,56.36 KB, text/plain)
2023-02-24 09:17 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-24 09:17:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/gozer-0.7-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-24 09:17:47 UTC
Created attachment 854292 [details]
build.log

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


getopt.c:208:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:384:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:397:28: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:962:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt1.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt1.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getopt.c:571:30: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2023-10-01 16:57:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8540d29e1a7e96241bb845e3083fe577df2a26e7

commit 8540d29e1a7e96241bb845e3083fe577df2a26e7
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-10-01 16:57:31 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-10-01 16:57:31 +0000

    media-gfx/gozer: Fix call to undeclared library function strcmp
    
    Closes: https://github.com/gentoo/gentoo/pull/33148
    Closes: https://bugs.gentoo.org/896210
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Signed-off-by: David Seifert <soap@gentoo.org>

 media-gfx/gozer/files/gozer-0.7-fix-build-with-clang16.patch | 11 +++++++++++
 media-gfx/gozer/{gozer-0.7-r4.ebuild => gozer-0.7-r5.ebuild} |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)