From nobody Wed Mar 08 04:41:03 2023 X-Original-To: bugs@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 4PWflN24l7z3x62y for ; Wed, 8 Mar 2023 04:41:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PWflN0M2Gz3Ghs for ; Wed, 8 Mar 2023 04:41:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678250464; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7R36h3mcS+hxBnaWLhJfAnmWcg2waX0K52AINFboTE0=; b=XQt8YvwZjWe/s9WC2b+dXV+gmfwLMa2auXWkJyW9MsOyM7VCg3juYEcFaQZbxNIpSpBITi QfKVbM7ggGPHnXP9E5C8SKWOZir8Yp0xD+AZgJ//oo+ZJSlU0INdHjGHzPu5BsuIJgee24 eaNlV37lVntFoSPODptvzWRrzNAWS/nOgEXv6hP8LFNEBxdwJipxGcvhobLfyK5UcwCsTG DgF/nBiukiZokA+kcZuzODHv+orTibCcFcxgWM2QfgGRgsUzI9zJ7k07d0ImkKiyL3/UyH fB4nOh1FHcFJhauhJ3gJA72UwVoGTkGrOiSoJmx006shTgwPoi58GJDeohUpHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678250464; a=rsa-sha256; cv=none; b=nCEYugVp3BU9edyh4lpje89hCGO5v3yRIeusJQh4Dv9vYTI9sNEOGQ8iCpel/XBevCwNRk hVPhQ6dMvBO8o6n8P3p19ap8EsRsJ10SZNfWGBlK1E7aZa7FZtSI7a4tKcrjebHIdl0CAh mkV4Fe6huTrTJ/sX2zlgf450Pxn0IMpWDOY5F2JInBOiKhpkjp2FVoqbVHb9OhKM5EZbw4 PEB3lyqxbQlaFop4yxegFJs5ySoH0WkGF2JQk26K8yPiNHWJxcMwEwA42qePLsY7XRunvY TSufI/QLmaUC1ku4BESwzW2dupoj8AlAR6mTYzms1/C98yztYOdbNiXYTaT+aQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PWflM6XnQz1BHW for ; Wed, 8 Mar 2023 04:41:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3284f3wf058876 for ; Wed, 8 Mar 2023 04:41:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3284f3MU058875 for bugs@FreeBSD.org; Wed, 8 Mar 2023 04:41:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270023] usr.bin/pkg doesn't compile with OpenSSL 3 Date: Wed, 08 Mar 2023 04:41:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ngie@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270023 Bug ID: 270023 Summary: usr.bin/pkg doesn't compile with OpenSSL 3 Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: ngie@FreeBSD.org Compiling usr.bin/pkg with OpenSSL 3 results in a host of -Wdeprecated-declaration errors. This doesn't seem to happen with newer versions of pkg from ports -- I'm guessing that there are some changes that need to be synced from the GH repo. Here are some example failures: ``` /usr/local/include/openssl/sha.h:76:1: note: 'SHA256_Final' has been explic= itly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ /usr/src/usr.sbin/pkg/pkg.c:456:2: error: 'SHA256_Init' is deprecated [-Werror,-Wdeprecated-declarations] SHA256_Init(&sha256); ^ /usr/local/include/openssl/sha.h:73:1: note: 'SHA256_Init' has been explici= tly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ /usr/src/usr.sbin/pkg/pkg.c:459:3: error: 'SHA256_Update' is deprecated [-Werror,-Wdeprecated-declarations] SHA256_Update(&sha256, buffer, r); ^ /usr/local/include/openssl/sha.h:74:1: note: 'SHA256_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ /usr/src/usr.sbin/pkg/pkg.c:466:2: error: 'SHA256_Final' is deprecated [-Werror,-Wdeprecated-declarations] SHA256_Final(hash, &sha256); ^ /usr/local/include/openssl/sha.h:76:1: note: 'SHA256_Final' has been explic= itly marked deprecated here OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0' # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0) ^ /usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED' # define OSSL_DEPRECATED(since) __attribute__((deprecated)) ^ 6 errors generated. *** Error code 1 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=