On 19/05 10.28, Bjorn Munch wrote:
> On 16/05 15.29, James Gates wrote:
[.........]

> > This is because the RUNPATH does not include /usr/postgres/8.3/lib when 
> > it's built:
> 
> Ouch!
> 
> [...........]
> 
> > I think you need to tweak the LD_OPTIONS in 
> > usr/src/cmd/postgres/postgresql-8.3/libpqxx/Makefile.sfw
> 
> I will investigate.  I also need to find out why my test script didn't
> fail.

Well, LD_OPTIONS and/or LD_RUN_PATH worked fine for *adding*
/usr/postgres/8.3/lib to the RUNPATH, but I couldn't get rid of the
other "mess".  I also couldn't figure out how it got added, so I asked
on the libpqxx mailing list for help.

We can't ship something with a RUNPATH like this even if it works:

---
/usr/postgres/8.3/lib:/ws/onnv-tools/SUNWspro/SS11/lib/rw7:/ws/onnv-tools/SUNWspro/SS11/lib/v8plus:/ws/onnv-tools/SUNWspro/SS11/lib:/opt/SUNWspro/lib/v8plus:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
---

The reason my test script succeeded is simple: the (95!) test clients
were all compiled with a RUNPATH including /usr/postgres/8.3/lib for
libpqxx, but since libpq is also there it worked fine.

- Bjorn

Reply via email to