#194 rpath is incorrect when linking to libunbound

2.9.0
pending
nobody
None
5
2014-02-22
2014-01-15
No

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

Discussion

    • assigned_to: Murray S. Kucherawy --> nobody
    • Priority: 1 --> 5
     
  • I agree, and usually libtool adds that automatically. No idea why it wouldn't in your case.

     
    • status: open --> pending
     
  • This should be imported from libunbound automatically. No idea where the failure is in our build process. Any suggestions?

     
  • 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.

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

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

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