Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIuxe-0007bz-GK for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Jul 2016 09:42:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIuxd-0007an-Dy for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Jul 2016 09:42:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIuxc-0007ag-Uc for pgsql-hackers@postgresql.org; Fri, 01 Jul 2016 09:42:08 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIuxV-0007Tv-Cm for pgsql-hackers@postgresql.org; Fri, 01 Jul 2016 09:42:08 +0000 Received: from msg.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3rgrzD18q1z3Dyn; Fri, 1 Jul 2016 11:42:00 +0200 (CEST) Date: Fri, 1 Jul 2016 11:41:59 +0200 From: Christoph Berg To: Andreas Karlsson Cc: Tom Lane , PostgreSQL Hackers Subject: Re: OpenSSL 1.1 breaks configure and more Message-ID: <20160701094159.GA17882@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Andreas Karlsson , Tom Lane , PostgreSQL Hackers References: <20160627151604.GD1051@msg.df7cb.de> <1805.1467041061@sss.pgh.pa.us> <8a0a5959-0b83-3dc8-d9e7-66ce8c1c5bc7@proxel.se> <688a438c-ccc2-0431-7100-26e418fc3bca@proxel.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <688a438c-ccc2-0431-7100-26e418fc3bca@proxel.se> User-Agent: Mutt/1.6.0 (2016-04-01) X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Re: Andreas Karlsson 2016-07-01 <688a438c-ccc2-0431-7100-26e418fc3bca@proxel.se> > Hi, > > Here is an initial set of patches related to OpenSSL 1.1. Everything should > still build fine on older OpenSSL versions (and did when I tested with > 1.0.2h). Hi Andreas, thanks for the patches. I applied all there patches on top of HEAD (10c0558f). The server builds and passes "make check", pgcrypto still needs work, though: ./configure --with-openssl make world gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fpic -I. -I. -I../../src/include -D_GNU_SOURCE -c -o openssl.o openssl.c openssl.c:205:13: error: field ‘ctx’ has incomplete type EVP_MD_CTX ctx; ^ openssl.c: In function ‘digest_free’: openssl.c:253:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’ [-Wimplicit-function-declaration] EVP_MD_CTX_cleanup(&digest->ctx); ^ openssl.c: In function ‘init_openssl_rand’: openssl.c:990:24: warning: implicit declaration of function ‘RAND_SSLeay’ [-Wimplicit-function-declaration] RAND_set_rand_method(RAND_SSLeay()); ^ openssl.c:990:24: warning: passing argument 1 of ‘RAND_set_rand_method’ makes pointer from integer without a cast [-Wint-conversion] In file included from openssl.c:40:0: /usr/include/openssl/rand.h:41:5: note: expected ‘const RAND_METHOD * {aka const struct rand_meth_st *}’ but argument is of type ‘int’ int RAND_set_rand_method(const RAND_METHOD *meth); ^ openssl.c: In function ‘px_get_pseudo_random_bytes’: openssl.c:1017:2: warning: ‘RAND_pseudo_bytes’ is deprecated [-Wdeprecated-declarations] res = RAND_pseudo_bytes(dst, count); ^ In file included from openssl.c:40:0: /usr/include/openssl/rand.h:51:5: note: declared here DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) ^ openssl.c: In function ‘digest_block_size’: openssl.c:222:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ openssl.c: In function ‘digest_result_size’: openssl.c:214:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ : die Regel für Ziel „openssl.o“ scheiterte make[2]: *** [openssl.o] Fehler 1 make[2]: Verzeichnis „/home/cbe/projects/postgresql/pg/master/contrib/pgcrypto“ wird verlassen ii libssl-dev:amd64 1.1.0~pre5-4 amd64 Secure Sockets Layer toolkit - development files ii libssl1.0.0:amd64 1.0.2d-1 amd64 Secure Sockets Layer toolkit - shared libraries ii libssl1.0.2:amd64 1.0.2h-1 amd64 Secure Sockets Layer toolkit - shared libraries ii libssl1.1:amd64 1.1.0~pre5-4 amd64 Secure Sockets Layer toolkit - shared libraries ii openssl 1.0.2h-1 amd64 Secure Sockets Layer toolkit - cryptographic utility Christoph -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers