On Guix 1.5, when configured with --disable-libcap, all tests pass.

But when configured without --disable-libcap, the build fails:

$ make
...
  GEN      man/dir.1
help2man: can't get `--help' info from man/dir.td/dir
Try `--no-discard-stderr' if option outputs to stderr
make[2]: *** [Makefile:30313: man/dir.1] Error 127

The program src/dir exists, and

$ src/dir --help
src/dir: error while loading shared libraries: libcap.so.2: cannot open shared 
object file: No such file or directory

Somehow this libcap.so.2 is installed in a way that the linker (ld)
can find it but the runtime linker cannot:

$ ldd src/dir
        linux-vdso.so.1 (0x00007f1990d85000)
        libcap.so.2 => not found
        libc.so.6 => 
/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/lib/libc.so.6 
(0x00007f1990b8f000)
        
/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41/lib/ld-linux-x86-64.so.2 
=> 
/gnu/store/i57hp47sdyc277d882gvhjl16kvay0w5-glibc-2.41/lib/ld-linux-x86-64.so.2 
(0x00007f1990d87000)

Reported at <https://codeberg.org/guix/guix/issues/5875>.

Bruno




Reply via email to