Public bug reported: Imported from Debian bug http://bugs.debian.org/1137475:
Package: asio Version: 1:1.30.2-1 Severity: normal Tags: sid control: affects -1 src:openssl User: [email protected] Usertags: openssl-4.0 OpenSSL 4.0 is in experimental. This package fails to build against it: | g++ -DPACKAGE_NAME=\"asio\" -DPACKAGE_TARNAME=\"asio\" -DPACKAGE_VERSION=\"1.30.2\" -DPACKAGE_STRING=\"asio\ 1.30.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"asio\" -DVERSION=\"1.30.2\" -D_REENTRANT=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -DASIO_STANDALONE -I./../../../include -g -O2 -ffile-prefix-map=/build/reproducible-path/asio-1.30.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -ftemplate-depth-256 -c -o ssl/client.o ssl/client.cpp | In file included from ./../../../include/asio/ssl/rfc2818_verification.hpp:93, | from ./../../../include/asio/ssl.hpp:21, | from ssl/client.cpp:16: | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp: In member function ‘bool asio::ssl::rfc2818_verification::operator()(bool, asio::ssl::verify_context&) const’: | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:65:17: error: invalid use of incomplete type ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 65 | if (domain->type == V_ASN1_IA5STRING && domain->data && domain->length) | | ^~ | In file included from /usr/include/openssl/crypto.h:38, | from /usr/include/openssl/bio.h:32, | from /usr/include/openssl/conf.h:26, | from ./../../../include/asio/ssl/detail/openssl_types.hpp:23, | from ./../../../include/asio/ssl/context_base.hpp:19, | from ./../../../include/asio/ssl/context.hpp:23, | from ./../../../include/asio/ssl.hpp:18: | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:65:53: error: invalid use of incomplete type ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 65 | if (domain->type == V_ASN1_IA5STRING && domain->data && domain->length) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:65:69: error: invalid use of incomplete type ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 65 | if (domain->type == V_ASN1_IA5STRING && domain->data && domain->length) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:67:67: error: invalid use of incomplete type ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 67 | const char* pattern = reinterpret_cast<const char*>(domain->data); | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:68:44: error: invalid use of incomplete type ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 68 | std::size_t pattern_length = domain->length; | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:79:21: error: invalid use of incomplete type ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 79 | if (ip_address->type == V_ASN1_OCTET_STRING && ip_address->data) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:79:64: error: invalid use of incomplete type ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 79 | if (ip_address->type == V_ASN1_OCTET_STRING && ip_address->data) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:81:42: error: invalid use of incomplete type ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 81 | if (address.is_v4() && ip_address->length == 4) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:84:46: error: invalid use of incomplete type ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 84 | if (memcmp(bytes.data(), ip_address->data, 4) == 0) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:90:47: error: invalid use of incomplete type ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 90 | else if (address.is_v6() && ip_address->length == 16) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:93:46: error: invalid use of incomplete type ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 93 | if (memcmp(bytes.data(), ip_address->data, 16) == 0) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_OCTET_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:106:42: error: invalid conversion from ‘const X509_NAME*’ {aka ‘const X509_name_st*’} to ‘X509_NAME*’ {aka ‘X509_name_st*’} [-fpermissive] | 106 | X509_NAME* name = X509_get_subject_name(cert); | | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ | | | | | const X509_NAME* {aka const X509_name_st*} | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:111:54: error: invalid conversion from ‘const X509_NAME_ENTRY*’ {aka ‘const X509_name_entry_st*’} to ‘X509_NAME_ENTRY*’ {aka ‘X509_name_entry_st*’} [-fpermissive] | 111 | X509_NAME_ENTRY* name_entry = X509_NAME_get_entry(name, i); | | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ | | | | | const X509_NAME_ENTRY* {aka const X509_name_entry_st*} | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:112:43: error: invalid conversion from ‘const ASN1_STRING*’ {aka ‘const asn1_string_st*’} to ‘ASN1_STRING*’ {aka ‘asn1_string_st*’} [-fpermissive] | 112 | common_name = X509_NAME_ENTRY_get_data(name_entry); | | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | | | const ASN1_STRING* {aka const asn1_string_st*} | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:114:33: error: invalid use of incomplete type ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 114 | if (common_name && common_name->data && common_name->length) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:114:54: error: invalid use of incomplete type ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 114 | if (common_name && common_name->data && common_name->length) | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:116:68: error: invalid use of incomplete type ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 116 | const char* pattern = reinterpret_cast<const char*>(common_name->data); | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | ./../../../include/asio/ssl/impl/rfc2818_verification.ipp:117:45: error: invalid use of incomplete type ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 117 | std::size_t pattern_length = common_name->length; | | ^~ | /usr/include/openssl/types.h:57:16: note: forward declaration of ‘ASN1_STRING’ {aka ‘struct asn1_string_st’} | 57 | typedef struct asn1_string_st ASN1_INTEGER; | | ^~~~~~~~~~~~~~ | make[3]: *** [Makefile:2439: ssl/client.o] Error 1 Full buildlog https://breakpoint.cc/openssl-rebuild/logs-4/attempted/asio_1.30.2-1_amd64-2026-04-19T12:21:47Z Sebastian ** Affects: asio (Ubuntu) Importance: Undecided Status: New ** Affects: asio (Debian) Importance: Undecided Status: New ** Tags: ftbfs openssl-4.0 ** Bug watch added: Debian Bug tracker #1137475 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137475 ** Changed in: asio (Debian) Remote watch: None => Debian Bug tracker #1137475 ** Tags added: ftbfs openssl-4.0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2154829 Title: asio: FTBFS with openssl 4.0 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/asio/+bug/2154829/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
