Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwoaa-0007Le-3j for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Jan 2021 15:49:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kwoaZ-00040F-2C for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Jan 2021 15:49:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwoaY-000407-SL for pgsql-bugs@lists.postgresql.org; Tue, 05 Jan 2021 15:49:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kwoaW-0005kA-Oc for pgsql-bugs@lists.postgresql.org; Tue, 05 Jan 2021 15:49:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 105FnXXr3379636; Tue, 5 Jan 2021 10:49:33 -0500 From: Tom Lane To: baych igor cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: compiling error on OpenWrt In-reply-to: References: Comments: In-reply-to baych igor message dated "Tue, 05 Jan 2021 14:13:10 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3379634.1609861773.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 05 Jan 2021 10:49:33 -0500 Message-ID: <3379635.1609861773@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk baych igor writes: > I've tried to compile libpq (PostgreSQL client library) and pgsql-cli (C= ommand Line Interface for PostgreSQL databases) with OpenSSL support. > I've changed Makefile(feeds/packeges/libs/postgresql/Makefile) : > HOST_CONFIGURE_ARGS +=3D \ ... --with-openssl=3D"yes" \ ... > CONFIGURE_ARGS +=3D \ ... --with-openssl=3D"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