check flags: building check-recursive Making check in src make[1]: Entering directory `/tmp/nix-21581-9/patchelf-0.3/src' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/nix-21581-9/patchelf-0.3/src' Making check in tests building check-am make[1]: Entering directory `/tmp/nix-21581-9/patchelf-0.3/tests' make main simple big-dynstr building main.o make[2]: Entering directory `/tmp/nix-21581-9/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-21581-9/patchelf-0.3/tests' make check-TESTS building check-TESTS make[2]: Entering directory `/tmp/nix-21581-9/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-21581-9/patchelf-0.3/tests/no-such-path:/nix/store/nlgdmsfjgg9s4layllzzcgzzx1m7sr2k-patchelf/lib patching ELF file `scratch/libbar.so' removing directory `/tmp/nix-21581-9/patchelf-0.3/tests/no-such-path' from RPATH removing directory `/nix/store/nlgdmsfjgg9s4layllzzcgzzx1m7sr2k-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/im276akmsrhvgh9hmbxmcwrsifmbsh2g-glibc-2.5/lib/ld-linux.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 0x15c/0x804815c first page is 0x8048000 needed space is 284 clearing first 72 bytes rewriting section `.interp' to offset 276 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/im276akmsrhvgh9hmbxmcwrsifmbsh2g-glibc-2.5/lib/ld-linux.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 145 using replaced section `.interp' last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x15c/0x804815c first page is 0x8048000 needed space is 424 needed space is 456 needed pages is 1 clearing first 4136 bytes rewriting section `.interp' to offset 308 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/nlgdmsfjgg9s4layllzzcgzzx1m7sr2k-patchelf/lib:/nix/store/kpqz9a4clx96538rr0zmsy3v40iqd88g-gcc-4.1.1/lib:/nix/store/im276akmsrhvgh9hmbxmcwrsifmbsh2g-glibc-2.5/lib:/tmp/nix-21581-9/patchelf-0.3/tests/scratch/libsA:/tmp/nix-21581-9/patchelf-0.3/tests/scratch/libsB' rpath is too long, resizing... replacing section `.dynstr' with size 597 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 0x3d8/0x80483d8 first page is 0x8048000 needed space is 1260 needed space is 1292 needed pages is 1 clearing first 4772 bytes rewriting section `.dynstr' to offset 308 rewriting section `.dynsym' to offset 908 rewriting section `.hash' to offset 1116 rewriting section `.interp' to offset 1188 rewriting section `.note.ABI-tag' to offset 1260 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 72 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 780 needed space is 812 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 780 PASS: no-rpath.sh patching ELF file `scratch/big-dynstr' new rpath is `/nix/store/nlgdmsfjgg9s4layllzzcgzzx1m7sr2k-patchelf/lib:/nix/store/kpqz9a4clx96538rr0zmsy3v40iqd88g-gcc-4.1.1/lib:/nix/store/im276akmsrhvgh9hmbxmcwrsifmbsh2g-glibc-2.5/lib:/tmp/nix-21581-9/patchelf-0.3/tests/scratch/libsA:/tmp/nix-21581-9/patchelf-0.3/tests/scratch/libsB' rpath is too long, resizing... replacing section `.dynstr' with size 597 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 0x3d8/0x80483d8 first page is 0x8048000 needed space is 1260 needed space is 1292 needed pages is 1 clearing first 4772 bytes rewriting section `.dynstr' to offset 308 rewriting section `.dynsym' to offset 908 rewriting section `.hash' to offset 1116 rewriting section `.interp' to offset 1188 rewriting section `.note.ABI-tag' to offset 1260 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-21581-9/patchelf-0.3/tests' make[1]: Leaving directory `/tmp/nix-21581-9/patchelf-0.3/tests' make[1]: Entering directory `/tmp/nix-21581-9/patchelf-0.3' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/tmp/nix-21581-9/patchelf-0.3'