Re: [GENERAL] configure can't find libcrypto on MacOS Sierra for pg9.6.2 - Mailing list pgsql-general

From Adrian Klaver
Subject Re: [GENERAL] configure can't find libcrypto on MacOS Sierra for pg9.6.2
Date
Msg-id 737cef3b-210f-c824-969b-4765f02312b8@aklaver.com
Whole thread Raw
In response to [GENERAL] configure can't find libcrypto on MacOS Sierra for pg 9.6.2  (Jerry LeVan <jerry.levan@gmail.com>)
List pgsql-general
On 02/12/2017 06:56 AM, Jerry LeVan wrote:
> Hello, I am trying to build pg 9.6.2 on my MacOS Sierra but
> configure is being balky
>
> configure:9494: checking for CRYPTO_new_ex_data in -lcrypto
> configure:9519: gcc -o conftest -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels-Wmissing-for 
> mat-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2     conftest.c
-lcrypto -lz -ledi 
> t -lm  >&5
> ld: library not found for -lcrypto
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> configure:9519: $? = 1
>
> but libcrypto is present:
> eagle:Desktop postgres$ ls -al /usr/lib/libcrypto*
> -rwxr-xr-x  1 root  wheel  2043536 Dec 10 04:53 /usr/lib/libcrypto.0.9.7.dylib
> -rwxr-xr-x  1 root  wheel  2681408 Dec 10 04:53 /usr/lib/libcrypto.0.9.8.dylib
> -rw-r--r--  1 root  wheel  4209728 Dec 10 04:53 /usr/lib/libcrypto.35.dylib
> lrwxr-xr-x  1 root  wheel       21 Sep 24 13:20 /usr/lib/libcrypto.dylib -> libcrypto.0.9.8.dylib
>
> The config.log file for 9.3.2 passes the test.
>
> And for the 9.3.2 image:
> eagle:Desktop postgres$ otool -L /usr/local/bin/postgres
> /usr/local/bin/postgres:
>     /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0)
>     /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0)
>     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
> eagle:Desktop postgres$
>
> Any suggestions?

Not a suggestion, but a question:

What are the full command line invocations to configure for 9.3 and 9.6?

Now a suggestion, do you have the openssl devel package installed?

>
> Thanks
>
> Jerry
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Jerry LeVan
Date:
Subject: [GENERAL] configure can't find libcrypto on MacOS Sierra for pg 9.6.2
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] configure can't find libcrypto on MacOS Sierra for pg 9.6.2