Bug#1141351: apitrace: FTBFS: error: macro ‘PIDS_VAL’ passed 4 arguments, but takes just 3

Sebastian Ramacher <[email protected]> Fri, 3 Jul 2026 11:00:46 +0200
Newsgroups gmane.linux.debian.devel.x
Message-ID <akd6Ph1wLdK09a1p__24919.9463099771$1783069410$gmane$org@ramacher.at>
Source: apitrace
Version: 13.0+repack-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: [email protected]

Dear maintainer,

apitrace FTBFS with procps 4.0.6:

cd /build/reproducible-path/apitrace-13.0+repack/obj-x86_64-linux-gnu/retrace && /usr/bin/x86_64-linux-gnu-g++ -DHAVE_LIBPROC2_PIDS_H -DHAVE_X11 -DRETRACE -D_GNU_SOURCE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/reproducible-path/apitrace-13.0+repack/thirdparty/khronos -I/build/reproducible-path/apitrace-13.0+repack/compat -I/build/reproducible-path/apitrace-13.0+repack/lib/trace -I/build/reproducible-path/apitrace-13.0+repack/lib/os -I/build/reproducible-path/apitrace-13.0+repack/retrace -I/build/reproducible-path/apitrace-13.0+repack/obj-x86_64-linux-gnu -I/build/reproducible-path/apitrace-13.0+repack/lib/highlight -I/build/reproducible-path/apitrace-13.0+repack/helpers -I/build/reproducible-path/apitrace-13.0+repack/obj-x86_64-linux-gnu/dispatch -I/build/reproducible-path/apitrace-13.0+repack/dispatch -I/build/reproducible-path/apitrace-13.0+repack/lib/image -I/build/reproducible-path/apitrace-13.0+repack/lib/ubjson -I/build/reproducible-path/apitrace-13.0+repack/thirdparty/dxerr -I/build/reproducible-path/apitrace-13.0+repack/thirdparty/mhook/mhook-lib -g -O2 -ffile-prefix-map=/build/reproducible-path/apitrace-13.0+repack=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fvisibility=hidden -Wall -Wno-sign-compare -fno-strict-aliasing -fno-rtti -fno-exceptions -fmessage-length=0 -fno-omit-frame-pointer -std=gnu++17 -flto=auto -fno-fat-lto-objects -MD -MT retrace/CMakeFiles/glretrace_common.dir/glretrace_main.cpp.o -MF CMakeFiles/glretrace_common.dir/glretrace_main.cpp.o.d -o CMakeFiles/glretrace_common.dir/glretrace_main.cpp.o -c /build/reproducible-path/apitrace-13.0+repack/retrace/glretrace_main.cpp
In file included from /build/reproducible-path/apitrace-13.0+repack/retrace/glretrace_main.cpp:39:
/build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp:51:52: error: macro ‘PIDS_VAL’ passed 4 arguments, but takes just 3
   51 |             value = PIDS_VAL(0, ul_int, stack, info);
      |                                                    ^
In file included from /build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp:34:
/usr/include/libproc2/pids.h:247:9: note: macro ‘PIDS_VAL’ defined here
  247 | #define PIDS_VAL( relative_enum, type, stack ) \
      |         ^~~~~~~~
/build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp:66:52: error: macro ‘PIDS_VAL’ passed 4 arguments, but takes just 3
   66 |             value = PIDS_VAL(0, ul_int, stack, info);
      |                                                    ^
/usr/include/libproc2/pids.h:247:9: note: macro ‘PIDS_VAL’ defined here
  247 | #define PIDS_VAL( relative_enum, type, stack ) \
      |         ^~~~~~~~
/build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp: In function ‘long long int os::getVsize()’:
/build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp:51:21: error: ‘PIDS_VAL’ was not declared in this scope
   51 |             value = PIDS_VAL(0, ul_int, stack, info);
      |                     ^~~~~~~~
/build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp: In function ‘long long int os::getRss()’:
/build/reproducible-path/apitrace-13.0+repack/lib/os/os_memory.hpp:66:21: error: ‘PIDS_VAL’ was not declared in this scope
   66 |             value = PIDS_VAL(0, ul_int, stack, info);
      |                     ^~~~~~~~
[ 74%] Building CXX object retrace/CMakeFiles/glretrace_common.dir/glretrace_ws.cpp.o
cd /build/reproducible-path/apitrace-13.0+repack/obj-x86_64-linux-gnu/retrace && /usr/bin/x86_64-linux-gnu-g++ -DHAVE_LIBPROC2_PIDS_H -DHAVE_X11 -DRETRACE -D_GNU_SOURCE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/reproducible-path/apitrace-13.0+repack/thirdparty/khronos -I/build/reproducible-path/apitrace-13.0+repack/compat -I/build/reproducible-path/apitrace-13.0+repack/lib/trace -I/build/reproducible-path/apitrace-13.0+repack/lib/os -I/build/reproducible-path/apitrace-13.0+repack/retrace -I/build/reproducible-path/apitrace-13.0+repack/obj-x86_6
See  for more details.

Cheers4-linux-gnu -I/build/reproducible-path/apitrace-13.0+repack/lib/highlight -I/build/reproducible-path/apitrace-13.0+repack/helpers -I/build/reproducible-path/apitrace-13.0+repack/obj-x86_64-linux-gnu/dispatch -I/build/reproducible-path/apitrace-13.0+repack/dispatch -I/build/reproducible-path/apitrace-13.0+repack/lib/image -I/build/reproducible-path/apitrace-13.0+repack/lib/ubjson -I/build/reproducible-path/apitrace-13.0+repack/thirdparty/dxerr -I/build/reproducible-path/apitrace-13.0+repack/thirdparty/mhook/mhook-lib -g -O2 -ffile-prefix-map=/build/reproducible-path/apitrace-13.0+repack=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fvisibility=hidden -Wall -Wno-sign-compare -fno-strict-aliasing -fno-rtti -fno-exceptions -fmessage-length=0 -fno-omit-frame-pointer -std=gnu++17 -flto=auto -fno-fat-lto-objects -MD -MT retrace/CMakeFiles/glretrace_common.dir/glretrace_ws.cpp.o -MF CMakeFiles/glretrace_common.dir/glretrace_ws.cpp.o.d -o CMakeFiles/glretrace_common.dir/glretrace_ws.cpp.o -c /build/reproducible-path/apitrace-13.0+repack/retrace/glretrace_ws.cpp
make[3]: *** [retrace/CMakeFiles/glretrace_common.dir/build.make:195: retrace/CMakeFiles/glretrace_common.dir/glretrace_main.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....https://buildd.debian.org/status/fetch.php?pkg=apitrace&arch=amd64&ver=13.0%2Brepack-1%2Bb2&stamp=1782907100&raw=0

See
https://buildd.debian.org/status/fetch.php?pkg=apitrace&arch=amd64&ver=13.0%2Brepack-1%2Bb2&stamp=1782907100&raw=0
for more details.

Cheers
-- 
Sebastian Ramacher