Konrad Hinsen <[email protected]> skribis:

> Ludovic Courtès writes:
>
>  > That is weird.  Can you send the output of this command:
>  > 
>  >   objdump -x /home/hinsen/Development/guix/guix-daemon | grep -E 
> '(PATH|NEED)'
>
> Sure:
>
>   NEEDED               libsqlite3.so.0
>   NEEDED               libgcrypt.so.11
>   NEEDED               libstdc++.so.6
>   NEEDED               libm.so.6
>   NEEDED               libgcc_s.so.1
>   NEEDED               libc.so.6
>   NEEDED               libpthread.so.0
>   RPATH                
> /nix/store/ybdv89csf4sn7wbmgj9kfjjk1b0mhrlb-glibc-2.17/lib:/nix/store/7aclzhylh2rns1m6ppmmvfzndrmvz7pa-gcc-4.7.3/lib64:/nix/store/7aclzhylh2rns1m6ppmmvfzndrmvz7pa-gcc-4.7.3/lib
>   VERNEED              0x0000000000403d68
>   VERNEEDNUM           0x0000000000000005

SQLite is not listed in the RPATH, hence the run-timer link failure you
observe.  Normally SQLite’s directory would appear in the RPATH.

If you are building with the GCC and libc installed from Guix, then you
must also install the linker wrapper:

  guix package -i ld-wrapper

The wrapper takes care of adding the relevant libraries to the RPATH,
which will fix the problem.

(Ideally, it would either be installed automatically when one installs
GCC, or at least be recommended.)

HTH,
Ludo’.

Reply via email to