Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.71034 + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf patchelf-0.4 + /usr/bin/bzip2 -dc /tmp/patchelf-0.4.tar.bz2 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd patchelf-0.4 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.71034 + umask 022 + cd /usr/src/redhat/BUILD + cd patchelf-0.4 + ./configure --prefix=/usr checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: executing depfiles commands + make Making all in src make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/src' if g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.4\"\" -DPACKAGE_STRING=\"patchelf\ \"0.4\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.4\"\" -I. -I. -g -O2 -MT patchelf.o -MD -MP -MF ".deps/patchelf.Tpo" -c -o patchelf.o patchelf.cc; \ then mv -f ".deps/patchelf.Tpo" ".deps/patchelf.Po"; else rm -f ".deps/patchelf.Tpo"; exit 1; fi g++ -g -O2 -o patchelf patchelf.o make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/src' Making all in tests make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4' + make check Making check in src make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/src' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/src' Making check in tests make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make main main-scoped simple big-dynstr make[2]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' gcc -fpic -o main.o -c main.c gcc -fpic -o foo.o -c foo.c gcc -fpic -o bar.o -c bar.c NIX_DONT_SET_RPATH=1 gcc -Wl,--disable-new-dtags -shared -o libbar.so bar.o -L . -Wl,-rpath,`pwd`/no-such-path NIX_DONT_SET_RPATH=1 gcc -Wl,--disable-new-dtags -shared -o libfoo.so foo.o -L . -lbar LD_LIBRARY_PATH=. gcc -Wl,--disable-new-dtags -o main main.o -L . -lfoo NIX_DONT_SET_RPATH=1 gcc -Wl,--enable-new-dtags -shared -o libbar-scoped.so bar.o NIX_DONT_SET_RPATH=1 gcc -Wl,--enable-new-dtags -shared -o libfoo-scoped.so foo.o -L . -lbar-scoped LD_LIBRARY_PATH=. gcc -Wl,--enable-new-dtags -o main-scoped main.o -L . -lfoo-scoped if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.4\"\" -DPACKAGE_STRING=\"patchelf\ \"0.4\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.4\"\" -I. -I. -g -O2 -MT simple.o -MD -MP -MF ".deps/simple.Tpo" -c -o simple.o simple.c; \ then mv -f ".deps/simple.Tpo" ".deps/simple.Po"; else rm -f ".deps/simple.Tpo"; exit 1; fi gcc -g -O2 -o simple simple.o if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.4\"\" -DPACKAGE_STRING=\"patchelf\ \"0.4\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.4\"\" -I. -I. -g -O2 -MT big-dynstr.o -MD -MP -MF ".deps/big-dynstr.Tpo" -c -o big-dynstr.o big-dynstr.c; \ then mv -f ".deps/big-dynstr.Tpo" ".deps/big-dynstr.Po"; else rm -f ".deps/big-dynstr.Tpo"; exit 1; fi LD_LIBRARY_PATH=. gcc -Wl,--disable-new-dtags -o big-dynstr big-dynstr.o -L . -lfoo make[2]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make check-TESTS make[2]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' ./main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory PASS: plain-fail.sh Hello World This is foo()! This is bar()! Result is 46 PASS: plain-run.sh RPATH before: /usr/src/redhat/BUILD/patchelf-0.4/tests/no-such-path patching ELF file `scratch/libbar.so' removing directory `/usr/src/redhat/BUILD/patchelf-0.4/tests/no-such-path' from RPATH new rpath is `' RPATH after: Hello World This is foo()! This is bar()! Result is 46 PASS: shrink-rpath.sh Hello World current interpreter is /lib/ld-linux.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 6 found .interp section; this is an executable using replaced section `.interp' last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x128/0x8048128 first page is 0x8048000 needed space is 284 clearing first 20 bytes rewriting section `.interp' from offset 276 (size 19) to offset 276 (size 6) running with missing interpreter... ./set-interpreter-short.sh: scratch/simple: /oops: bad ELF interpreter: No such file or directory PASS: set-interpreter-short.sh Hello World current interpreter is /lib/ld-linux.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 150 found .interp section; this is an executable using replaced section `.interp' last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x128/0x8048128 first page is 0x8048000 needed space is 428 needed space is 460 needed pages is 1 clearing first 4084 bytes rewriting section `.interp' from offset 4372 (size 19) to offset 308 (size 150) running with missing interpreter... ./set-interpreter-long.sh: scratch/simple: /usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii: bad ELF interpreter: No such file or directory running with new interpreter... Hello World PASS: set-interpreter-long.sh patching ELF file `scratch/main' new rpath is `/oops:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsB' rpath is too long, resizing... DT_NULL index is 20 replacing section `.dynamic' with size 216 replacing section `.dynstr' with size 293 found .interp section; this is an executable using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 19 looking at section `.interp' replacing section `.interp' which is in the way looking at section `.note.ABI-tag' replacing section `.note.ABI-tag' which is in the way looking at section `.hash' replacing section `.hash' which is in the way looking at section `.dynsym' replacing section `.dynsym' which is in the way looking at section `.dynstr' looking at section `.gnu.version' first reserved offset/addr is 0x326/0x8048326 first page is 0x8048000 needed space is 1140 needed space is 1172 needed pages is 1 clearing first 4594 bytes rewriting section `.dynamic' from offset 5608 (size 208) to offset 308 (size 216) rewriting section `.dynstr' from offset 4724 (size 177) to offset 524 (size 293) rewriting section `.dynsym' from offset 4500 (size 224) to offset 820 (size 224) rewriting section `.hash' from offset 4424 (size 76) to offset 1044 (size 76) rewriting section `.interp' from offset 4372 (size 19) to offset 1120 (size 19) rewriting section `.note.ABI-tag' from offset 4392 (size 32) to offset 1140 (size 32) Hello World This is foo()! This is bar()! Result is 46 PASS: set-rpath.sh patching ELF file `scratch/no-rpath' new rpath is `/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 19 replacing section `.dynamic' with size 208 replacing section `.dynstr' with size 103 replacing section `.interp' with size 19 found .interp section; this is an executable using replaced section `.interp' using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 17 looking at section `.interp' looking at section `.note.ABI-tag' replacing section `.note.ABI-tag' which is in the way looking at section `.hash' replacing section `.hash' which is in the way looking at section `.dynsym' replacing section `.dynsym' which is in the way looking at section `.dynstr' looking at section `.gnu.version' first reserved offset/addr is 0x1ec/0x80481ec first page is 0x8048000 needed space is 728 needed space is 760 needed pages is 1 clearing first 4312 bytes rewriting section `.dynamic' from offset 5288 (size 200) to offset 276 (size 208) rewriting section `.dynstr' from offset 4512 (size 76) to offset 484 (size 103) rewriting section `.dynsym' from offset 4432 (size 80) to offset 588 (size 80) rewriting section `.hash' from offset 4392 (size 40) to offset 668 (size 40) rewriting section `.interp' from offset 4340 (size 19) to offset 708 (size 19) rewriting section `.note.ABI-tag' from offset 4360 (size 32) to offset 728 (size 32) PASS: no-rpath.sh patching ELF file `scratch/big-dynstr' new rpath is `/oops:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsB' rpath is too long, resizing... DT_NULL index is 20 replacing section `.dynamic' with size 216 replacing section `.dynstr' with size 298 found .interp section; this is an executable using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 19 looking at section `.interp' replacing section `.interp' which is in the way looking at section `.note.ABI-tag' replacing section `.note.ABI-tag' which is in the way looking at section `.hash' replacing section `.hash' which is in the way looking at section `.dynsym' replacing section `.dynsym' which is in the way looking at section `.dynstr' looking at section `.gnu.version' first reserved offset/addr is 0x33e/0x804833e first page is 0x8048000 needed space is 1164 needed space is 1196 needed pages is 1 clearing first 4618 bytes rewriting section `.dynamic' from offset 21620 (size 208) to offset 308 (size 216) rewriting section `.dynstr' from offset 4744 (size 182) to offset 524 (size 298) rewriting section `.dynsym' from offset 4504 (size 240) to offset 824 (size 240) rewriting section `.hash' from offset 4424 (size 80) to offset 1064 (size 80) rewriting section `.interp' from offset 4372 (size 19) to offset 1144 (size 19) rewriting section `.note.ABI-tag' from offset 4392 (size 32) to offset 1164 (size 32) Hello World This is foo()! This is bar()! Result is 46 PASS: big-dynstr.sh patching ELF file `scratch/main-scoped' new rpath is `/oops:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsB' rpath is too long, resizing... DT_NULL index is 20 replacing section `.dynamic' with size 216 replacing section `.dynstr' with size 300 found .interp section; this is an executable using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 19 looking at section `.interp' replacing section `.interp' which is in the way looking at section `.note.ABI-tag' replacing section `.note.ABI-tag' which is in the way looking at section `.hash' replacing section `.hash' which is in the way looking at section `.dynsym' replacing section `.dynsym' which is in the way looking at section `.dynstr' looking at section `.gnu.version' first reserved offset/addr is 0x32c/0x804832c first page is 0x8048000 needed space is 1144 needed space is 1176 needed pages is 1 clearing first 4600 bytes rewriting section `.dynamic' from offset 5612 (size 208) to offset 308 (size 216) rewriting section `.dynstr' from offset 4724 (size 184) to offset 524 (size 300) rewriting section `.dynsym' from offset 4500 (size 224) to offset 824 (size 224) rewriting section `.hash' from offset 4424 (size 76) to offset 1048 (size 76) rewriting section `.interp' from offset 4372 (size 19) to offset 1124 (size 19) rewriting section `.note.ABI-tag' from offset 4392 (size 32) to offset 1144 (size 32) ./main-scoped: error while loading shared libraries: libbar-scoped.so: cannot open shared object file: No such file or directory patching ELF file `scratch/libsA/libfoo-scoped.so' new rpath is `/oops:/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsB' rpath is too long, resizing... DT_NULL index is 20 replacing section `.dynamic' with size 208 replacing section `.dynstr' with size 243 no .interp section; this is a dynamic library last page is 0x2000 needed space is 612 rewriting section `.dynamic' from offset 1540 (size 200) to offset 8352 (size 208) rewriting section `.dynstr' from offset 736 (size 182) to offset 8560 (size 243) Hello World This is foo()! This is bar()! Result is 46 patching ELF file `scratch/main-scoped' removing directory `/oops' from RPATH removing directory `/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsB' from RPATH new rpath is `/usr/src/redhat/BUILD/patchelf-0.4/tests/scratch/libsA' Hello World This is foo()! This is bar()! Result is 46 PASS: set-rpath-library.sh ================== All 9 tests passed ================== make[2]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.55433 + umask 022 + cd /usr/src/redhat/BUILD + cd patchelf-0.4 + rm -rf /var/tmp/patchelf-0.4-buildroot + make DESTDIR=/var/tmp/patchelf-0.4-buildroot install Making install in src make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/src' make[2]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/src' test -z "/usr/bin" || mkdir -p -- "/var/tmp/patchelf-0.4-buildroot/usr/bin" /usr/bin/install -c 'patchelf' '/var/tmp/patchelf-0.4-buildroot/usr/bin/patchelf' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/src' make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/src' Making install in tests make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[2]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4/tests' make[1]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4' make[2]: Entering directory `/usr/src/redhat/BUILD/patchelf-0.4' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4' make[1]: Leaving directory `/usr/src/redhat/BUILD/patchelf-0.4' + strip /var/tmp/patchelf-0.4-buildroot//usr/bin/patchelf + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-static-archive + /usr/lib/rpm/brp-strip-comment-note /etc/security/selinux/file_contexts: No such file or directory Processing files: patchelf-0.4-1 /etc/security/selinux/file_contexts: No such file or directory D: /var/tmp/patchelf-0.4-buildroot: directory D: /var/tmp/patchelf-0.4-buildroot/usr: directory D: /var/tmp/patchelf-0.4-buildroot/usr/bin: directory D: /var/tmp/patchelf-0.4-buildroot/usr/bin/patchelf: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libm.so.6 libstdc++.so.5 libstdc++.so.5(CXXABI_1.2) libstdc++.so.5(GLIBCPP_3.2) Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/patchelf-0.4-buildroot D: execv(/usr/lib/rpm/check-files) pid 1729 D: waitpid(1729) rc 1729 status 0 warning: Could not canonicalize hostname: (none) D: fini 100444 1 ( 0, 0) 75696 /tmp/patchelf-0.4.tar.bz2 D: fini 100600 1 ( 0, 0) 702 /usr/src/redhat/SPECS/patchelf.spec GZDIO: 3 writes, 76780 total bytes in 0.005320 secs D: Signature: size(180)+pad(4) Wrote: /usr/src/redhat/SRPMS/patchelf-0.4-1.src.rpm D: fini 040755 3 ( 0, 0) 0 D: fini 040755 3 ( 0, 0) 0 /usr D: fini 040755 2 ( 0, 0) 0 /usr/bin D: fini 100755 1 ( 0, 0) 80384 /usr/bin/patchelf GZDIO: 3 writes, 80992 total bytes in 0.014770 secs D: Signature: size(180)+pad(4) Wrote: /usr/src/redhat/RPMS/i386/patchelf-0.4-1.i386.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.55433 + umask 022 + cd /usr/src/redhat/BUILD + cd patchelf-0.4 + rm -rf /var/tmp/patchelf-0.4-buildroot + exit 0