Hi,
  Centos-6 has been EOLed years ago. Any chance for you to test on a
more modern version of the OS?
Also, could you share the configure flags you used?

On Thu, Sep 11, 2025 at 10:07 AM alex ' <moizaku...@gmail.com> wrote:
>
> Good afternoon! To build version 7.1, the gcc compiler version 9.1.1
> is used. The compiler returned an error during the build process:
>
> gadgets.cc: In function 'std::optional<SBuf> ParseAsUtf8(const ASN1_STRING&)':
> gadgets.cc:483:67: error: invalid conversion from 'const ASN1_STRING*'
> {aka 'const asn1_string_st*'} to 'ASN1_STRING*' {aka
> 'asn1_string_st*'} [-fpermissive]
>   483 |     const auto conversionResult =
> ASN1_STRING_to_UTF8(&utfBuffer, &asnBuffer);
>       |
>    ^~~~~~~~~~
>       |                                                                   |
>       |
>    const ASN1_STRING* {aka const asn1_string_st*}
> In file included from ../../compat/openssl.h:29,
>                  from ../../src/security/LockingPointer.h:18,
>                  from ../../src/security/forward.h:15,
>                  from ../../src/security/ErrorDetail.h:15,
>                  from ../../src/security/Io.h:13,
>                  from gadgets.cc:15:
> /usr/include/openssl/asn1.h:1000:59: note:   initializing argument 2
> of 'int ASN1_STRING_to_UTF8(unsigned char**, ASN1_STRING*)'
>  1000 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in);
>       |                                              ~~~~~~~~~~~~~^~
> gadgets.cc: In function 'bool 
> addAltNameWithSubjectCn(Security::CertPointer&)':
> gadgets.cc:551:95: error: invalid conversion from 'const char*' to
> 'char*' [-fpermissive]
>   551 |     const auto ext = X509V3_EXT_conf_nid(nullptr, nullptr,
> NID_subject_alt_name, altName.c_str());
>       |
>                   ~~~~~~~~~~~~~^~
>       |
>                                |
>       |
>                                const char*
> In file included from ../../src/ssl/gadgets.h:34,
>                  from ../../src/AccessLogEntry.h:31,
>                  from ../../src/auth/UserRequest.h:14,
>                  from ../../src/HttpRequest.h:24,
>                  from ../../src/ssl/ErrorDetailManager.h:13,
>                  from ../../src/security/ErrorDetail.h:19,
>                  from ../../src/security/Io.h:13,
>                  from gadgets.cc:15:
> /usr/include/openssl/x509v3.h:613:28: note:   initializing argument 4
> of 'X509_EXTENSION* X509V3_EXT_conf_nid(lhash_st_CONF_VALUE*,
> X509V3_CTX*, int, char*)'
>   613 |         int ext_nid, char *value);
>       |                      ~~~~~~^~~~~
>
> I build on CentOS 6.10 with and using the latest devtoolset-9 package
> _______________________________________________
> squid-users mailing list
> squid-users@lists.squid-cache.org
> https://lists.squid-cache.org/listinfo/squid-users



-- 
    Francesco
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users

Reply via email to