Re: compiling error on OpenWrt

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: baych igor <igorbaych(at)hotmail(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: compiling error on OpenWrt
Date: 2021-01-05 15:49:33
Message-ID: 3379635.1609861773@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

baych igor <igorbaych(at)hotmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2021-01-05 18:00:02 BUG #16807: Assert failed in postgres_fdw/estimate_path_cost_size with an empty foreign table
Previous Message Tom Lane 2021-01-05 15:45:02 Re: BUG #16805: "ALTER TABLE ... ADD COLUMN IF NOT EXISTS ... PRIMARY KEY" fails if column exists and is the primary