Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6DFB89FB519 for ; Tue, 29 May 2007 09:17:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 89591-02 for ; Tue, 29 May 2007 09:17:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from gmp-ea-fw-1.sun.com (gmp-ea-fw-1.sun.com [192.18.1.36]) by postgresql.org (Postfix) with ESMTP id 37A069FB280 for ; Tue, 29 May 2007 09:16:52 -0300 (ADT) Received: from d1-emea-10.sun.com ([192.18.2.120]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l4TCGoWw016014 for ; Tue, 29 May 2007 12:16:50 GMT Received: from conversion-daemon.d1-emea-10.sun.com by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JIS00001Y2XKY00@d1-emea-10.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-ports@postgresql.org; Tue, 29 May 2007 13:16:49 +0100 (BST) Received: from [129.150.120.147] by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JIS001DIY40EQMD@d1-emea-10.sun.com>; Tue, 29 May 2007 13:16:49 +0100 (BST) Date: Tue, 29 May 2007 14:16:48 +0200 From: Zdenek Kotala Subject: Re: Solaris SONAME not matching libraries In-reply-to: <29270.1180371524@sss.pgh.pa.us> To: Tom Lane Cc: Mark Round , pgsql-ports@postgresql.org Message-id: <465C19B0.1070500@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <6FE84310-15D9-4F9D-A4B7-60E7FDA4C939@markround.com> <29270.1180371524@sss.pgh.pa.us> User-Agent: Thunderbird 1.5.0.8 (X11/20061204) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/5 X-Sequence-Number: 2553 Tom Lane wrote: > Mark Round writes: >> As you can see, the file is installed with the name "plpgsql.so", >> although it's SONAME according to elfdump is set to libplpgsql.so.1. >> Why the discrepancy ? > > It's an artifact of the Makefile rules we use to generate shared > libraries --- Makefile.shlib insists on building any shared library > under the name 'libsomething'. Is it important enough to fix? I think it is minor bug. SONAME is used by linker to setup dependencies (NEEDED) in a final binary. Plpgsql is loaded dynamically and postmaster is not linked with this library directly. It means that this problem does not occur anywhere. I don't expect that somebody will link these libraries and create separate binary. However, if I look into lib directory there are only five libraries with lib prefix and 60 without prefix. I suggested to introduce SO_PREFIX variable which will be used for affected five libraries in their makefiles. And also adjust pgxs.mk to keep name untouched. Zdenek