Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.41605
+ 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.41605
+ 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 0x148/0x8048148
first page is 0x8048000
needed space is 316
clearing first 20 bytes
rewriting section `.interp' from offset 308 (size 19) to offset 308 (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 0x148/0x8048148
first page is 0x8048000
needed space is 460
needed space is 492
needed pages is 1
clearing first 4084 bytes
rewriting section `.interp' from offset 4404 (size 19) to offset 340 (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 267
found .interp section; this is an executable
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 21
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 `.note.gnu.build-id'
replacing section `.note.gnu.build-id' which is in the way
looking at section `.gnu.hash'
replacing section `.gnu.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 0x330/0x8048330
first page is 0x8048000
needed space is 1148
needed space is 1180
needed pages is 1
clearing first 4572 bytes
rewriting section `.dynamic' from offset 5800 (size 208) to offset 340 (size 216)
rewriting section `.dynstr' from offset 4760 (size 151) to offset 556 (size 267)
rewriting section `.dynsym' from offset 4552 (size 208) to offset 824 (size 208)
rewriting section `.gnu.hash' from offset 4492 (size 60) to offset 1032 (size 60)
rewriting section `.interp' from offset 4404 (size 19) to offset 1092 (size 19)
rewriting section `.note.ABI-tag' from offset 4424 (size 32) to offset 1112 (size 32)
rewriting section `.note.gnu.build-id' from offset 4456 (size 36) to offset 1144 (size 36)
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 267
found .interp section; this is an executable
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 21
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 `.note.gnu.build-id'
replacing section `.note.gnu.build-id' which is in the way
looking at section `.gnu.hash'
replacing section `.gnu.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 0x330/0x8048330
first page is 0x8048000
needed space is 1148
needed space is 1180
needed pages is 1
clearing first 4572 bytes
rewriting section `.dynamic' from offset 37800 (size 208) to offset 340 (size 216)
rewriting section `.dynstr' from offset 4760 (size 151) to offset 556 (size 267)
rewriting section `.dynsym' from offset 4552 (size 208) to offset 824 (size 208)
rewriting section `.gnu.hash' from offset 4492 (size 60) to offset 1032 (size 60)
rewriting section `.interp' from offset 4404 (size 19) to offset 1092 (size 19)
rewriting section `.note.ABI-tag' from offset 4424 (size 32) to offset 1112 (size 32)
rewriting section `.note.gnu.build-id' from offset 4456 (size 36) to offset 1144 (size 36)
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 274
found .interp section; this is an executable
using replaced section `.dynstr'
using replaced section `.dynamic'
last replaced is 21
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 `.note.gnu.build-id'
replacing section `.note.gnu.build-id' which is in the way
looking at section `.gnu.hash'
replacing section `.gnu.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 0x336/0x8048336
first page is 0x8048000
needed space is 1156
needed space is 1188
needed pages is 1
clearing first 4578 bytes
rewriting section `.dynamic' from offset 5800 (size 208) to offset 340 (size 216)
rewriting section `.dynstr' from offset 4760 (size 158) to offset 556 (size 274)
rewriting section `.dynsym' from offset 4552 (size 208) to offset 832 (size 208)
rewriting section `.gnu.hash' from offset 4492 (size 60) to offset 1040 (size 60)
rewriting section `.interp' from offset 4404 (size 19) to offset 1100 (size 19)
rewriting section `.note.ABI-tag' from offset 4424 (size 32) to offset 1120 (size 32)
rewriting section `.note.gnu.build-id' from offset 4456 (size 36) to offset 1152 (size 36)
./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 210
no .interp section; this is a dynamic library
last page is 0x2000
needed space is 612
rewriting section `.dynamic' from offset 1296 (size 200) to offset 8384 (size 208)
rewriting section `.dynstr' from offset 500 (size 149) to offset 8592 (size 210)
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.89729
+ 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
Processing files: patchelf-0.4-1
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.6.9, 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.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/patchelf-0.4-buildroot
D: execv(/usr/lib/rpm/check-files) pid 1737
D: waitpid(1737) rc 1737 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: 4 writes, 76780 total bytes in 0.006568 secs
D: May free Score board((nil))
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) 102924 /usr/bin/patchelf
GZDIO: 5 writes, 103532 total bytes in 0.020723 secs
D: May free Score board((nil))
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.39383
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd patchelf-0.4
+ rm -rf /var/tmp/patchelf-0.4-buildroot
+ exit 0
D: May free Score board((nil))