Обсуждение: compiling error on OpenWrt

Поиск
Список
Период
Сортировка

compiling error on OpenWrt

От
baych igor
Дата:

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?


Re: compiling error on OpenWrt

От
Michael Paquier
Дата:
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

Вложения