check flags: building check-recursive Making check in src make[1]: Entering directory `/tmp/nix-5655-0/patchelf-0.3/src' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/nix-5655-0/patchelf-0.3/src' Making check in tests building check-am make[1]: Entering directory `/tmp/nix-5655-0/patchelf-0.3/tests' make main simple big-dynstr building main.o make[2]: Entering directory `/tmp/nix-5655-0/patchelf-0.3/tests' gcc -fpic -o main.o -c main.c building foo.o gcc -fpic -o foo.o -c foo.c building bar.o gcc -fpic -o bar.o -c bar.c building libbar.so NIX_DONT_SET_RPATH=1 gcc -shared -o libbar.so bar.o -L . -Wl,-rpath,`pwd`/no-such-path building libfoo.so gcc -shared -o libfoo.so foo.o -L . -lbar building main LD_LIBRARY_PATH=. gcc -o main main.o -L . -lfoo building simple.o if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.3\"\" -DPACKAGE_STRING=\"patchelf\ \"0.3\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.3\"\" -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 building simple gcc -g -O2 -o simple simple.o  building big-dynstr.o if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.3\"\" -DPACKAGE_STRING=\"patchelf\ \"0.3\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.3\"\" -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 building big-dynstr LD_LIBRARY_PATH=. gcc -o big-dynstr big-dynstr.o -L . -lfoo make[2]: Leaving directory `/tmp/nix-5655-0/patchelf-0.3/tests' make check-TESTS building check-TESTS make[2]: Entering directory `/tmp/nix-5655-0/patchelf-0.3/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: /tmp/nix-5655-0/patchelf-0.3/tests/no-such-path:/nix/store/kq04w664xdl9zlia2cawwkg7yvicqm4d-patchelf/lib patching ELF file `scratch/libbar.so' removing directory `/tmp/nix-5655-0/patchelf-0.3/tests/no-such-path' from RPATH removing directory `/nix/store/kq04w664xdl9zlia2cawwkg7yvicqm4d-patchelf/lib' 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 /nix/store/gihs2w325s8ml0f4nj57rbv9kj9sa228-glibc-2.5/lib/ld-linux-x86-64.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 6 using replaced section `.interp' last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x250/0x400250 first page is 0x400000 needed space is 520 clearing first 80 bytes rewriting section `.interp' to offset 512 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 /nix/store/gihs2w325s8ml0f4nj57rbv9kj9sa228-glibc-2.5/lib/ld-linux-x86-64.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 144 using replaced section `.interp' last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x250/0x400250 first page is 0x400000 needed space is 656 needed space is 712 needed pages is 1 clearing first 4120 bytes rewriting section `.interp' to offset 568 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 `/nix/store/kq04w664xdl9zlia2cawwkg7yvicqm4d-patchelf/lib:/nix/store/r202qfm08garmg50ingrmw4yqa9bmb1m-gcc-4.1.1/lib64:/nix/store/gihs2w325s8ml0f4nj57rbv9kj9sa228-glibc-2.5/lib:/tmp/nix-5655-0/patchelf-0.3/tests/scratch/libsA:/tmp/nix-5655-0/patchelf-0.3/tests/scratch/libsB' rpath is too long, resizing... replacing section `.dynstr' with size 586 using replaced section `.dynstr' last replaced is 5 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' first reserved offset/addr is 0x512/0x400512 first page is 0x400000 needed space is 1576 needed space is 1632 needed pages is 1 clearing first 4826 bytes rewriting section `.dynstr' to offset 568 rewriting section `.dynsym' to offset 1160 rewriting section `.hash' to offset 1448 rewriting section `.interp' to offset 1520 rewriting section `.note.ABI-tag' to offset 1600 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 79 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 788 needed space is 820 needed pages is 1 clearing first 4312 bytes rewriting section `.dynamic' to offset 276 rewriting section `.dynstr' to offset 484 rewriting section `.dynsym' to offset 588 rewriting section `.hash' to offset 668 rewriting section `.interp' to offset 708 rewriting section `.note.ABI-tag' to offset 788 PASS: no-rpath.sh patching ELF file `scratch/big-dynstr' new rpath is `/nix/store/kq04w664xdl9zlia2cawwkg7yvicqm4d-patchelf/lib:/nix/store/r202qfm08garmg50ingrmw4yqa9bmb1m-gcc-4.1.1/lib64:/nix/store/gihs2w325s8ml0f4nj57rbv9kj9sa228-glibc-2.5/lib:/tmp/nix-5655-0/patchelf-0.3/tests/scratch/libsA:/tmp/nix-5655-0/patchelf-0.3/tests/scratch/libsB' rpath is too long, resizing... replacing section `.dynstr' with size 586 using replaced section `.dynstr' last replaced is 5 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' first reserved offset/addr is 0x512/0x400512 first page is 0x400000 needed space is 1576 needed space is 1632 needed pages is 1 clearing first 4826 bytes rewriting section `.dynstr' to offset 568 rewriting section `.dynsym' to offset 1160 rewriting section `.hash' to offset 1448 rewriting section `.interp' to offset 1520 rewriting section `.note.ABI-tag' to offset 1600 Hello World This is foo()! This is bar()! Result is 46 PASS: big-dynstr.sh ================== All 8 tests passed ================== make[2]: Leaving directory `/tmp/nix-5655-0/patchelf-0.3/tests' make[1]: Leaving directory `/tmp/nix-5655-0/patchelf-0.3/tests' make[1]: Entering directory `/tmp/nix-5655-0/patchelf-0.3' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/tmp/nix-5655-0/patchelf-0.3'