From: Tom Lane <tgl@sss.pgh.pa.us>
To: baych igor <igorbaych@hotmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: compiling error on OpenWrt
Date: Tue, 05 Jan 2021 10:49:33 -0500
Message-ID: <3379635.1609861773@sss.pgh.pa.us> (raw)
In-Reply-To: <AM0PR05MB41141A814EE2BB95DCEF4FB0ADD10@AM0PR05MB4114.eurprd05.prod.outlook.com>
References: <AM0PR05MB41141A814EE2BB95DCEF4FB0ADD10@AM0PR05MB4114.eurprd05.prod.outlook.com>
baych igor <igorbaych@hotmail.com> writes:
> I've tried to compile libpq (PostgreSQL client library) and pgsql-cli (Command Line Interface for PostgreSQL databases) with OpenSSL support.
> I've changed Makefile(feeds/packeges/libs/postgresql/Makefile) :
> HOST_CONFIGURE_ARGS += \ ... --with-openssl="yes" \ ...
> CONFIGURE_ARGS += \ ... --with-openssl="yes" \ ...
> but got error:
> checking for CRYPTO_new_ex_data in -lcrypto... no
> configure: error: library 'crypto' is required for OpenSSL
I don't know anything about OpenWrt, but if it's structured like
common Linux distros, the files needed to build a library-using
program are distributed separately from the library itself.
So in addition to the "openssl" package, you need to install
"openssl-devel" (Red Hat naming convention) or "openssl-dev"
(Debian naming convention) or something like that to get past
this problem.
Further down in configure, you'll likely find that you're also
missong readline-devel, zlib-devel, and maybe other dev packages.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, igorbaych@hotmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: compiling error on OpenWrt
In-Reply-To: <3379635.1609861773@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox