Re: BUG #2600: dblink compile with SSL missing libraries

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2600: dblink compile with SSL missing libraries
Date: 2006-08-30 20:57:00
Message-ID: 60hczuymar.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers pgsql-patches

mail(at)joeconway(dot)com (Joe Conway) writes:
> Christopher Browne wrote:
>> The following bug has been logged online:
>
>> If I try to build dblink when PG is configured "--with-openssl", the
>> build
>> of the contrib module dblink breaks as follows:
>
>> If I add, to the GCC command line, requests for libssl and libcrypto...
>> -lssl -lcrypto
>> e.g. - command line:
>> pgdba(at)ydb1(dot)int(dot)libertyrms(dot)com:/opt/rg/data_dba/build-farm/HEAD/pgsql.741430/
>> contrib/dblink $ /opt/prod/gcc-4.1.1/bin/gcc -O2 -Wall -Wmissing-prototypes
>> -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
>> -fno-strict-aliasing -g -Wl,-bmaxdata:0x80000000 -Wl,-bnoentry -Wl,-H512
>> -Wl,-bM:SRE -o libdblink.so libdblink.a -Wl,-bE:libdblink.exp
>> -L../../src/interfaces/libpq -L../../src/port -L/opt/freeware/lib -lpq
>> -lpthread -lpthreads -lssl -lcrypto -Wl,-bI:../../src/backend/postgres.imp
>> This builds fine without further complaint.
>
> Interesting. I build using "--with-openssl" all the time and have
> never had a problem. Can anyone comment on the appropriate Makefile
> changes for this?

I do notice that on Linux, the command line doesn't include requests
for either library.

I also seem to recall, in past discussions about "library matters,"
that AIX is more sticky about requiring that libraries be named
expressly. Maybe we add something like...

ifeq($(findstring aix, $(host_os)), aix)
LIBS += -lssl -lcrypt
endif

(Though that doesn't seem to do the trick...)
--
let name="cbbrowne" and tld="ntlug.org" in String.concat "@" [name;tld];;
http://www.ntlug.org/~cbbrowne/emacs.html
I'm sure glad we're having this "How many FTP transfers can dance on
the head of a chargeback packet" conversation now, because when
chargebacks happen, it will surely be too expensive to read these
amazing conversations.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message archana 2006-08-31 04:41:39 BUG #2601: postgres not running
Previous Message Stefan Kaltenbrunner 2006-08-30 20:17:30 Re: BUG #2600: dblink compile with SSL missing libraries

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2006-08-30 22:05:24 Re: Coding style for emacs
Previous Message Stefan Kaltenbrunner 2006-08-30 20:17:30 Re: BUG #2600: dblink compile with SSL missing libraries

Browse pgsql-patches by date

  From Date Subject
Next Message David Fetter 2006-08-30 22:05:24 Re: Coding style for emacs
Previous Message Stefan Kaltenbrunner 2006-08-30 20:17:30 Re: BUG #2600: dblink compile with SSL missing libraries