Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-154429-9986/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libtree-ldd-3.1.1-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-154429-9986/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtree-ldd.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AmN6Zm + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtree-3.1.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libtree-3.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libtree-3.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/libtree-ldd-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rxQrHs + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libtree-3.1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j32 V=1 VERBOSE=1 gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=c99 -Wall -Wextra -Wshadow -pedantic -D_FILE_OFFSET_BITS=64 -c libtree.c gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o libtree libtree.o + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.VtYxyx + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64 ++ dirname /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64 + cd libtree-3.1.1 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64 'INSTALL=/usr/bin/install -p' PREFIX=/usr mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/bin cp -p libtree /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/bin mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/man/man1 cp -p doc/libtree.1 /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/man/man1 + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 3.1.1-1.ocs23 --unique-debug-suffix -3.1.1-1.ocs23.x86_64 --unique-debug-src-base libtree-ldd-3.1.1-1.ocs23.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/libtree-3.1.1 extracting debug info from /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/bin/libtree 111 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.gpx1GJ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libtree-3.1.1 + /usr/bin/make -O -j32 V=1 VERBOSE=1 check find tests -mindepth 1 -maxdepth 1 -type d | while read -r dir; do \ /usr/bin/make -C "$dir" check || exit 1 ;\ done make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' mkdir -p a echo 'int f(){return 3;};' | gcc -shared -Wl,-soname,libf.so -o a/libf.so -x c - -nostdlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' mkdir -p a echo 'extern int f(); int g(){return f();};' | gcc -shared -Wl,-soname,libg.so '-Wl,-rpath,${ORIGIN}' -o a/libg.so -x c - -La -lf -nostdlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' mkdir -p b ln -vs ../a/libg.so b/libg.so 'b/libg.so' -> '../a/libg.so' make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' echo 'extern int g(); int _start(){return g();};' | gcc -Wl,-soname,exe '-Wl,-rpath,${ORIGIN}/b' -o exe -x c - -La -lg -nostdlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' ! ../../libtree exe # should not find libf.so exe └── libg.so [runpath] └── libf.so not found ┊ Paths considered in this order: ┊ 1. rpath is skipped because runpath was set ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath: ┊ .//b ┊ 4. ld config files: ┊ 5. Standard paths: ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 LD_LIBRARY_PATH=/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath/a ../../libtree exe # should find libf.so exe └── libg.so [LD_LIBRARY_PATH] └── libf.so [LD_LIBRARY_PATH] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/07_origin_is_relative_to_symlink_location_not_realpath' Error [exe]: Not all dependencies were found make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' mkdir dir make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int b(){return 10;}' | gcc -shared -Wl,-soname,libb.so -Wl,--no-as-needed -o libb.so -Wno-implicit-function-declaration -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int a(void){return 42;}' | gcc -shared -Wl,-soname,liba.so -Wl,--no-as-needed -o dir/liba.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int b(void); int _start(void){return b();}' | gcc -Wl,--no-as-needed -Wl,--disable-new-dtags "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath" libb.so -o exe_rpath -Wno-implicit-function-declaration -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int b(void); int _start(void){return b();}' | gcc -Wl,--no-as-needed -Wl,--enable-new-dtags "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath" libb.so -o exe_runpath -Wno-implicit-function-declaration -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' echo 'int a(void); int b(void){return a();}' | gcc -shared -Wl,-soname,libb.so -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' -Wno-implicit-function-declaration -o dir/libb.so -nostdlib dir/liba.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' ../../libtree exe_rpath exe_rpath └── libb.so [rpath] LD_LIBRARY_PATH="/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath/dir" ../../libtree exe_rpath exe_rpath └── libb.so [rpath] ../../libtree exe_runpath exe_runpath └── libb.so [runpath] LD_LIBRARY_PATH="/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath/dir" ../../libtree exe_runpath exe_runpath └── libb.so [LD_LIBRARY_PATH] └── liba.so [rpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/04_rpath_over_env_over_runpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' echo 'int g(void){return 1;}' | gcc -shared -Wl,-soname,libb.so -o libb.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' echo 'int g(void); int f(void){return g();}' | gcc -shared -Wl,--no-as-needed -Wl,-soname,liba.so -o liba.so -Wno-implicit-function-declaration libb.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' echo 'int f(void); int _start(){return f();}' | gcc -o exe -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' '-Wl,-rpath-link,/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' -Wno-implicit-function-declaration -nostdlib -L. -la -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' ! ../../libtree liba.so # should not find libb.so liba.so └── libb.so not found ┊ Paths considered in this order: ┊ 1. rpath: ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath was not set ┊ 4. ld config files: ┊ 5. Standard paths: ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 LD_LIBRARY_PATH=/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent ../../libtree liba.so # should find libb.so through LD_LIBRARY_PATH liba.so └── libb.so [LD_LIBRARY_PATH] ../../libtree exe # should find libb.so through exe's rpath exe └── liba.so [rpath] └── libb.so [rpath of 1] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/02_rpath_of_parents_parent' Error [liba.so]: Not all dependencies were found make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' echo 'int f(void){return 1;}' | gcc -shared -Wl,-soname,liba.so -o liba.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' echo 'int f(void); int _start(void){return f();}' | gcc -o exe_rpath -Wl,--no-as-needed -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' -Wno-implicit-function-declaration -nostdlib liba.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' echo 'int f(void); int _start(void){return f();}' | gcc -o exe_runpath -Wl,--no-as-needed -Wl,--enable-new-dtags '-Wl,-rpath,$ORIGIN' -Wno-implicit-function-declaration -nostdlib liba.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' ../../libtree exe_rpath exe_rpath └── liba.so [rpath] ../../libtree exe_runpath exe_runpath └── liba.so [runpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/01_origin' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' mkdir -p lib32 echo 'int a(){return 42;}' | gcc -shared -Wl,-soname,libx.so -m32 -o lib32/libx.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' mkdir -p lib64 echo 'int a(){return 42;}' | gcc -shared -Wl,-soname,libx.so -m64 -o lib64/libx.so -nostdlib -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' echo 'extern int a(); int _start(){return a();}' | gcc -m32 "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits/lib64" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits/lib32" -o exe32 -nostdlib -x c - -Llib32 -lx make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' echo 'extern int a(); int _start(){return a();}' | gcc -m64 "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits/lib32" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits/lib64" -o exe64 -nostdlib -x c - -Llib64 -lx make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' ../../libtree exe32 exe32 └── libx.so [runpath] ../../libtree exe64 exe64 └── libx.so [runpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/05_32_bits' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' echo 'int i(){return 1;}' | gcc -shared -Wl,--no-as-needed -o lib_without_soname.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' mkdir some_dir echo 'int f(){return 42;}' | gcc -shared -Wl,-soname,lib_f.so -Wl,--no-as-needed -o some_dir/lib_f.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' echo 'extern int f(); int g(){return f();}' | gcc -shared -Wl,-soname,lib_g.so -Wl,--no-as-needed "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/some_dir" -L./some_dir -l_f -o lib_g.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' echo 'extern int i(); extern int f(); extern int g(); int main(){return f() + g() + i();}' | gcc -Wl,--no-as-needed "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/" -L. -L./some_dir -l_f -l_g /builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/lib_without_soname.so -o exe_a -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' echo 'extern int i(); extern int f(); extern int g(); int main(){return f() + g() + i();}' | gcc -Wl,--no-as-needed "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/some_dir" -L. -L./some_dir -l_f -l_g /builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/lib_without_soname.so -o exe_b -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' ! ../../libtree exe_a # cannot find lib_f.so exe_a ├── /builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/lib_without_soname.so [direct] ├── lib_g.so [runpath] │ └── lib_f.so [runpath] └── lib_f.so not found ┊ Paths considered in this order: ┊ 1. rpath is skipped because runpath was set ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath: ┊ /builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/ ┊ 4. ld config files: ┊ 5. Standard paths: ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 ../../libtree exe_b # should find lib_f.so exe_b ├── /builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath/lib_without_soname.so [direct] ├── lib_g.so [runpath] │ └── lib_f.so [runpath] └── lib_f.so [runpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/03_direct_and_absolute_rpath' Error [exe_a]: Not all dependencies were found make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'int f(){return 1;}' | gcc -z nodefaultlib -Wl,--no-as-needed -shared -Wl,-soname,lib_nodefaultlib.so -o lib_nodefaultlib.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'int g(){return 1;}' | gcc -Wl,--no-as-needed -shared -Wl,-soname,lib_defaultlib.so -o lib_defaultlib.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'extern int f(); extern int g(); int main(){return f() + g();}' | gcc -z nodefaultlib -o exe_a -Wl,--enable-new-dtags '-Wl,-rpath,$ORIGIN' -x c - -L. -l_nodefaultlib -l_defaultlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' echo 'extern int g(); int main(){return g();}' | gcc -z nodefaultlib -o exe_b -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN' -x c - -L. -l_defaultlib make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' ! ../../libtree -vvv exe_a # should likely not find libc exe_a ├── lib_nodefaultlib.so [runpath] │ └── libc.so.6 not found │ ┊ Paths considered in this order: │ ┊ 1. rpath: │ ┊ 2. LD_LIBRARY_PATH was not set │ ┊ 3. runpath was not set │ ┊ 4. ld config files not considered due to NODEFLIB flag │ ┊ 5. Standard paths not considered due to NODEFLIB flag │ ┊ /lib │ ┊ /lib64 │ ┊ /usr/lib │ ┊ /usr/lib64 ├── lib_defaultlib.so [runpath] │ └── libc.so.6 [default path] │ └── ld-linux-x86-64.so.2 [default path] └── libc.so.6 not found ┊ Paths considered in this order: ┊ 1. rpath is skipped because runpath was set ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath: ┊ ./ ┊ 4. ld config files not considered due to NODEFLIB flag ┊ 5. Standard paths not considered due to NODEFLIB flag ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 ! ../../libtree -vvv exe_b # should likely not find libc exe_b ├── lib_defaultlib.so [rpath] │ └── libc.so.6 [default path] │ └── ld-linux-x86-64.so.2 [default path] └── libc.so.6 not found ┊ Paths considered in this order: ┊ 1. rpath: ┊ depth 1 ┊ ./ ┊ 2. LD_LIBRARY_PATH was not set ┊ 3. runpath was not set ┊ 4. ld config files not considered due to NODEFLIB flag ┊ 5. Standard paths not considered due to NODEFLIB flag ┊ /lib ┊ /lib64 ┊ /usr/lib ┊ /usr/lib64 make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/08_nodeflib' Error [exe_a]: Not all dependencies were found Error [exe_b]: Not all dependencies were found make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' echo 'int g(){return 1;}' | gcc -shared -Wl,-soname,libb.so -o first/libb.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' echo 'int g(){return 2;}' | gcc -shared -Wl,-soname,libb.so -o second/libb.so -x c - make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' echo 'extern int g(); int f(){return g();}' | gcc -shared -Wl,--disable-new-dtags -Wl,-soname,liba.so -o liba.so '-Wl,-rpath,$ORIGIN/second' -x c - -Lsecond -lb make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' echo 'extern int f(); int main(){return f();}' | gcc -o exe -Wl,--disable-new-dtags '-Wl,-rpath,$ORIGIN,-rpath,$ORIGIN/first' -x c - -L. -la make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' ../../libtree -p liba.so # should find second/libb.so, not first/libb.so liba.so └── .//second/libb.so [rpath] ../../libtree -p exe # should find second/libb.so, not first/libb.so exe └── ./liba.so [rpath] └── ./second/libb.so [rpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/10_rpath_order' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' mkdir -p v1 gcc -shared -Wl,-soname,libx.so -o v1/libx.so -Wl,--version-script,v1.map v1.c make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' mkdir -p v2 gcc -shared -Wl,-soname,libx.so -o v2/libx.so -Wl,--version-script,v2.map v2.c make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' gcc -o exe_v2 main.c v2/libx.so "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v1" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v2" make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' gcc -o exe_v1 main.c v1/libx.so "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v2" "-Wl,-rpath,/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions/v1" make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' make[1]: Entering directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' ../../libtree exe_v1 exe_v1 └── libx.so [runpath] ../../libtree exe_v2 exe_v2 └── libx.so [runpath] make[1]: Leaving directory '/builddir/build/BUILD/libtree-3.1.1/tests/06_symbol_versions' + RPM_EC=0 ++ jobs -p + exit 0 Processing files: libtree-ldd-3.1.1-1.ocs23.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.8Q0IKH + umask 022 + cd /builddir/build/BUILD + cd libtree-3.1.1 + DOCDIR=/builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/doc/libtree-ldd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/doc/libtree-ldd + cp -pr README.md /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/doc/libtree-ldd + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.CRW3tv + umask 022 + cd /builddir/build/BUILD + cd libtree-3.1.1 + LICENSEDIR=/builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/licenses/libtree-ldd + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/licenses/libtree-ldd + cp -pr LICENSE /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64/usr/share/licenses/libtree-ldd + RPM_EC=0 ++ jobs -p + exit 0 Provides: libtree-ldd = 3.1.1-1.ocs23 libtree-ldd(x86-64) = 3.1.1-1.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) rtld(GNU_HASH) Processing files: libtree-ldd-debugsource-3.1.1-1.ocs23.x86_64 Provides: libtree-ldd-debugsource = 3.1.1-1.ocs23 libtree-ldd-debugsource(x86-64) = 3.1.1-1.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libtree-ldd-debuginfo-3.1.1-1.ocs23.x86_64 Provides: debuginfo(build-id) = a012cd07298095d8f528fc5ba5228213356d9463 libtree-ldd-debuginfo = 3.1.1-1.ocs23 libtree-ldd-debuginfo(x86-64) = 3.1.1-1.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: libtree-ldd-debugsource(x86-64) = 3.1.1-1.ocs23 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libtree-ldd-3.1.1-1.ocs23.x86_64 Wrote: /builddir/build/RPMS/libtree-ldd-3.1.1-1.ocs23.x86_64.rpm Wrote: /builddir/build/RPMS/libtree-ldd-debugsource-3.1.1-1.ocs23.x86_64.rpm Wrote: /builddir/build/RPMS/libtree-ldd-debuginfo-3.1.1-1.ocs23.x86_64.rpm Child return code was: 0