Re: how to compile postgresql with other version of openssl? - Mailing list pgsql-general

From krzf83@gmail.com
Subject Re: how to compile postgresql with other version of openssl?
Date
Msg-id CAJ1PRSn7=dCQtOgaGo+HA2Uorz8p6rm=gobGCaz3hg6hiVqpsw@mail.gmail.com
Whole thread Raw
In response to Re: how to compile postgresql with other version of openssl?  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: how to compile postgresql with other version of openssl?  (Michael Paquier <michael.paquier@gmail.com>)
Re: how to compile postgresql with other version of openssl?  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
# ./configure CFLAGS="-I/usr/openssl-0.9.8zg/include"
LDFLAGS="-L/usr/openssl-0.9.8zg/lib"     --with-openssl

configure: error:
Could not execute a simple test program.  This may be a problem
related to locating shared libraries.  Check the file 'config.log'
for the exact reason.

# tail config.log
...
#define HAVE_GETHOSTBYNAME_R 1
#define GETPWUID_R_5ARG 1

configure: exit 1

It does compile without a problem when used without CFLAGS and LDFLAGS
but against system lib /lib64/libssl.so.6

# LDFLAGS="-L/usr/openssl-0.9.8zg/lib" ./configure --with-openssl
checking test program... failed
configure: error:
Could not execute a simple test program.  This may be a problem
related to locating shared libraries.  Check the file 'config.log'
for the exact reason.
# tail config.log
...
#define HAVE_GETHOSTBYNAME_R 1
#define GETPWUID_R_5ARG 1

configure: exit 1


setting LDFLAGS to openssl lib dir causes postgresql ./configure to
fail without real explanation. A bug?

2015-07-26 9:06 GMT+02:00 Michael Paquier <michael.paquier@gmail.com>:
> On Sun, Jul 26, 2015 at 2:55 PM, krzf83@gmail.com <krzf83@gmail.com> wrote:
>> Postgresql is first linux program based on automake I've ever seen
>> (and i've been compiling linux stuff nice 1999) that does not allow
>> specyfying lib locations on ./configure like
>> (like --with-openssl=/path/to/openssl)
>
> You could use CFLAGS and LDFLAGS for this purpose:
> ./configure CFLAGS="-I/usr/openssl-0.9.8zg/include" \
>     LDFLAGS="-L/usr/openssl-0.9.8zg/lib" \
>     --with-openssl
> --
> Michael


pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: how to compile postgresql with other version of openssl?
Next
From: Michael Paquier
Date:
Subject: Re: how to compile postgresql with other version of openssl?