Date: Wed, 08 Mar 2023 04:41:03 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270023] usr.bin/pkg doesn't compile with OpenSSL 3 Message-ID: <bug-270023-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270023-227>