Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895842 - dev-util/premake-5.0.0_beta2 fails to compile (MUSL-CLANG-SYSTEM): mkstemp.c:76:8: error: call to undeclared function getpid; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: dev-util/premake-5.0.0_beta2 fails to compile (MUSL-CLANG-SYSTEM): mkstemp.c:...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-22 08:32 UTC by Agostino Sarubbo
Modified: 2024-05-25 08:27 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,50.77 KB, text/plain)
2023-02-22 08:32 UTC, Agostino Sarubbo
Details
#include <unistd.h> in contrib/libzip/mkstemp.c (premake-5.0.0-getpid-unistd.patch,444 bytes, patch)
2024-05-17 14:20 UTC, Jon Daniel
Details | Diff
add getpid-unistd.patch (premake-5.0.0_beta2-r1.ebuild,740 bytes, application/vnd.gentoo.ebuild)
2024-05-17 14:22 UTC, Jon Daniel
Details
add HAVE_UNISTD_H #include <unistd.h> and #include "zipint.h" (premake-5.0.0-getpid-unistd.patch,1.11 KB, patch)
2024-05-17 14:43 UTC, Jon Daniel
Details | Diff
unistd.h patch (premake-5.0.0-getpid-unistd.patch,1.65 KB, patch)
2024-05-17 14:52 UTC, Jon Daniel
Details | Diff

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

Issue: dev-util/premake-5.0.0_alpha16 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-22 08:32:14 UTC
Created attachment 853838 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-12-30 09:42:52 UTC
gcc14_tinderbox has reproduced this issue with version 5.0.0_beta2 - Updating summary.
Comment 3 Jon Daniel 2024-05-17 14:20:42 UTC
Created attachment 893152 [details, diff]
#include <unistd.h> in contrib/libzip/mkstemp.c
Comment 4 Jon Daniel 2024-05-17 14:22:55 UTC
Created attachment 893153 [details]
add getpid-unistd.patch
Comment 5 Jon Daniel 2024-05-17 14:43:45 UTC
Created attachment 893154 [details, diff]
add HAVE_UNISTD_H #include <unistd.h> and #include "zipint.h"
Comment 6 Jon Daniel 2024-05-17 14:52:21 UTC
Created attachment 893155 [details, diff]
unistd.h patch