Awesome, thanks! בתאריך יום ב׳, 18 ביולי 2022, 11:03, מאת Francesco Chemolli < gkin...@gmail.com>:
> OpenSSL 3.0 support has landed in trunk yesterday. Hopefully there will be > a point release with it any day now > > On Mon, Jul 18, 2022 at 9:52 AM <ngtech1...@gmail.com> wrote: > >> Hey Everybody, >> >> >> >> I have just started my build tests on Ubuntu 22.04 and I got some >> errors, something with OpenSSL 3.0. >> >> I have seen that there has been a patch for 5.5 in Debian at: >> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005650 >> >> >> >> >> >> but I have not see such a fix from the squid project. >> >> Is there any usable patch I can try to apply to build and fix it? >> >> >> >> The build errors: >> >> ### START >> >> ibtool: compile: g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/ >> squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\" >> -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\" -I/home/builder/squid-5.6 >> -I/home/builder/squid-5.6/include -I/home/builder/squid-5.6/lib >> -I/home/builder/squid-5.6/src -I../../include -isystem /usr/include/mit-krb5 >> -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments - >> Wshadow -Woverloaded-virtual -Werror -pipe -D_REENTRANT >> -I/usr/include/libxml2 >> -m64 -I/usr/include/p11-kit-1 -g -O2 -MT old_api.lo -MD -MP -MF .deps/ >> old_api.Tpo -c /home/builder/squid-5.6/src/mem/old_api.cc -fPIC -DPIC >> -o .libs/old_api.o >> >> In file included from /home/builder/squid-5.6/src/security/Session.h:14, >> >> from /home/builder/squid-5.6/src/security/forward.h:15, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /home/builder/squid-5.6/src/security/forward.h: In function 'void >> Security::DH_free_cpp(DH*)': >> >> /home/builder/squid-5.6/src/security/LockingPointer.h:34:21: error: >> 'void DH_free(DH*)' is deprecated: Since OpenSSL 3.0 [-Werror >> =deprecated-declarations] >> >> 34 | function(a); \ >> >> /home/builder/squid-5.6/src/security/forward.h:96:1: note: in expansion >> of macro 'CtoCpp1' >> >> 96 | CtoCpp1(DH_free, DH *); >> >> | ^~~~~~~ >> >> In file included from /home/builder/squid-5.6/compat/openssl.h:35, >> >> from /home/builder/squid-5.6/src/security/Context.h:15, >> >> from /home/builder/squid-5.6/src/security/forward.h:14, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /usr/include/openssl/dh.h:200:28: note: declared here >> >> 200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); >> >> | ^~~~~~~ >> >> In file included from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /home/builder/squid-5.6/src/security/forward.h: At global scope: >> >> /home/builder/squid-5.6/src/security/forward.h:97:70: error: 'int >> DH_up_ref(DH*)' is deprecated: Since OpenSSL 3.0 [-Werror >> =deprecated-declarations] >> >> 97 | typedef Security::LockingPointer<DH, DH_free_cpp, HardFun<int, >> DH *, DH_up_ref> > DhePointer; >> >> | >> ^~~~~~~~~ >> >> In file included from /home/builder/squid-5.6/compat/openssl.h:35, >> >> from /home/builder/squid-5.6/src/security/Context.h:15, >> >> from /home/builder/squid-5.6/src/security/forward.h:14, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /usr/include/openssl/dh.h:201:27: note: declared here >> >> 201 | OSSL_DEPRECATEDIN_3_0 int DH_up_ref(DH *dh); >> >> | ^~~~~~~~~ >> >> In file included from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /home/builder/squid-5.6/src/security/forward.h:97:79: error: 'int >> DH_up_ref(DH*)' is deprecated: Since OpenSSL 3.0 [-Werror >> =deprecated-declarations] >> >> 97 | typedef Security::LockingPointer<DH, DH_free_cpp, HardFun<int, >> DH *, DH_up_ref> > DhePointer; >> >> | >> ^ >> >> In file included from /home/builder/squid-5.6/compat/openssl.h:35, >> >> from /home/builder/squid-5.6/src/security/Context.h:15, >> >> from /home/builder/squid-5.6/src/security/forward.h:14, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /usr/include/openssl/dh.h:201:27: note: declared here >> >> 201 | OSSL_DEPRECATEDIN_3_0 int DH_up_ref(DH *dh); >> >> | ^~~~~~~~~ >> >> In file included from /home/builder/squid-5.6/src/ssl/support.h:21, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:29, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /home/builder/squid-5.6/src/ssl/gadgets.h:61:51: error: 'void RSA_free(RSA*)' >> is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] >> >> 61 | typedef std::unique_ptr<RSA, HardFun<void, RSA*, &RSA_free>> >> RSA_Pointer; >> >> | ^~~~~~~~ >> >> In file included from /usr/include/openssl/x509.h:36, >> >> from /usr/include/openssl/ssl.h:31, >> >> from /home/builder/squid-5.6/compat/openssl.h:44, >> >> from /home/builder/squid-5.6/src/security/Context.h:15, >> >> from /home/builder/squid-5.6/src/security/forward.h:14, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /usr/include/openssl/rsa.h:293:28: note: declared here >> >> 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); >> >> | ^~~~~~~~ >> >> In file included from /home/builder/squid-5.6/src/ssl/support.h:21, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:29, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /home/builder/squid-5.6/src/ssl/gadgets.h:61:51: error: 'void RSA_free(RSA*)' >> is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] >> >> 61 | typedef std::unique_ptr<RSA, HardFun<void, RSA*, &RSA_free>> >> RSA_Pointer; >> >> | ^~~~~~~~ >> >> In file included from /usr/include/openssl/x509.h:36, >> >> from /usr/include/openssl/ssl.h:31, >> >> from /home/builder/squid-5.6/compat/openssl.h:44, >> >> from /home/builder/squid-5.6/src/security/Context.h:15, >> >> from /home/builder/squid-5.6/src/security/forward.h:14, >> >> from /home/builder/squid-5.6/src/SquidConfig.h:26, >> >> from /home/builder/squid-5.6/src/mem/old_api.cc:24: >> >> /usr/include/openssl/rsa.h:293:28: note: declared here >> >> 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); >> >> | ^~~~~~~~ >> >> cc1plus: all warnings being treated as errors >> >> make[3]: *** [Makefile:842: old_api.lo] Error 1 >> >> make[3]: Leaving directory '/home/builder/confdir/src/mem' >> >> make[2]: *** [Makefile:6868: all-recursive] Error 1 >> >> make[2]: Leaving directory '/home/builder/confdir/src' >> >> make[1]: *** [Makefile:5857: all] Error 2 >> >> make[1]: Leaving directory '/home/builder/confdir/src' >> >> make: *** [Makefile:594: all-recursive] Error 1 >> >> make: *** [Makefile:171: build] Error 2 >> >> ### END >> >> >> >> >> >> Thanks, >> >> Eliezer >> >> >> >> ---- >> >> Eliezer Croitoru >> >> NgTech, Tech Support >> >> Mobile: +972-5-28704261 >> >> Email: ngtech1...@gmail.com >> >> Web: https://ngtech.co.il/ >> >> My-Tube: https://tube.ngtech.co.il/ >> >> >> _______________________________________________ >> squid-dev mailing list >> squid-dev@lists.squid-cache.org >> http://lists.squid-cache.org/listinfo/squid-dev >> > > > -- > Francesco >
_______________________________________________ squid-dev mailing list squid-dev@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-dev