From nobody Sat Mar 18 10:45:13 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PdyM14cSRz3yR8H; Sat, 18 Mar 2023 10:45:17 +0000 (UTC) (envelope-from matthias.andree@tu-dortmund.de) Received: from unimail.uni-dortmund.de (mx1.hrz.uni-dortmund.de [129.217.128.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "unimail.tu-dortmund.de", Issuer "GEANT OV RSA CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PdyM103Skz3wxL; Sat, 18 Mar 2023 10:45:16 +0000 (UTC) (envelope-from matthias.andree@tu-dortmund.de) Authentication-Results: mx1.freebsd.org; none Received: from mandree.no-ip.org (p54a03c23.dip0.t-ipconnect.de [84.160.60.35]) (authenticated bits=0) by unimail.uni-dortmund.de (8.17.1.26/8.17.1.26) with ESMTPSA id 32IAjDH1004552 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 18 Mar 2023 11:45:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tu-dortmund.de; s=unimail; t=1679136314; bh=E+kioPbbpZXA1TvDNG6NpgC9kuHNomEAdavjb+BJZSU=; h=Date:To:Cc:References:From:Subject:In-Reply-To; b=gis2I7CqWdwhLm7GrDpCLN60he4DCqQJNjDWXoybP49cwYDg+J0JFBWENl1uYEV7P CahDjoN41Gv9RsskxchlQYKTdz/QBeQrPRMDScSB5M5SWcX2blDZIQd3RTKQjOfJr3 3Xj5IwD+JdtOPz+2Xgin9/pZBmGXL8DglijPIp6U= Received: from [127.0.0.1] (localhost [127.0.0.1]) by ryzen.an3e.de (Postfix) with ESMTP id 7EF07D86617; Sat, 18 Mar 2023 11:45:13 +0100 (CET) Message-ID: <178fcb8c-ac72-9aed-2c07-e898bee3abce@tu-dortmund.de> Date: Sat, 18 Mar 2023 11:45:13 +0100 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: Adam Weinberger , Bernard Spil Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org References: <202303141825.32EIPEk8054602@gitrepo.freebsd.org> <01000186e2138789-48987302-71f1-466d-b9f0-09c3e7e8ca72-000000@email.amazonses.com> From: Matthias Andree Subject: Re: git: 98749c4fe066 - main - security/openssl-devel: Rename to security/openssl30 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PdyM103Skz3wxL X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:129.217.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Am 17.03.23 um 18:33 schrieb Adam Weinberger: > > Hi Bernard, > > I'm getting build failures for cmake-core with openssl30 and openssl31, > which prevents me from dogfooding much of the tree against 30/31. Are > you familiar with these errors? Do you have an idea for what I could do > about it? This is with default openssl options. > >   [ 38%] Linking C static library libcmcurl.a >   [ 38%] Built target cmcurl >   [ 38%] Building C object > Utilities/cmcurl/CMakeFiles/curltest.dir/curltest.c.o >   [ 39%] Linking C executable curltest >   ld: error: undefined symbol: EVP_PKEY_id >   >>> referenced by openssl.c >   >>>               openssl.c.o:(Curl_ossl_certchain) in archive > lib/libcmcurl.a >   >>> referenced by openssl.c >   >>>               openssl.c.o:(cert_stuff) in archive lib/libcmcurl.a >   ld: error: undefined symbol: SSL_get_peer_certificate >   >>> referenced by openssl.c >   >>>               openssl.c.o:(ossl_connect_common) in archive > lib/libcmcurl.a >   >>> referenced by openssl.c >   >>>               openssl.c.o:(ossl_connect_common) in archive > lib/libcmcurl.a >   cc: error: linker command failed with exit code 1 (use -v to see > invocation) >   --- Utilities/cmcurl/curltest --- >   *** [Utilities/cmcurl/curltest] Error code 1 > >   make[3]: stopped in /wrkdirs/usr/ports/devel/cmake-core/work/cmake-3.25.1 > > # Adam Adam, I have no clues about cmake/curl and newer OpenSSL in particular, but generally I have experienced that the OpenSSL header files to *A LOT* of compatibility aliasing through macros - so see if you can enable more warnings and check if the source files use proper #includes. There are also several macros (some to be application-defined before the #include) that determine symbol visibility, look for macros with OPENSSL_API* or OPENSSL_NO_DEPRECATED* in their names. The EVP_PKEY_id is #define-aliased to EVP_PKET_get_id in #include , and SSL_get_peer_certificate is an alias to SSL_get1_peer_certificate through #include . This may help: https://www.openssl.org/docs/man3.0/man7/migration_guide.html#Deprecated-function-mappings HTH until someone has time to dive deeply. Matthias