==> Building on s ==> Ensuring required PGP keys are present...  -> Checking for 38A644698C69787344E954CE29EE848AE2CCF3F4... ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/libcap ./ PKGBUILD 1,458 100% 0.00kB/s 0:00:00 1,458 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) libcap-2.64-1.log 384 100% 375.00kB/s 0:00:00 384 100% 375.00kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,280 bytes received 95 bytes 550.00 bytes/sec total size is 1,796 speedup is 1.31 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix37 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix37]...done ==> Making package: libcap 2.64-1 (Fri Apr 22 00:45:04 2022) ==> Retrieving sources...  -> Downloading libcap-2.64.tar.xz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 162 100 162 0 0 676 0 --:--:-- --:--:-- --:--:-- 677 100 171k 100 171k 0 0 266k 0 --:--:-- --:--:-- --:--:-- 266k  -> Downloading libcap-2.64.tar.sign... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 162 100 162 0 0 688 0 --:--:-- --:--:-- --:--:-- 686 100 833 100 833 0 0 1739 0 --:--:-- --:--:-- --:--:-- 1739 ==> Validating source files with sha512sums... libcap-2.64.tar.xz ... Passed libcap-2.64.tar.sign ... Skipped ==> Validating source files with b2sums... libcap-2.64.tar.xz ... Passed libcap-2.64.tar.sign ... Skipped ==> Verifying source file signatures with gpg... libcap-2.64.tar ... Passed ==> Making package: libcap 2.64-1 (Fri 22 Apr 2022 12:45:18 AM CST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources...  -> Found libcap-2.64.tar.xz  -> Found libcap-2.64.tar.sign ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting libcap-2.64.tar.xz with bsdtar ==> Starting build()... make: Entering directory '/build/libcap/src/libcap-2.64' /usr/bin/make -C libcap all make[1]: Entering directory '/build/libcap/src/libcap-2.64/libcap' sed -e 's,@prefix@,/usr,' \ -e 's,@exec_prefix@,/usr,' \ -e 's,@libdir@,/usr/lib,' \ -e 's,@includedir@,/usr/include,' \ -e 's,@VERSION@,2.64,' \ -e 's,@deps@,,' \ libcap.pc.in >libcap.pc => making cap_names.list.h from /build/libcap/src/libcap-2.64/libcap/../libcap/include/uapi/linux/capability.h grep -E '^#define\s+CAP_([^\s]+)\s+[0-9]+\s*$' include/uapi/linux/capability.h | sed -e 's/^#define\s\+/{"/' -e 's/\s*$/},/' -e 's/\s\+/",/' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' > cap_names.list.h /usr/bin/make libpsx.pc make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' gcc -O2 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include _makenames.c -o _makenames sed -e 's,@prefix@,/usr,' \ -e 's,@exec_prefix@,/usr,' \ -e 's,@libdir@,/usr/lib,' \ -e 's,@includedir@,/usr/include,' \ -e 's,@VERSION@,2.64,' \ -e 's,@deps@,,' \ libpsx.pc.in >libpsx.pc make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' ./_makenames > cap_names.h gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c cap_alloc.c -o cap_alloc.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c cap_proc.c -o cap_proc.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c cap_extint.c -o cap_extint.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c cap_flag.c -o cap_flag.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c cap_text.c -o cap_text.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c cap_file.c -o cap_file.o ar rcs libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o ranlib libcap.a /usr/bin/make libcap.so make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto empty.c -o empty objcopy --dump-section .interp=loader.txt empty /dev/null gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -DLIBRARY_VERSION=\"libcap-2.64\" -DSHARED_LOADER=\"/lib/ld-linux-riscv64-lp64d.so.1\" -include ./libcap.h -c execable.c -o cap_magic.o gcc -Wl,-x -shared -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-soname,libcap.so.2 -o libcap.so.2.64 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o cap_magic.o -Wl,-e,__so_start ln -sf libcap.so.2.64 libcap.so.2 ln -sf libcap.so.2 libcap.so make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libpsx.a make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -c ../psx/psx.c -o ../psx/psx.o rm -f include/sys/psx_syscall.h ln -s ../../../psx/psx_syscall.h include/sys/psx_syscall.h ar rcs libpsx.a ../psx/psx.o ranlib libpsx.a make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libpsx.so make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -DLIBRARY_VERSION=\"libpsx-2.64\" -DSHARED_LOADER=\"/lib/ld-linux-riscv64-lp64d.so.1\" -c psx_exec.c -o psx_magic.o gcc -Wl,-x -shared -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-soname,libpsx.so.2 -o libpsx.so.2.64 ../psx/psx.o psx_magic.o -Wl,-e,__so_start -lpthread -Wl,-wrap,pthread_create ln -sf libpsx.so.2.64 libpsx.so.2 ln -sf libpsx.so.2 libpsx.so make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' make[1]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make -C pam_cap all make[1]: Entering directory '/build/libcap/src/libcap-2.64/pam_cap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/pam_cap/../libcap/include -c -o pam_cap.o pam_cap.c gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/pam_cap/../libcap/include -DLIBCAP_VERSION=\"libcap-2.64\" -DSHARED_LOADER=\"/lib/ld-linux-riscv64-lp64d.so.1\" -c execable.c -o execable.o gcc -Wl,-x -shared -o lazylink.so -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/pam_cap/../libcap/include -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto lazylink.c -DSHARED_LOADER=\"/lib/ld-linux-riscv64-lp64d.so.1\" -Wl,-e,__so_start /usr/bin/make -C ../libcap all make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libpsx.pc make[3]: Entering directory '/build/libcap/src/libcap-2.64/libcap' make[3]: 'libpsx.pc' is up to date. make[3]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libcap.so make[3]: Entering directory '/build/libcap/src/libcap-2.64/libcap' make[3]: 'libcap.so' is up to date. make[3]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libpsx.a make[3]: Entering directory '/build/libcap/src/libcap-2.64/libcap' make[3]: 'libpsx.a' is up to date. make[3]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libpsx.so make[3]: Entering directory '/build/libcap/src/libcap-2.64/libcap' echo "-Wl,-e,__so_start" > pam_cap_linkopts ./lazylink.so || echo "-lpam" >> pam_cap_linkopts ./lazylink.so: symbol lookup error: ./lazylink.so: undefined symbol: nothing_sets_this make[3]: 'libpsx.so' is up to date. make[3]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' touch LIBCAP cat pam_cap_linkopts | xargs -e gcc -Wl,-x -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o pam_cap.so pam_cap.o execable.o -L/build/libcap/src/libcap-2.64/pam_cap/../libcap -lcap /usr/bin/make testlink make[2]: Entering directory '/build/libcap/src/libcap-2.64/pam_cap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/pam_cap/../libcap/include -c -o test.o test.c gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o testlink test.o pam_cap.o -lpam -ldl -L/build/libcap/src/libcap-2.64/pam_cap/../libcap -lcap make[2]: Leaving directory '/build/libcap/src/libcap-2.64/pam_cap' make[1]: Leaving directory '/build/libcap/src/libcap-2.64/pam_cap' /usr/bin/make -C tests all make[1]: Entering directory '/build/libcap/src/libcap-2.64/tests' leave test building to test target make[1]: Leaving directory '/build/libcap/src/libcap-2.64/tests' /usr/bin/make -C progs all make[1]: Entering directory '/build/libcap/src/libcap-2.64/progs' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/progs/../libcap/include -c getpcaps.c -o getpcaps.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/progs/../libcap/include -c getcap.c -o getcap.o gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/progs/../libcap/include -c setcap.c -o setcap.o ./mkcapshdoc.sh > capshdoc.c.cf gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o getpcaps getpcaps.o -L/build/libcap/src/libcap-2.64/progs/../libcap -lcap gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o getcap getcap.o -L/build/libcap/src/libcap-2.64/progs/../libcap -lcap gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o setcap setcap.o -L/build/libcap/src/libcap-2.64/progs/../libcap -lcap diff -u capshdoc.c capshdoc.c.cf || (rm capshdoc.c.cf ; exit 1) gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/build/libcap/src/libcap-2.64/progs/../libcap/include -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o capsh capsh.c capshdoc.c -L/build/libcap/src/libcap-2.64/progs/../libcap -lcap make[1]: Leaving directory '/build/libcap/src/libcap-2.64/progs' /usr/bin/make -C doc all make[1]: Entering directory '/build/libcap/src/libcap-2.64/doc' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/libcap/src/libcap-2.64/doc' make: Leaving directory '/build/libcap/src/libcap-2.64' ==> Starting check()... make: Entering directory '/build/libcap/src/libcap-2.64' /usr/bin/make -C libcap test make[1]: Entering directory '/build/libcap/src/libcap-2.64/libcap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/build/libcap/src/libcap-2.64/libcap/../libcap/include/uapi -I/build/libcap/src/libcap-2.64/libcap/../libcap/include -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto cap_test.c cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o -o cap_test ./cap_test test_cap_bits: being called test_cap_flags: being called test_short_bits: being called test_alloc: being called test_alloc test_alloc: drop_launcher test_alloc: drop_iab test_alloc: drop_cap test_prctl: being called tested cap_test PASS /usr/bin/make libcapsotest make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' ./libcap.so ./libcap.so is the shared library version: libcap-2.64. See the License file for distribution information. More information on this library is available from: https://sites.google.com/site/fullycapable/ ./libcap.so --usage ./libcap.so is the shared library version: libcap-2.64. See the License file for distribution information. More information on this library is available from: https://sites.google.com/site/fullycapable/ usage: libcap.so [--help|--usage|--summary] ./libcap.so --help ./libcap.so is the shared library version: libcap-2.64. See the License file for distribution information. More information on this library is available from: https://sites.google.com/site/fullycapable/ usage: libcap.so [--help|--usage|--summary] ./libcap.so --summary ./libcap.so is the shared library version: libcap-2.64. See the License file for distribution information. More information on this library is available from: https://sites.google.com/site/fullycapable/ Current mode: HYBRID Number of cap values known to: this libcap=41, running kernel=41 make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make libpsxsotest make[2]: Entering directory '/build/libcap/src/libcap-2.64/libcap' ./libpsx.so ./libpsx.so is the shared library version: libpsx-2.64. See the License file for distribution information. More information on this library is available from: https://sites.google.com/site/fullycapable/ make[2]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' make[1]: Leaving directory '/build/libcap/src/libcap-2.64/libcap' /usr/bin/make -C pam_cap test make[1]: Entering directory '/build/libcap/src/libcap-2.64/pam_cap' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -fPIC -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/build/libcap/src/libcap-2.64/pam_cap/../libcap/include/uapi -I/build/libcap/src/libcap-2.64/pam_cap/../libcap/include -o test_pam_cap test_pam_cap.c -L/build/libcap/src/libcap-2.64/pam_cap/../libcap -lcap --static ./test_pam_cap test_pam_cap: OK! (Skipping privileged tests (uid!=0)) LD_LIBRARY_PATH=../libcap ./pam_cap.so ./pam_cap.so (version libcap-2.64) is a PAM module to specify inheritable (IAB) capabilities via the libpam authentication abstraction. See the libcap License file for licensing information. Release notes and feature documentation for libcap and pam_cap.so can be found at: https://sites.google.com/site/fullycapable/ LD_LIBRARY_PATH=../libcap ./pam_cap.so --help ./pam_cap.so (version libcap-2.64) is a PAM module to specify inheritable (IAB) capabilities via the libpam authentication abstraction. See the libcap License file for licensing information. Release notes and feature documentation for libcap and pam_cap.so can be found at: https://sites.google.com/site/fullycapable/ ./pam_cap.so supports the following module arguments: debug - verbose logging (ignored for now) config= - override the default config with file keepcaps - workaround for apps that setuid without this autoauth - pam_cap.so to always succeed for the 'auth' phase default= - fallback IAB value if there is no '*' rule defer - apply IAB value at pam_exit (not via setcred) module can be run as an executable! make[1]: Leaving directory '/build/libcap/src/libcap-2.64/pam_cap' /usr/bin/make -C tests test make[1]: Entering directory '/build/libcap/src/libcap-2.64/tests' /usr/bin/make run_psx_test run_libcap_psx_test make[2]: Entering directory '/build/libcap/src/libcap-2.64/tests' gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/build/libcap/src/libcap-2.64/tests/../libcap/include/uapi -I/build/libcap/src/libcap-2.64/tests/../libcap/include -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto psx_test.c -o psx_test -Wl,-rpath,../libcap -L/build/libcap/src/libcap-2.64/tests/../libcap -lpsx -lpthread -Wl,-wrap,pthread_create gcc -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/libcap/src=/usr/src/debug -flto=auto -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Wunreachable-code -Dlinux -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/build/libcap/src/libcap-2.64/tests/../libcap/include/uapi -I/build/libcap/src/libcap-2.64/tests/../libcap/include -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto libcap_psx_test.c -o libcap_psx_test -Wl,-rpath,../libcap -L/build/libcap/src/libcap-2.64/tests/../libcap -lcap -L/build/libcap/src/libcap-2.64/tests/../libcap -lpsx -lpthread -Wl,-wrap,pthread_create ./libcap_psx_test hello libcap and libpsx ........... PASSED ./psx_test child 4307 starting child 4307 exiting iteration [4304]: 0 hello [4304], main<0> 400199e020 (keepcaps=1 vs. want=1) pid=4304 forked -> 4307 [4304] started=0 vs 1 [4304] started=1 vs 1 iteration [4304]: 1 hello [4304], thread<0> 40021a0120 (keepcaps=0 vs. want=0) hello [4304], main<1> 400199e020 (keepcaps=0 vs. want=0) [4304] started=1 vs 2 [4304] started=2 vs 2 iteration [4304]: 2 hello [4304], main<2> 400199e020 (keepcaps=1 vs. want=1) hello [4304], thread<1> 40021a0120 (keepcaps=1 vs. want=1) hello [4304], thread<0> 400a9a1120 (keepcaps=1 vs. want=1) [4304] started=2 vs 3 [4304] started=3 vs 3 iteration [4304]: 3 hello [4304], main<3> 400199e020 (keepcaps=0 vs. want=0) hello [4304], thread<0> 40131a2120 (keepcaps=0 vs. want=0) hello [4304], thread<1> 400a9a1120 (keepcaps=0 vs. want=0) hello [4304], thread<2> 40021a0120 (keepcaps=0 vs. want=0) iteration [4304]: 4 hello [4304], main<4> 400199e020 (keepcaps=1 vs. want=1) hello [4304], thread<1> 40131a2120 (keepcaps=1 vs. want=1) hello [4304], thread<2> 400a9a1120 (keepcaps=1 vs. want=1) iteration [4304]: 5 hello [4304], main<5> 400199e020 (keepcaps=0 vs. want=0) hello [4304], thread<2> 40131a2120 (keepcaps=0 vs. want=0) iteration [4304]: 6 hello [4304], main<6> 400199e020 (keepcaps=1 vs. want=1) iteration [4304]: 7 hello [4304], main<7> 400199e020 (keepcaps=0 vs. want=0) iteration [4304]: 8 hello [4304], main<8> 400199e020 (keepcaps=1 vs. want=1) iteration [4304]: 9 hello [4304], main<9> 400199e020 (keepcaps=0 vs. want=0) ./psx_test PASSED make[2]: Leaving directory '/build/libcap/src/libcap-2.64/tests' make[1]: Leaving directory '/build/libcap/src/libcap-2.64/tests' /usr/bin/make -C progs test make[1]: Entering directory '/build/libcap/src/libcap-2.64/progs' no program tests without privilege, try 'make sudotest' make[1]: Leaving directory '/build/libcap/src/libcap-2.64/progs' /usr/bin/make -C doc test make[1]: Entering directory '/build/libcap/src/libcap-2.64/doc' no doc tests available make[1]: Leaving directory '/build/libcap/src/libcap-2.64/doc' receiving incremental file list sent 8 bytes received 8 bytes 2.91 bytes/sec total size is 0 speedup is 0.00