2.73.2: build failure on musl >= 1.2.0
musl added support for the pidfd_open(2)
syscall in v1.2.0, see commit:
https://git.musl-libc.org/cgit/musl/commit/?id=a45289112c033fe96d1c50a8908cbe58892db5c6
But doesn't define the W_EXITCODE
nor W_STOPCODE
extensions, which causes a build failure when GLib 2.73.2 is built:
ninja: job failed: aarch64-linux-musl-gcc -Iglib/libglib-2.0.a.p -Iglib -I../glib -I. -I.. -I/target/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -O3 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wduplicated-branches -Wimplicit-fallthrough -Wmisleading-indentation -Wunused -Wno-unused-parameter -Wno-cast-function-type -Wno-pedantic -Wno-format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self -Werror=missing-include-dirs -Werror=pointer-arith -Werror=unused-result -Wstrict-prototypes -Wno-bad-function-cast -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pointer-sign -march=armv8-a -Os -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -fPIC -pthread '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -MD -MQ glib/libglib-2.0.a.p/gmain.c.o -MF glib/libglib-2.0.a.p/gmain.c.o.d -o glib/libglib-2.0.a.p/gmain.c.o -c ../glib/gmain.c
../glib/gmain.c: In function ‘siginfo_t_to_wait_status’:
../glib/gmain.c:5554:14:error: implicit declaration of function ‘W_EXITCODE’; did you mean ‘WEXITED’? [-Werror=implicit-function-declaration]
5554 | return W_EXITCODE (info->si_status, 0);
| ^~~~~~~~~~
| WEXITED
../glib/gmain.c:5572:14:error: implicit declaration of function ‘W_STOPCODE’; did you mean ‘WSTOPPED’? [-Werror=implicit-function-declaration]
5572 | return W_STOPCODE (info->si_status);
| ^~~~~~~~~~
| WSTOPPED
cc1: some warnings being treated as errors
ninja: subcommand failed
(full build log: https://github.com/kleisauke/libvips-packaging/runs/7316773714)
See also vte#72 (comment 489915) for reasons why these extensions are not included in musl.