Re: [Nix-dev] Static Executable: Patchelf fails me

2015-01-05 Thread Eelco Dolstra
Hi, On 05/01/15 00:24, Moritz Ulrich wrote: $ patchelf ./s3d.run patchelf: patchelf.cc:292: void ElfFileElf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int;

Re: [Nix-dev] Static Executable: Patchelf fails me

2015-01-05 Thread Vladimír Čunát
On 01/05/2015 12:24 AM, Moritz Ulrich wrote: It's also worth to note that the executable (an installer) works just fine when I symlink any ld-linux-x86-64.so.2 to /lib64. I guess that's the only thing you can do with a static executable (using static libc is bad enough by itself). Of course,

[Nix-dev] Static Executable: Patchelf fails me

2015-01-04 Thread Moritz Ulrich
Hello, I'm trying to package/run a static executable for Simplify3D, a commercial 3D printer slicing software. My usual approaches (patchelf, LD_PRELOAD) fail me here, so I'm asking for help Some information on the file: $ file ./s3d.run ./s3d.run: ELF 64-bit LSB executable, x86-64, version 1

Re: [Nix-dev] Static Executable: Patchelf fails me

2015-01-04 Thread Moritz Ulrich
Sorry for mangling the lines. I blame Emacs. Moritz Ulrich mor...@tarn-vedra.de writes: Hello, I'm trying to package/run a static executable for Simplify3D, a commercial 3D printer slicing software. My usual approaches (patchelf, LD_PRELOAD) fail me here, so I'm asking for help Some

Re: [Nix-dev] Static Executable: Patchelf fails me

2015-01-04 Thread Luca Bruno
Not an expert here, but maybe the binary is so much stripped that patchelf is not able to determine the right offsets for patching the binary. About the segfault, maybe it spawns some other process and the libs are not propagated? That may explain why the symlink works. On Mon, Jan 5, 2015 at