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

From: Devrim Gündüz <devrim(at)gunduz(dot)org>
To: Christoph Berg <christoph(dot)berg(at)credativ(dot)de>
Cc: PGDG RPM Packages <pgsql-pkg-yum(at)postgresql(dot)org>
Subject: Re: Bad permissions on postgresql-*-libs.conf
Date: 2014-07-01 15:25:33
Message-ID: 1404228333.2518.4.camel@asus-laptop-03.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum


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

In response to

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2014-07-10 11:56:43 Re: Add PgBackMan to the yum-repo
Previous Message Christoph Berg 2014-07-01 14:36:48 Bad permissions on postgresql-*-libs.conf