[Nix-dev] trying patchelf

Lluís Batlle viriketo at gmail.com
Tue Jan 20 23:25:21 CET 2009


Hello,

on NixOS I have a binary, with these deps:
$ ldd pdflrf
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 =>
/nix/store/b2gmgy8y6nidjj7n34jx4sanrjdaxrw3-glibc-2.7/lib/libc.so.6
(0xb7e3a000)
        libstdc++.so.5 =>
/nix/store/1gzfqw9vxd7ygzpn97nj8rq3avfzlcan-gcc-3.3.6/lib/libstdc++.so.5
(0xb7d80000)
        libm.so.6 =>
/nix/store/b2gmgy8y6nidjj7n34jx4sanrjdaxrw3-glibc-2.7/lib/libm.so.6
(0xb7d5b000)
        libpthread.so.0 =>
/nix/store/b2gmgy8y6nidjj7n34jx4sanrjdaxrw3-glibc-2.7/lib/libpthread.so.0
(0xb7d43000)
        libfontconfig.so.1 => not found
        libgcc_s.so.1 =>
/nix/store/1gzfqw9vxd7ygzpn97nj8rq3avfzlcan-gcc-3.3.6/lib/libgcc_s.so.1
(0xb7d3a000)
        /home/viric/.nix-profile/lib/ld-linux.so.2 (0xb7f76000)

When I --set-rpath to
/nix/store/1gzfqw9vxd7ygzpn97nj8rq3avfzlcan-gcc-3.3.6/lib/, it finds
the gcc libs, but not fontconfig. If I set it to the libfontconfig
store path, it cannot find the gcc libs.

How can I get that binary working?

Regards,
Lluís.


More information about the nix-dev mailing list