<div dir="auto">Thanks for the advice.  I will check into this.  Probably won't get to it for a few weeks.<div dir="auto">Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 18, 2018, 7:47 AM Greg Troxel <<a href="mailto:gdt@lexort.com">gdt@lexort.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bruce Rindahl <<a href="mailto:bruce.rindahl@gmail.com" target="_blank" rel="noreferrer">bruce.rindahl@gmail.com</a>> writes:<br>
<br>
> Running make test.  All tests OK until loader when I ran unto this:<br>
><br>
> ---- Making check in loader<br>
> make[1]: Entering directory '/home/pi/postgis-3.0.0dev/loader'<br>
> make -C cunit check<br>
> make[2]: Entering directory '/home/pi/postgis-3.0.0dev/loader/cunit'<br>
> /home/pi/postgis-3.0.0dev/loader/cunit/.libs/lt-cu_tester: error while<br>
> loading shared libraries: libpq.so.5: cannot open shared object file: No<br>
> such file or directory<br>
> Makefile:80: recipe for target 'check' failed<br>
><br>
> llibpq.so.5 is at /usr/local/pgsql/lib/libpq.so.5 at the standard location<br>
> from the postgresql 11.1 install.  Suggestions?<br>
<br>
In theory, -L/-R would be set on the link line for binaries/libraries<br>
that need libs to 1) find them at compile time and 2) find them at<br>
runtime using RPATH.  In practice, this is often not quite right because<br>
if one uses the same prefix for many things bugs are covered up.<br>
<br>
And, I have the impression some systems don't use RPATH, and instead<br>
want some system-wide configuration of the directories that have<br>
libraries, but I don't understand if this impression is correct or the<br>
details.<br>
<br>
The various config programs (foo-config scripts, and pkg-config) in<br>
theory should be providing correct -L/-R flags for the rules of the type<br>
of system.  But these can have bugs.<br>
<br>
So, I would recommend that you go over the build logs and look at the<br>
linker flags when the file that's trouble was linked, and see if<br>
-Wl,--rpath or -R is present.  Also look at the file with objdump -x and<br>
look for RPATH and NEEDED entries.<br>
</blockquote></div>