Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.33606 + umask 022 + cd /usr/src/packages/BUILD + cd /usr/src/packages/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,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.52711 + umask 022 + cd /usr/src/packages/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/packages/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/packages/BUILD/patchelf-0.4/src' Making all in tests make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests' make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4' + make check Making check in src make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/src' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/src' Making check in tests make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests' make main main-scoped simple big-dynstr make[2]: Entering directory `/usr/src/packages/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/packages/BUILD/patchelf-0.4/tests' make check-TESTS make[2]: Entering directory `/usr/src/packages/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/packages/BUILD/patchelf-0.4/tests/no-such-path patching ELF file `scratch/libbar.so' removing directory `/usr/src/packages/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 0x108/0x8048108 first page is 0x8048000 needed space is 252 clearing first 20 bytes rewriting section `.interp' from offset 244 (size 19) to offset 244 (size 6) running with missing interpreter... ./set-interpreter-short.sh: line 15: scratch/simple: 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 152 found .interp section; this is an executable using replaced section `.interp' last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x108/0x8048108 first page is 0x8048000 needed space is 396 needed space is 428 needed pages is 1 clearing first 4084 bytes rewriting section `.interp' from offset 4340 (size 19) to offset 276 (size 152) running with missing interpreter... ./set-interpreter-long.sh: line 16: scratch/simple: 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/packages/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/packages/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 297 found .interp section; this is an executable using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 17 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 0x306/0x8048306 first page is 0x8048000 needed space is 1112 needed space is 1144 needed pages is 1 clearing first 4594 bytes rewriting section `.dynamic' from offset 5652 (size 208) to offset 276 (size 216) rewriting section `.dynstr' from offset 4692 (size 177) to offset 492 (size 297) rewriting section `.dynsym' from offset 4468 (size 224) to offset 792 (size 224) rewriting section `.hash' from offset 4392 (size 76) to offset 1016 (size 76) rewriting section `.interp' from offset 4340 (size 19) to offset 1092 (size 19) rewriting section `.note.ABI-tag' from offset 4360 (size 32) to offset 1112 (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/packages/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/packages/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 302 found .interp section; this is an executable using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 17 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 0x31e/0x804831e first page is 0x8048000 needed space is 1136 needed space is 1168 needed pages is 1 clearing first 4618 bytes rewriting section `.dynamic' from offset 37668 (size 208) to offset 276 (size 216) rewriting section `.dynstr' from offset 4712 (size 182) to offset 492 (size 302) rewriting section `.dynsym' from offset 4472 (size 240) to offset 796 (size 240) rewriting section `.hash' from offset 4392 (size 80) to offset 1036 (size 80) rewriting section `.interp' from offset 4340 (size 19) to offset 1116 (size 19) rewriting section `.note.ABI-tag' from offset 4360 (size 32) to offset 1136 (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/packages/BUILD/patchelf-0.4/tests/scratch/libsA:/usr/src/packages/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 304 found .interp section; this is an executable using replaced section `.dynstr' using replaced section `.dynamic' last replaced is 17 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 0x30c/0x804830c first page is 0x8048000 needed space is 1116 needed space is 1148 needed pages is 1 clearing first 4600 bytes rewriting section `.dynamic' from offset 5652 (size 208) to offset 276 (size 216) rewriting section `.dynstr' from offset 4692 (size 184) to offset 492 (size 304) rewriting section `.dynsym' from offset 4468 (size 224) to offset 796 (size 224) rewriting section `.hash' from offset 4392 (size 76) to offset 1020 (size 76) rewriting section `.interp' from offset 4340 (size 19) to offset 1096 (size 19) rewriting section `.note.ABI-tag' from offset 4360 (size 32) to offset 1116 (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/packages/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 245 no .interp section; this is a dynamic library last page is 0x2000 needed space is 584 rewriting section `.dynamic' from offset 1964 (size 200) to offset 8320 (size 208) rewriting section `.dynstr' from offset 1084 (size 182) to offset 8528 (size 245) 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/packages/BUILD/patchelf-0.4/tests/scratch/libsB' from RPATH new rpath is `/usr/src/packages/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/packages/BUILD/patchelf-0.4/tests' make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests' make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.31001 + umask 022 + cd /usr/src/packages/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/packages/BUILD/patchelf-0.4/src' make[2]: Entering directory `/usr/src/packages/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/packages/BUILD/patchelf-0.4/src' make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/src' Making install in tests make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4/tests' make[2]: Entering directory `/usr/src/packages/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/packages/BUILD/patchelf-0.4/tests' make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4/tests' make[1]: Entering directory `/usr/src/packages/BUILD/patchelf-0.4' make[2]: Entering directory `/usr/src/packages/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/packages/BUILD/patchelf-0.4' make[1]: Leaving directory `/usr/src/packages/BUILD/patchelf-0.4' + strip /var/tmp/patchelf-0.4-buildroot//usr/bin/patchelf + RPM_BUILD_ROOT=/var/tmp/patchelf-0.4-buildroot + export RPM_BUILD_ROOT + test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /var/tmp/patchelf-0.4-buildroot + echo 'I call /usr/sbin/Check...' I call /usr/sbin/Check... + /usr/sbin/Check -rw-r--r-- 1 root root 467 Oct 2 2003 /usr/share/info/dir.rpmnew.gz Checking permissions and ownerships - using the permissions files /tmp/Check.perms.GV1736 setting /tmp to root.root 1777. setting /var/spool/uucp to uucp.uucp 755. setting /var/cache/man to man.root 755. setting /dev/zero to root.root 666. setting /etc/ppp to root.dialout 750. setting /var/log/lastlog to root.tty 644. setting /sbin/unix_chkpwd to root.shadow 2755. setting /var/games to games.games 0775. setting /dev/null to root.root 666. setting /dev to root.root 755. setting /etc/syslog.conf to root.root 644. + /usr/lib/rpm/brp-compress Processing files: patchelf-0.4-1 D: execv(/usr/lib/rpm/find-provides) pid 1748 D: waitpid(1748) rc 1748 status 0 Finding Provides: /usr/lib/rpm/find-provides D: execv(/usr/lib/rpm/find-requires) pid 1757 /usr/lib/rpm/find-requires: line 4: /dev/fd/62: No such file or directory grep: write error: Broken pipe /usr/lib/rpm/find-requires: line 36: /dev/fd/62: No such file or directory D: waitpid(1757) rc 1757 status 100 Finding Requires: /usr/lib/rpm/find-requires Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/patchelf-0.4-buildroot D: execv(/usr/lib/rpm/check-files) pid 1793 D: waitpid(1793) rc 1793 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/packages/SPECS/patchelf.spec GZDIO: 3 writes, 76780 total bytes in 0.150 secs D: Signature: size(180)+pad(4) Wrote: /usr/src/packages/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) 94912 /usr/bin/patchelf GZDIO: 3 writes, 95520 total bytes in 2.498 secs D: Signature: size(180)+pad(4) Wrote: /usr/src/packages/RPMS/i586/patchelf-0.4-1.i586.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.5793 + umask 022 + cd /usr/src/packages/BUILD + cd patchelf-0.4 + rm -rf /var/tmp/patchelf-0.4-buildroot + exit 0