Unix Technical Forum

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

This is a discussion on Re: [PATCHES] BUG #2600: dblink compile with SSL missing libraries within the pgsql Hackers forums, part of the PostgreSQL category; --> Chris Browne wrote: >>> I also seem to recall, in past discussions about "library matters," >>> that AIX is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 05:28 AM
Albe Laurenz
 
Posts: n/a
Default Re: [PATCHES] BUG #2600: dblink compile with SSL missing libraries

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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:33 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com