Thread: Bad permissions on postgresql-*-libs.conf

Bad permissions on postgresql-*-libs.conf

From
Christoph Berg
Date:
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/


Re: Bad permissions on postgresql-*-libs.conf

From
Devrim Gündüz
Date:
Hi Christoph,

On Tue, 2014-07-01 at 16:36 +0200, Christoph Berg wrote:

> 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'


Thanks for finding the long standing bug. Appreciated. Just committed
the changes to spec file. Changes will appear in next minor releases.

(Jeff, I did not bump up minor version numbers this time (laziness).
Just updated the changelog item.)

Regards,

--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


Attachment