Re: Re: patch to fix configure(.in) on openbsd wrt/ krb5/com_err and readline linking

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Re: patch to fix configure(.in) on openbsd wrt/ krb5/com_err and readline linking
Дата
Msg-id 4136ffa0906110348u1cbea258m48e1aae6f127b2e3@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Re: patch to fix configure(.in) on openbsd wrt/ krb5/com_err and readline linking  (Simon Bertrang <janus@errornet.de>)
Список pgsql-bugs
On Wed, Jun 10, 2009 at 4:32 PM, Simon Bertrang<janus@errornet.de> wrote:
> On Wed, Jun 10, 2009 at 05:20:00PM +0200, Simon Bertrang wrote:
>> On Wed, Jun 10, 2009 at 10:05:36AM -0400, Tom Lane wrote:
>> > Greg Stark <stark@enterprisedb.com> writes:
>> > > This seems really weird. Firstly, doesn't OpenBSD use ELF? Shouldn't
>> > > the library pull in the indirectly needed libraries automatically? B=
ut
>> > > more to the point, why on *earth* would com_err depend on -lssl and
>> > > -lcrypto? com_err is just a standard error handling library. =A0Why
>> > > would it fail to link without ssl and crypto libraries?!?!
>> >
>> > And you'd also need to explain why the spoonbill buildfarm member
>> > is building just fine without this ... it does have kerberos
>> > enabled ...
>> >
>>
>> Indeed a good question. =A0I'm comparing the config and build logs but
>> nothing jumped into my face yet. =A0I should fire up my sparc64 to have =
the
>> same arch as spoonbill for comparison... =A0configure flags differ too...
>> i'll let you know when i found out more.
>>
>
> Found it: spillboon has --with-gssapi in configure flags which pulls the
> missing pieces in. =A0We don't build with GSSAPI enabled though, hence the
> patch.

That just raises the same question though. Why are we having to
explicitly list the dependencies on an ELF platform? Why are your
libraries missing the "NEEDED" entries that should make this just work
automatically?

And incidentally this explanation implies that the patch doesn't need
-lssl since there's no -lssl in the gss configure line either. It
looks like -lcrypto was all that was needed here. Which makes sense
since otherwise the krb5 test would also be broken.

Finally do you happen to know which other BSD flavours use the same
linker option to strip unused symbols? I assume OpenBSD didn't write
their own linker and suspect you're using the same one as any other
variant that hasn't switched to GNU ld or some other toolchain.

--=20
Gregory Stark
http://mit.edu/~gsstark/resume.pdf

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

Предыдущее
От: tushar
Дата:
Сообщение: Re: to_timestamp error handling.
Следующее
От: "suylivar"
Дата:
Сообщение: PostgreSQL installation