Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZwXdc-0002Lk-Tw for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Nov 2015 15:48:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZwXdc-0002K0-BU for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Nov 2015 15:48:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZwXd0-0001dl-FW for pgsql-bugs@postgresql.org; Wed, 11 Nov 2015 15:48:06 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZwXcx-0008Ri-Lm for pgsql-bugs@postgresql.org; Wed, 11 Nov 2015 15:48:05 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 4A0AB19D237E for ; Wed, 11 Nov 2015 07:36:31 -0800 (PST) Date: Wed, 11 Nov 2015 08:48:02 -0700 (MST) From: jhirsch To: pgsql-bugs@postgresql.org Message-ID: <1447256882811-5873522.post@n5.nabble.com> In-Reply-To: <1443800505621-5868332.post@n5.nabble.com> References: <20150916214838.2678.27652@wrigleys.postgresql.org> <1443800505621-5868332.post@n5.nabble.com> Subject: Re: BUG #13622: unsafe use of relative rpath libpq.5.dylib MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 /pdo_pgsql.so /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 /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 /pdo_pgsql.so /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.html 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