pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedcompiling error on OpenWrt
4+ messages / 3 participants
[nested] [flat]
* compiling error on OpenWrt
@ 2021-01-05 14:06 baych igor <igorbaych@hotmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: baych igor @ 2021-01-05 14:06 UTC (permalink / raw)
To: pgsql-bugs
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
Maybe someone can help me to build a PostgreSQL package with OpenSSL support on OpenWrt?
^ permalink raw reply [nested|flat] 4+ messages in thread
* compiling error on OpenWrt
@ 2021-01-05 14:13 baych igor <igorbaych@hotmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: baych igor @ 2021-01-05 14:13 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Hello,
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
Maybe someone can help me to build a PostgreSQL package with OpenSSL support on OpenWrt?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: compiling error on OpenWrt
@ 2021-01-05 15:49 Tom Lane <tgl@sss.pgh.pa.us>
parent: baych igor <igorbaych@hotmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2021-01-05 15:49 UTC (permalink / raw)
To: baych igor <igorbaych@hotmail.com>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: compiling error on OpenWrt
@ 2021-01-06 02:02 Michael Paquier <michael@paquier.xyz>
parent: baych igor <igorbaych@hotmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Michael Paquier @ 2021-01-06 02:02 UTC (permalink / raw)
To: baych igor <igorbaych@hotmail.com>; +Cc: pgsql-bugs
On Tue, Jan 05, 2021 at 02:06:18PM +0000, baych igor wrote:
> but got error:
>
> checking for CRYPTO_new_ex_data in -lcrypto... no
> configure: error: library 'crypto' is required for OpenSSL
>
> Maybe someone can help me to build a PostgreSQL package with OpenSSL
> support on OpenWrt?
FWIW, it is the first time I am seeing OpenWrt mentioned on the
community lists. CRYPTO_new_ex_data() is only used in the upstream
code at configure time when looking for libcrypto or libeay32, to I
suspect that something is off with LDFLAGS for the build of this
environment.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2021-01-06 02:02 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05 14:06 compiling error on OpenWrt baych igor <igorbaych@hotmail.com>
2021-01-06 02:02 ` Michael Paquier <michael@paquier.xyz>
2021-01-05 14:13 compiling error on OpenWrt baych igor <igorbaych@hotmail.com>
2021-01-05 15:49 ` Tom Lane <tgl@sss.pgh.pa.us>
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