Re: [PATCHES] BUG #2600: dblink compile with SSL missing libraries

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: <pgsql-hackers(at)postgresql(dot)org>, "Chris Browne" <cbbrowne(at)acm(dot)org>, <"pgsql-bugs(at)postgresql(dot)orgpgsql-patches"(at)postgresql(dot)org>
Subject: Re: [PATCHES] BUG #2600: dblink compile with SSL missing libraries
Date: 2006-09-06 07:20:38
Message-ID: 52EF20B2E3209443BC37736D00C3C1380A380381@EXADV1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Chris Browne wrote:
>>> I also seem to recall, in past discussions about "library matters,"
>>> that AIX is more sticky about requiring that libraries be named
>>> expressly.
>>
>> ecpglib has
>>
>> SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
>> $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS))
>> $(PTHREAD_LIBS)
>>
>> ifeq ($(PORTNAME), win32)
>> # Link to shfolder.dll instead of shell32.dll
>> SHLIB_LINK += -lshfolder
>> endif
>>
>> Presumably the same would be necessary everywhere else libpq is used.
>
> I replaced:
> SHLIB_LINK = $(libpq)
>
> with
> SHLIB_LINK = $(libpq) $(LIBS)
>
> which allowed the compile to get through this.

Do you build static or dynamic?
What is the output of 'ldd psql'?

I am wondering because I had similar problems building on AIX (5.3)
before I told the linker to look for libpq.so BEFORE libpq.a
by giving it LDFLAGS="-Wl,-bdynamic,-brtl" (using gcc).

This is just a thought - triggered by your remark that 'AIX is more
sticky about requiring that libraries be named expressly'.
Because in a static build you'd have to specify all the libraries
whenever you link.

Yours,
Laurenz Albe

Browse pgsql-bugs by date

  From Date Subject
Next Message Victor Snezhko 2006-09-06 08:12:34 Re: BUG #1931: ILIKE and LIKE fails on Turkish locale
Previous Message Chris Browne 2006-09-05 21:58:06 Re: BUG #2600: dblink compile with SSL missing libraries

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2006-09-06 07:22:14 pgsql: Fix compiler warnings on 64-bit boxes: difference between
Previous Message Bernd Helmle 2006-09-06 06:13:20 Re: Open items for 8.2