Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAymY-0008PK-Nb for pgsql-general@arkaria.postgresql.org; Fri, 12 Oct 2018 14:51:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAymU-0000zn-A7 for pgsql-general@arkaria.postgresql.org; Fri, 12 Oct 2018 14:51:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAymS-0000za-E9 for pgsql-general@lists.postgresql.org; Fri, 12 Oct 2018 14:51:10 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAymM-0004kn-JH for pgsql-general@postgresql.org; Fri, 12 Oct 2018 14:51:07 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8CA6B220DB; Fri, 12 Oct 2018 10:51:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 12 Oct 2018 10:51:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=v RWv2bdfSZNuRAeGUNdwzwKxBd4FatszisxOEnmmcgo=; b=2TyiE1SAIuXnDguyJ CIFbKwLdMiF1s5sHlQY4xOlVNNuBZemC4L3JSxsVLp8tSJpaK5P/KuyGDrHBFp8n J8uA+C/2lMPsqQJ1bEt1u8fZhQu7fwu6k3UwLIQCVeIG6GfR6oBJDNUsMXf5auXr Eh08D/6qBsIlt1dY780Gf4eNi89ZNW025UiCASF/3LMcN57sEg8N1Ap1NV8E5ryt 1wXqzeIPqvHExH6uZXGpAshG5ogQR2J3pOwxPW3EWloN0FWaWq804eCgbe50hQtB kvpvOTp0ZIcKJqlHxK8ArSQ+jL0zdEKguv4MsIDuXxUyZ+EpFmmt5xnlyviCcwT+ SCP9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=vRWv2bdfSZNuRAeGUNdwzwKxBd4FatszisxOEnmmc go=; b=cymEcvkAdJKs7aCLmcQAVTox2hCJjBDlhEffPgOLvJqCrJTUpJL0XC5wI 9qvJT2ZxtAv7MH/NOpugH9W5HhHmwmzex0crCRRamr/U76Pw3ce62V8VILzydp00 ij/XRbjYmcrOFxyBnDu+ogeZV2tMVXnpS6cDhTNtJ0vKQHhTki2JF+WHTPovWhNh 4eO5z6J8i565h9q3C9JOJaRv2WlUXT7blGaIzn//oEelvmRqA8nvXGZLn48njbYl yp5Sk6b324bOSz8FrJb5tIC3Q8EPsn+LRSY5vZGwNkU+SbKaQhM8M+g777ODa5fX HVLkFmko8yEy+WA1sDvslM/5TZ4+A== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 8DFD8E4428; Fri, 12 Oct 2018 10:51:00 -0400 (EDT) Subject: Re: Compile psql 9.6 with SSL Version 1.1.0 To: =?UTF-8?B?w4Fkw6FtIE1hcmFjc2th?= , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <2a4e33e2-1a88-3f6e-3e40-ea0537ae5fed@aklaver.com> Date: Fri, 12 Oct 2018 07:50:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/12/18 7:15 AM, Ádám Maracska wrote: > Hi, > > Currently I am trying to compile my pqlib with SSL version 1.1.0, but I > get the following errors: > / > / > /fe-secure-openssl.c(1582): error C2037: left of 'ptr' specifies > undefined struct/union 'bio_st'/ > /fe-secure-openssl.c(1582): error C2198: 'pqsecure_raw_read': too few > arguments for call/ > /fe-secure-openssl.c(1612): error C2037: left of 'ptr' specifies > undefined struct/union 'bio_st'/ > /fe-secure-openssl.c(1612): error C2198: 'pqsecure_raw_write': too few > arguments for call/ > /fe-secure-openssl.c(1670): error C2027: use of undefined type > 'bio_method_st'/ > /fe-secure-openssl.c(1673): error C2027: use of undefined type > 'bio_method_st'/ > /fe-secure-openssl.c(1674): error C2037: left of 'bread' specifies > undefined struct/union 'bio_method_st'/ > /fe-secure-openssl.c(1675): error C2037: left of 'bwrite' specifies > undefined struct/union 'bio_method_st'/ > /fe-secure-openssl.c(1701): error C2037: left of 'ptr' specifies > undefined struct/union 'bio_st'/ > > As I was checking the issue on google I found the following two message > thread about it: > > - From 2016: Based on this the ssl version 1.1 is supported, but the > message thread had not so promising end: > https://www.postgresql.org/message-id/flat/E1bkVG3-0000L8-Ln%40gemulon.postgresql.org > - From 2018: It had even more worse end. The questioner went back to > 1.0.2 ssl version, which is not an option for me, because that version > will not be supported shortly by openssl itself. > https://www.postgresql.org/message-id/CAAw-Mseg9JYpp%3DA%3D51HR3rKiQtbvT0MWw%2BaYFwNeJEbdNr%3DCDA%40mail.gmail.com > > Also I checked the source files and I saw these kind of comments: > / They are also not needed with OpenSSL 1.1.0 anymore. > (fe-secure-openssl.c)/ > / > / > I suppose it is possible to compile the pqlib with ssl 1.1, but I can > not wrap my head around it. Maybe I should set some ifdefs for the > precompiler beforehand? > > I appreciate any help. What OS and version of same are you compiling in? Do you have the SSL dev libraries installed? > > Best Regards, > Adam -- Adrian Klaver adrian.klaver@aklaver.com