archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
145 stars 25 forks source link

Erroring at Systemd building #108

Closed D4rkov closed 1 year ago

D4rkov commented 1 year ago
In file included from ../systemd-stable/src/basic/stat-util.h:13,
                 from ../systemd-stable/src/basic/chase-symlinks.h:7,
                 from ../systemd-stable/src/basic/chase-symlinks.c:6:
../systemd-stable/src/basic/missing_stat.h:39:8: error: redefinition of ‘struct statx_timestamp’
   39 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:465,
                 from ../systemd-stable/src/basic/stat-util.h:7:
/usr/include/linux/stat.h:56:8: note: originally defined here
   56 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
../systemd-stable/src/basic/missing_stat.h:45:8: error: redefinition of ‘struct statx’
   45 | struct statx STATX_DEFINITION;
      |        ^~~~~
/usr/include/linux/stat.h:99:8: note: originally defined here
   99 | struct statx {
      |        ^~~~~
[150/2461] Compiling C object src/basic/libbasic.a.p/devnum-util.c.o
FAILED: src/basic/libbasic.a.p/devnum-util.c.o
cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../systemd-stable/src/basic -Isrc/fundamental -I../systemd-stable/src/fundamental -Isrc/systemd -I../systemd-stable/src/systemd -I. -I../systemd-stable -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -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 -Wno-unused-result -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/devnum-util.c.o -MF src/basic/libbasic.a.p/devnum-util.c.o.d -o src/basic/libbasic.a.p/devnum-util.c.o -c ../systemd-stable/src/basic/devnum-util.c
In file included from ../systemd-stable/src/basic/stat-util.h:13,
                 from ../systemd-stable/src/basic/chase-symlinks.h:7,
                 from ../systemd-stable/src/basic/devnum-util.c:6:
../systemd-stable/src/basic/missing_stat.h:39:8: error: redefinition of ‘struct statx_timestamp’
   39 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:465,
                 from ../systemd-stable/src/basic/devnum-util.c:4:
/usr/include/linux/stat.h:56:8: note: originally defined here
   56 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
../systemd-stable/src/basic/missing_stat.h:45:8: error: redefinition of ‘struct statx’
   45 | struct statx STATX_DEFINITION;
      |        ^~~~~
/usr/include/linux/stat.h:99:8: note: originally defined here
   99 | struct statx {
      |        ^~~~~
[151/2461] Compiling C object src/basic/libbasic.a.p/dirent-util.c.o
FAILED: src/basic/libbasic.a.p/dirent-util.c.o
cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../systemd-stable/src/basic -Isrc/fundamental -I../systemd-stable/src/fundamental -Isrc/systemd -I../systemd-stable/src/systemd -I. -I../systemd-stable -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -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 -Wno-unused-result -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/dirent-util.c.o -MF src/basic/libbasic.a.p/dirent-util.c.o.d -o src/basic/libbasic.a.p/dirent-util.c.o -c ../systemd-stable/src/basic/dirent-util.c
In file included from ../systemd-stable/src/basic/stat-util.h:13,
                 from ../systemd-stable/src/basic/dirent-util.c:8:
../systemd-stable/src/basic/missing_stat.h:39:8: error: redefinition of ‘struct statx_timestamp’
   39 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:465,
                 from ../systemd-stable/src/basic/dirent-util.c:4:
/usr/include/linux/stat.h:56:8: note: originally defined here
   56 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
../systemd-stable/src/basic/missing_stat.h:45:8: error: redefinition of ‘struct statx’
   45 | struct statx STATX_DEFINITION;
      |        ^~~~~
/usr/include/linux/stat.h:99:8: note: originally defined here
   99 | struct statx {
      |        ^~~~~
[154/2461] Compiling C object src/basic/libbasic.a.p/cgroup-util.c.o
FAILED: src/basic/libbasic.a.p/cgroup-util.c.o
cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../systemd-stable/src/basic -Isrc/fundamental -I../systemd-stable/src/fundamental -Isrc/systemd -I../systemd-stable/src/systemd -I. -I../systemd-stable -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -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 -Wno-unused-result -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/cgroup-util.c.o -MF src/basic/libbasic.a.p/cgroup-util.c.o.d -o src/basic/libbasic.a.p/cgroup-util.c.o -c ../systemd-stable/src/basic/cgroup-util.c
In file included from ../systemd-stable/src/basic/stat-util.h:13,
                 from ../systemd-stable/src/basic/cgroup-util.c:32:
../systemd-stable/src/basic/missing_stat.h:39:8: error: redefinition of ‘struct statx_timestamp’
   39 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:465,
                 from ../systemd-stable/src/basic/fileio.h:9,
                 from ../systemd-stable/src/basic/cgroup-util.c:19:
/usr/include/linux/stat.h:56:8: note: originally defined here
   56 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
../systemd-stable/src/basic/missing_stat.h:45:8: error: redefinition of ‘struct statx’
   45 | struct statx STATX_DEFINITION;
      |        ^~~~~
/usr/include/linux/stat.h:99:8: note: originally defined here
   99 | struct statx {
      |        ^~~~~
[155/2461] Compiling C object src/basic/libbasic.a.p/conf-files.c.o
FAILED: src/basic/libbasic.a.p/conf-files.c.o
cc -Isrc/basic/libbasic.a.p -Isrc/basic -I../systemd-stable/src/basic -Isrc/fundamental -I../systemd-stable/src/fundamental -Isrc/systemd -I../systemd-stable/src/systemd -I. -I../systemd-stable -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -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 -Wno-unused-result -Werror=missing-declarations -Werror=missing-prototypes -fdiagnostics-show-option -fno-common -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fvisibility=hidden --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread -fvisibility=default -MD -MQ src/basic/libbasic.a.p/conf-files.c.o -MF src/basic/libbasic.a.p/conf-files.c.o.d -o src/basic/libbasic.a.p/conf-files.c.o -c ../systemd-stable/src/basic/conf-files.c
In file included from ../systemd-stable/src/basic/stat-util.h:13,
                 from ../systemd-stable/src/basic/conf-files.c:18:
../systemd-stable/src/basic/missing_stat.h:39:8: error: redefinition of ‘struct statx_timestamp’
   39 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
In file included from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:465,
                 from ../systemd-stable/src/basic/stat-util.h:7:
/usr/include/linux/stat.h:56:8: note: originally defined here
   56 | struct statx_timestamp {
      |        ^~~~~~~~~~~~~~~
../systemd-stable/src/basic/missing_stat.h:45:8: error: redefinition of ‘struct statx’
   45 | struct statx STATX_DEFINITION;
      |        ^~~~~
/usr/include/linux/stat.h:99:8: note: originally defined here
   99 | struct statx {
      |        ^~~~~
[162/2461] Generating src/boot/efi/systemd-bootx64.elf with a custom command
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...