#194 rpath is incorrect when linking to libunbound


I built OpenDKIM against unbound using --with-unbound=/opt/zimbra/unbound \

However, after the build, openkdim fails to run with:

/opt/zimbra/opendkim/sbin/opendkim: error while loading shared libraries: libunbound.so.2: cannot open shared object file: No such file or directory

I've fixed this by adding -Wl,rpath bits to my CFLAGS, but this should not be necessary


  • Murray S. Kucherawy

    • assigned_to: Murray S. Kucherawy --> nobody
    • Priority: 1 --> 5
  • Murray S. Kucherawy

    I agree, and usually libtool adds that automatically. No idea why it wouldn't in your case.

  • Murray S. Kucherawy

    • status: open --> pending
  • Murray S. Kucherawy

    This should be imported from libunbound automatically. No idea where the failure is in our build process. Any suggestions?

  • Patrick Laimbock

    Maybe something got confused in configure or the Makefiles. Before running configure can you add the following steps, rebuild and see if the problem persists?

    rm -v configure
    rm -v aclocal.m4
    libtoolize -v -c -f -i
    aclocal -I m4 --force --verbose
    autoheader -v -f
    automake -v -a -c -f
    autoreconf -v -f -i

    ./configure or %configure if you're building an RPM, etc.

  • Quanah Gibson-Mount

    Linking to unbound works correctly with the beta version of OpenDKIM 2.9.1, so can be closed out.

  • Murray S. Kucherawy

    I didn't change anything about this in 2.9.1. Confused.

  • Murray S. Kucherawy

    I'll leave this open until it can be verified in the 2.9.1 release.


Log in to post a comment.