pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/60203: devel/glib2 build breaks on netbsd-9
>Number: 60203
>Category: pkg
>Synopsis: devel/glib2 build breaks on netbsd-9
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 22 12:45:00 +0000 2026
>Originator: Hauke Fath
>Release: NetBSD 9.4_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:
System: NetBSD Bounce 9.4_STABLE NetBSD 9.4_STABLE (DMZ_DOMU) #0: Fri Aug 1 21:24:54 CEST 2025 hf4kh@Hochstuhl:/var/obj/netbsd-builds/9/amd64/sys/arch/amd64/compile/DMZ_DOMU amd64
Architecture: x86_64
Machine: amd64
>Description:
Recent devel/glib2 package builds break on netbsd-9:
[...]
[65/1488] Compiling C object glib/libglib-2.0.so.0.8800.0.p/gslist.c.o
../glib/gslist.c: In function 'g_slist_insert':
../glib/gslist.c:284:29: warning: potential null pointer dereference [-Wnull-dereference]
new_list->next = prev_list->next;
~~~~~~~~~^~~~~~
../glib/gslist.c:285:19: warning: potential null pointer dereference [-Wnull-dereference]
prev_list->next = new_list;
~~~~~~~~~~~~~~~~^~~~~~~~~~
[99/1488] Compiling C object glib/libglib-2.0.so.0.8800.0.p/glib-unix.c.o
FAILED: [code=1] glib/libglib-2.0.so.0.8800.0.p/glib-unix.c.o
gcc -Iglib/libglib-2.0.so.0.8800.0.p -Iglib -I../glib -I. -I.. -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/python3.12 -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wduplicated-branches -Wfloat-conversion -Wimplicit-fallthrough -Wmisleading-indentation -Wmissing-field-initializers -Wnonnull -Wnull-dereference -Wunused -Wno-unused-parameter -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=implicit-function-declaration -Werror=missing-prototypes -Werror=pointer-sign -O2 -Dz_off_t=long -fPIC -pthread '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -MD -MQ glib/libglib-2.0.so.0.8800.0.p/glib-unix.c.o -MF glib/libglib-2.0.so.0.8800.0.p/glib-unix.c.o.d -o glib/libglib-2.0.so.0.880!
0.0.p/glib-unix.c.o -c ../glib/glib-unix.c
../glib/glib-unix.c: In function 'g_closefrom':
../glib/glib-unix.c:889:7: warning: unused variable 'ret' [-Wunused-variable]
int ret;
^~~
../glib/glib-unix.c: In function 'g_unix_fd_query_path':
../glib/glib-unix.c:989:18: error: 'F_GETPATH' undeclared (first use in this function); did you mean '_CS_PATH'?
if (fcntl (fd, F_GETPATH, file_path) < 0)
^~~~~~~~~
_CS_PATH
../glib/glib-unix.c:989:18: note: each undeclared identifier is reported only once for each function it appears in
[102/1488] Compiling C object glib/libglib-2.0.so.0.8800.0.p/gspawn-posix.c.o
ninja: build stopped: subcommand failed.
*** Error code 1
[...]
since its /usr/include/fcntl.h does not have F_GETPATH, and the OS
dependent code in g_unix_fd_query_path() does not account for that.
I made the PR critical:high because glib2 is high up in the package
dependency tree.
>How-To-Repeat:
Build devel/glib2 on netbsd-9.
>Fix:
Yes, please.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index