Hi,
these files should be world readable (644), or else the linker won't
find dependencies of some libraries:
-rwx------. 1 root root 20 18. Mär 04:44 /usr/pgsql-9.1/share/postgresql-9.1-libs.conf
-rwx------. 1 root root 20 18. Mär 10:42 /usr/pgsql-9.2/share/postgresql-9.2-libs.conf
-rwx------. 1 root root 20 15. Mai 14:23 /usr/pgsql-9.4/share/postgresql-9.4-libs.conf
# su -s/bin/bash -c 'cc -I/usr/pgsql-9.4/include -L/usr/pgsql-9.4/lib -o test test.c -lecpg' nobody
/usr/bin/ld: warning: libpgtypes.so.3, needed by /usr/pgsql-9.4/lib/libecpg.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libpq.so.5, needed by /usr/pgsql-9.4/lib/libecpg.so, not found (try using -rpath or -rpath-link)
/usr/pgsql-9.4/lib/libecpg.so: undefined reference to `PQcmdStatus'
/usr/pgsql-9.4/lib/libecpg.so: undefined reference to `PGTYPEStimestamp_from_asc'
[...]
Christoph
--
cb@df7cb.de | http://www.df7cb.de/