Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896224 - media-gfx/metapixel-1.0.2-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:354:54: error: call to undeclared function getpid; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: media-gfx/metapixel-1.0.2-r1 fails to compile (MUSL-CLANG-SYSTEM): getopt.c:3...
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:28 UTC by Agostino Sarubbo
Modified: 2023-12-25 10:02 UTC (History)
0 users

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


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

Issue: media-gfx/metapixel-1.0.2-r1 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:28:03 UTC
Created attachment 854306 [details]
build.log

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


:75: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:200: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
getopt.c:256: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:317: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:328: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:355:32: 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:422: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:748: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:59: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:354:54: error: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Larry the Git Cow gentoo-dev 2023-12-25 10:02:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80952b50674915d288f1a16db40f3be354550d2f

commit 80952b50674915d288f1a16db40f3be354550d2f
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-09-23 18:05:37 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-12-25 10:00:02 +0000

    media-gfx/metapixel: Fix call to undeclared function getpid
    
    and update EAPI 6 -> 8
    
    Closes: https://bugs.gentoo.org/896224
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32963
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/metapixel-1.0.2-clang16-build-fix.patch  | 12 ++++++
 media-gfx/metapixel/metapixel-1.0.2-r2.ebuild      | 44 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)