Comment 6 for bug 1708048

Revision history for this message
Mike Rylander (mrylander) wrote :

More:

The main difference in opensrf-c is that, on Wheezy (and, I'll guess, other currently-working distros) libtool sets the RPATH to /openils/lib, but on Stretch, it sets RUNPATH. The difference is that RPATH is the first thing that's evaluated when looking for a library, before LD_LIBRARY_PATH and ld.so.cache, but RUNPATH is (supposed to be) evaluated between the LD_LIBRARY_PATH and ld.so.cache. Per: https://www.physics.drexel.edu/~wking/unfolding-disasters-old/posts/rpath/

Still looking into if/why this matters, but it looks like a good lead right now. We may just need to force libtool to set RPATH.

Also, per http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html ldconfig does expect files it will investigate as libraries to start with "lib" which explains why the symlink in my previous comment allows things to work (almost).