Re: Solaris SONAME not matching libraries

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема Re: Solaris SONAME not matching libraries
Дата
Msg-id 465C19B0.1070500@sun.com
обсуждение исходный текст
Ответ на Re: Solaris SONAME not matching libraries  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Solaris SONAME not matching libraries  (Mark Round <mark@markround.com>)
Список pgsql-ports
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

В списке pgsql-ports по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Solaris SONAME not matching libraries
Следующее
От: Mark Round
Дата:
Сообщение: Re: Solaris SONAME not matching libraries