|make check| fails because of rpath
|make check| fails because of rpath
От:
Bradley Baetz <bbaetz@acm.org>
Дата:
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