makefilecompiler-errorsopensslsquid

make fails to build squid with openssl (deprecated functions used)


I'm trying to build squid with openssl, but fail because make threats warnings as errors

An example: gadgets.h -> error 'void RSA_free(RSA*)' is deprecated; Since **Openssl 3.0.0** -Werror=deprecated-declarations ..

I assume that -Werror=deprecated-declarations instructs make to threat these warnings as errors. But in which file is -Werror=deprecated-declarations? How can I suppress this / avoid it?

I need squid with openssl.


Solution

  • I can compile the latest version by openssl 3. It should be fixed

    check https://github.com/squid-cache/squid/commit/3db8afad158dcdaa9390d8b998239e5763ae2cf4

    # squid -v
    Squid Cache: Version 5.7-VCS
    Service Name: squid

    This binary uses OpenSSL 3.0.2 15 Mar 2022.

    Ha Ha!