Re: how to compile postgresql with other version of openssl?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: "krzf83(at)gmail(dot)com " <krzf83(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to compile postgresql with other version of openssl?
Date: 2015-07-27 00:25:47
Message-ID: 55B57A8B.8050509@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/26/2015 04:34 PM, krzf83(at)gmail(dot)com wrote:
> # ./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?

Well if it where me I would do:

grep -i ssl config.log

instead of tail

>
> 2015-07-26 9:06 GMT+02:00 Michael Paquier <michael(dot)paquier(at)gmail(dot)com>:
>> On Sun, Jul 26, 2015 at 2:55 PM, krzf83(at)gmail(dot)com <krzf83(at)gmail(dot)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
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-07-27 00:29:23 Re: how to compile postgresql with other version of openssl?
Previous Message krzf83@gmail.com 2015-07-27 00:24:33 Re: how to compile postgresql with other version of openssl?