Skip site navigation (1) Skip section navigation (2)

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

From: Joe Conway <mail(at)joeconway(dot)com>
To: Christopher Browne <cbbrowne(at)ca(dot)afilias(dot)info>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2600: dblink compile with SSL missing libraries
Date: 2006-08-30 19:50:27
Message-ID: 44F5EC03.5050107@joeconway.com (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackerspgsql-patches
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?

Thanks,

Joe

In response to

Responses

pgsql-hackers by date

Next:From: Bruno Wolff IIIDate: 2006-08-30 19:55:51
Subject: Re: Status on Fedora Core Extras packaging
Previous:From: Bruce MomjianDate: 2006-08-30 19:35:44
Subject: Re: pgcrypto deprecated functions?

pgsql-bugs by date

Next:From: Stefan KaltenbrunnerDate: 2006-08-30 20:17:30
Subject: Re: BUG #2600: dblink compile with SSL missing libraries
Previous:From: Bruno Wolff IIIDate: 2006-08-30 19:40:40
Subject: Re: Partially corrupted table

pgsql-patches by date

Next:From: Stefan KaltenbrunnerDate: 2006-08-30 20:17:30
Subject: Re: BUG #2600: dblink compile with SSL missing libraries
Previous:From: Bruce MomjianDate: 2006-08-30 18:21:18
Subject: Re: [HACKERS] [PATCHES] log_statement output for protocol

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group