maintainer-feedback requested: [Bug 295284] devel/libgtop: 'offset.inc' file not found

[email protected] Thu, 14 May 2026 15:03:03 +0000
Newsgroups gmane.os.freebsd.devel.gnome
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-gnome (Nobody)
<[email protected]> for maintainer-feedback:
Bug 295284: devel/libgtop: 'offset.inc' file not found
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295284



--- Description ---
The build error:


/bin/sh ../../libtool  --tag=CC   --mode=link cc  -Winline	-Wall  
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes  
-Wnested-externs -Wpointer-arith       -Wcast-align -Wsign-compare	-O2
-pipe  -fstack-protector-strong -fno-strict-aliasing  -version-info 12:0:1  -o
libgtop_sysdeps-2.0.la	nosuid.lo siglist.lo sysinfo.lo shm_limits.lo cpu.lo
msg_limits.lo sem_limits.lo loadavg.lo uptime.lo netlist.lo fsusage.lo mem.lo
disk.lo mountlist.lo procopenfiles.lo procwd.lo procaffinity.lo
glibtop_private.lo open.lo  -lutil
In file included from procmap.c:54:
In file included from /usr/include/sys/mount.h:39:
In file included from /usr/include/sys/systm.h:100:
/usr/include/sys/kpilite.h:31:10: fatal error: 'offset.inc' file not found
   31 | #include "offset.inc"
      | 	 ^~~~~~~~~~~~


Bug was introduced in freebsd-src@32cf4514cad66ff69ffc96ede20d8debc9b96790
which added `#include <sys/systm.h>` to `mount.h`

`systm.h` in turn includes `kpilite.h` which has the following ifdef that seems
to return true when building this port:


#if !defined(GENOFFSET) && (!defined(KLD_MODULE) || defined(KLD_TIED)) &&
defined(_KERNEL)
#include "offset.inc"