|make check| fails because of rpath - Mailing list pgsql-bugs

From Bradley Baetz
Subject |make check| fails because of rpath
Date
Msg-id 20030503040021.GA17807@mango.home
Whole thread Raw
List pgsql-bugs
CVS postgresql builds psql + friends with rpath enabled:

gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations command.o
common.o
help.o input.o stringutils.o mainloop.o copy.o startup.o prompt.o
variables.o large_obj.o print.o describe.o sprompt.o tab-complete.o
mbprint.o -L../../../src/interfaces/libpq -lpq -L../../../src/port
-Wl,-rpath,/home/bbaetz/swtest/lib -lz -lreadline -ltermcap -lcrypt
-lresolv -lnsl -ldl -lm -lbsd  -lpgport -o psql

This means that |make check| picks up the libpg.so in the install dir
(/home/bbaetz/swtest/lib/), rather than that of the LD_LIBRARY_PATH.
This causes make check to fail with the error "Your development libpq is
out of sync with the server". Removing the lib from
/home/bbaetz/swtest/lib lets the tests proceed without problems.

configure arguments were:

./configure --prefix=/home/bbaetz/swtest --enable-debug --enable-depend

Bradley

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug #963: Weird plpython trigger(?) behaviour in 7.3.2
Next
From: Josh Berkus
Date:
Subject: Re: Large object corruption