From: jhirsch <jonhirsch01@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13622: unsafe use of relative rpath libpq.5.dylib
Date: Wed, 11 Nov 2015 08:48:02 -0700 (MST)
Message-ID: <1447256882811-5873522.post@n5.nabble.com> (raw)
In-Reply-To: <1443800505621-5868332.post@n5.nabble.com>
References: <20150916214838.2678.27652@wrigleys.postgresql.org>
<1443800505621-5868332.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Yes, the issue is being caused by SIP. Here is a workaround. It is not
difficult but it is a bit cumbersome.
1. Boot into recovery mode and disable SIP.
2. reboot
3. You need to run the install_name_tool command to specify the absolute
path to the libpq.5.dylib library. You can see where it is pointing to with
another command, otool.
Ex. libpq.5.dylib is a relative path and that is causing the error.
bash-3.2# otool -L <Dir_Where_Your_postgres_lib_is>/pdo_pgsql.so
<Dir_Where_Your_postgres_lib_is>/pdo_pgsql.so:
libpq.5.dylib (compatibility version 5.0.0, current version 5.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1225.1.1)
Run this.
bash-3.2# install_name_tool -change libpq.5.dylib /usr/lib/libpq.5.dylib
<Dir_Where_Your_postgres_lib_is>/pdo_pgsql.so
After running when you check with otool you will see the change. (it says
/usr/lib/libpq.5.dylib)
bash-3.2# otool -L <Dir_Where_Your_postgres_lib_is>/pdo_pgsql.so
<Dir_Where_Your_postgres_lib_is>/pdo_pgsql.so:
/usr/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1225.1.1)
4. Boot back into recovery mode and enable SIP.
5. Reboot again. That should be it.
--
View this message in context: http://postgresql.nabble.com/BUG-13622-unsafe-use-of-relative-rpath-libpq-5-dylib-tp5866235p5873522....
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: jonhirsch01@gmail.com
Subject: Re: BUG #13622: unsafe use of relative rpath libpq.5.dylib
In-Reply-To: <1447256882811-5873522.post@n5.nabble.com>
References: <20150916214838.2678.27652@wrigleys.postgresql.org> <1443800505621-5868332.post@n5.nabble.com> <1447256882811-5873522.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox