[squid-users] squid5 build error

Alex Rousskov rousskov at measurement-factory.com
Wed Sep 27 15:14:19 UTC 2017


On 09/27/2017 07:57 AM, joseph wrote:
> latest debian and latest gcc in repo
> squid-5.0.0-20170919-r478fb99.tar.gz
> gcc version 6.3.0 20170516 (Debian 6.3.0-18) 

Looks like an OpenSSL compatibility problem to me. Amos has fixed a
similar one recently but evidently that fix is not enough:
https://github.com/squid-cache/squid/commit/70cfe22f6f44316ad516135af38fb7b130034bd6

What is your OpenSSL (or equivalent) version?

Alex.


> gadgets.cc: In function ‘const ASN1_BIT_STRING*
> Ssl::X509_get_signature(const CertPointer&)’:
> gadgets.cc:960:25: error: invalid conversion from ‘ASN1_BIT_STRING** {aka
> asn1_string_st**}’ to ‘const ASN1_BIT_STRING** {aka const
> asn1_string_st**}’ [-fpermissive]
>      X509_get0_signature(&sig, &sig_alg, cert.get());
>                          ^~~~
> In file included from /usr/include/openssl/ssl.h:50:0,
>                  from ../../src/security/Context.h:16,
>                  from ../../src/security/forward.h:13,
>                  from ../../src/ssl/gadgets.h:13,
>                  from gadgets.cc:10:
> /usr/include/openssl/x509.h:552:6: note:   initializing argument 1 of
> ‘void X509_get0_signature(const ASN1_BIT_STRING**, const X509_ALGOR**,
> const X509*)’
>  void X509_get0_signature(const ASN1_BIT_STRING **psig,
>       ^~~~~~~~~~~~~~~~~~~
> gadgets.cc:960:31: error: invalid conversion from ‘X509_ALGOR** {aka
> X509_algor_st**}’ to ‘const X509_ALGOR** {aka const X509_algor_st**}’
> [-fpermissive]
>      X509_get0_signature(&sig, &sig_alg, cert.get());
>                                ^~~~~~~~
> In file included from /usr/include/openssl/ssl.h:50:0,
>                  from ../../src/security/Context.h:16,
>                  from ../../src/security/forward.h:13,
>                  from ../../src/ssl/gadgets.h:13,
>                  from gadgets.cc:10:
> /usr/include/openssl/x509.h:552:6: note:   initializing argument 2 of
> ‘void X509_get0_signature(const ASN1_BIT_STRING**, const X509_ALGOR**,
> const X509*)’
>  void X509_get0_signature(const ASN1_BIT_STRING **psig,
>       ^~~~~~~~~~~~~~~~~~~


More information about the squid-users mailing list