On Wed, 8 Nov 2023 at 15:00, daechir <daec...@protonmail.com> wrote: > > Hello, > I have been unable to build systemd from around the systemd-executor commit > here: > https://github.com/systemd/systemd/commit/bb5232b6a3b8af075ee06cc87416e5f49a6170d3. > The error received is very vague and even when using verbose mode it's > generally unhelpful. > The error is as follows: > > FAILED: systemd-executor.p/src_core_exec-invoke.c.o > cc -Isystemd-executor.p -I. -I../systemd -Isrc/basic -I../systemd/src/basic > -Isrc/fundamental -I../systemd/src/fundamental -Isrc/systemd > -I../systemd/src/systemd -I../systemd/src/libsystemd/sd-bus > -I../systemd/src/libsystemd/sd-device -I../systemd/src/libsystemd/sd-event > -I../systemd/src/libsystemd/sd-hwdb -I../systemd/src/libsystemd/sd-id128 > -I../systemd/src/libsystemd/sd-journal -I../systemd/src/libsystemd/sd-netlink > -I../systemd/src/libsystemd/sd-network -I../systemd/src/libsystemd/sd-resolve > -Isrc/shared -I../systemd/src/shared -Isrc/core -I../systemd/src/core > -I/usr/include/security -flto=auto -fdiagnostics-color=always > -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 > -Wno-missing-field-initializers -Wno-unused-parameter -Warray-bounds > -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 > -Werror=format-signedness -Werror=implicit-function-declaration > -Werror=implicit-int -Werror=incompatible-pointer-types > -Werror=int-conversion -Werror=missing-declarations > -Werror=missing-prototypes -Werror=overflow -Werror=override-init > -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 > -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal > -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs > -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith > -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes > -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings > -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector > -fstack-protector-strong -fstrict-flex-arrays --param=ssp-buffer-size=4 > -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero > -Werror=shadow -march=native -O2 -pipe -fno-plt -fexceptions > -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security > -fstack-clash-protection -fcf-protection -fPIE -fno-strict-aliasing > -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections > -fdata-sections -include config.h -MD -MQ > systemd-executor.p/src_core_exec-invoke.c.o -MF > systemd-executor.p/src_core_exec-invoke.c.o.d -o > systemd-executor.p/src_core_exec-invoke.c.o -c > ../systemd/src/core/exec-invoke.c > ../systemd/src/core/exec-invoke.c: In function ‘exec_invoke’: > ../systemd/src/core/exec-invoke.c:4341:79: error: ‘INIT_PROCESS’ undeclared > (first use in this function); did you mean ‘PRIO_PROCESS’? > 4341 | context->utmp_mode == > EXEC_UTMP_INIT ? INIT_PROCESS : > | > ^~~~~~~~~~~~ > | > PRIO_PROCESS > ../systemd/src/core/exec-invoke.c:4341:79: note: each undeclared identifier > is reported only once for each function it appears in > ../systemd/src/core/exec-invoke.c:4342:79: error: ‘LOGIN_PROCESS’ undeclared > (first use in this function); did you mean ‘PRIO_PROCESS’? > 4342 | context->utmp_mode == > EXEC_UTMP_LOGIN ? LOGIN_PROCESS : > | > ^~~~~~~~~~~~~ > | > PRIO_PROCESS > ../systemd/src/core/exec-invoke.c:4343:39: error: ‘USER_PROCESS’ undeclared > (first use in this function); did you mean ‘KILL_PROCESS’? > 4343 | USER_PROCESS, > | ^~~~~~~~~~~~ > | KILL_PROCESS > [688/1337] Linking target > src/shared/libsystemd-shared-255.r68519.a9d942aeb0-1.so > ninja: build stopped: subcommand failed.
That's a libc define - which glibc version are you using?