pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zdenek Kotala <Zdenek.Kotala@Sun.COM>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark Round <mark@markround.com>
Cc: pgsql-ports@postgresql.org
Subject: Re: Solaris SONAME not matching libraries
Date: Tue, 29 May 2007 14:16:48 +0200
Message-ID: <465C19B0.1070500@sun.com> (raw)
In-Reply-To: <29270.1180371524@sss.pgh.pa.us>
References: <6FE84310-15D9-4F9D-A4B7-60E7FDA4C939@markround.com>
	<29270.1180371524@sss.pgh.pa.us>

Tom Lane wrote:
> Mark Round <mark@markround.com> 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



view thread (5+ messages)  latest in thread

Message-ID: <465C19B0.1070500@sun.com>
Permalink:  ../465C19B0.1070500@sun.com/
Also on:    postgresql.org/message-id/465C19B0.1070500@sun.com

 · 

reply

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-ports@postgresql.org
  Cc: Zdenek.Kotala@Sun.COM, tgl@sss.pgh.pa.us, mark@markround.com
  Subject: Re: Solaris SONAME not matching libraries
  In-Reply-To: <465C19B0.1070500@sun.com>
  References: <6FE84310-15D9-4F9D-A4B7-60E7FDA4C939@markround.com> <29270.1180371524@sss.pgh.pa.us> <465C19B0.1070500@sun.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