[Pkg-openssl-devel] Bug#1138357: golang-github-mendersoftware-mender-artifact: FTBFS with openssl 4.0
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Sat May 30 16:59:52 BST 2026
Package: golang-github-mendersoftware-mender-artifact
Version: 3.9.0+ds1-2
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: pkg-openssl-devel at lists.alioth.debian.org
Usertags: openssl-4.0
OpenSSL 4.0 is in experimental. This package fails to build against it:
| # github.com/mendersoftware/openssl
| hostname.c: In function ‘do_check_string’:
| hostname.c:248:15: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 248 | if (!a->data || !a->length)
| | ^~
| hostname.c:248:27: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 248 | if (!a->data || !a->length)
| | ^~
| hostname.c:252:34: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 252 | if (cmp_type != a->type)
| | ^~
| hostname.c:255:39: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 255 | return equal(a->data, a->length, b, blen);
| | ^~
| hostname.c:255:48: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 255 | return equal(a->data, a->length, b, blen);
| | ^~
| hostname.c:256:22: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 256 | if (a->length == (int)blen && !memcmp(a->data, b, blen))
| | ^~
| hostname.c:256:56: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
| 256 | if (a->length == (int)blen && !memcmp(a->data, b, blen))
| | ^~
| hostname.c: In function ‘do_x509_check’:
| hostname.c:338:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 338 | name = X509_get_subject_name(x);
| | ^
| hostname.c:343:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 343 | ne = X509_NAME_get_entry(name, i);
| | ^
| hostname.c:344:21: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 344 | str = X509_NAME_ENTRY_get_data(ne);
| | ^
| # github.com/mendersoftware/openssl
| shim.c: In function ‘X_SSLv3_method’:
| shim.c:484:16: error: implicit declaration of function ‘SSLv3_method’; did you mean ‘SSLv23_method’? [-Wimplicit-function-declaration]
| 484 | return SSLv3_method();
| | ^~~~~~~~~~~~
| | SSLv23_method
| shim.c:484:16: error: returning ‘int’ from a function with return type ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} makes pointer from integer without a cast [-Wint-conversion]
| 484 | return SSLv3_method();
| | ^~~~~~~~~~~~~~
| shim.c: In function ‘X_TLSv1_method’:
| shim.c:491:16: error: implicit declaration of function ‘TLSv1_method’; did you mean ‘X_TLSv1_method’? [-Wimplicit-function-declaration]
| 491 | return TLSv1_method();
| | ^~~~~~~~~~~~
| | X_TLSv1_method
| shim.c:491:16: error: returning ‘int’ from a function with return type ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} makes pointer from integer without a cast [-Wint-conversion]
| 491 | return TLSv1_method();
| | ^~~~~~~~~~~~~~
| shim.c: In function ‘X_TLSv1_1_method’:
| shim.c:496:16: error: implicit declaration of function ‘TLSv1_1_method’; did you mean ‘X_TLSv1_1_method’? [-Wimplicit-function-declaration]
| 496 | return TLSv1_1_method();
| | ^~~~~~~~~~~~~~
| | X_TLSv1_1_method
| shim.c:496:16: error: returning ‘int’ from a function with return type ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} makes pointer from integer without a cast [-Wint-conversion]
| 496 | return TLSv1_1_method();
| | ^~~~~~~~~~~~~~~~
| shim.c: In function ‘X_TLSv1_2_method’:
| shim.c:504:16: error: implicit declaration of function ‘TLSv1_2_method’; did you mean ‘X_TLSv1_2_method’? [-Wimplicit-function-declaration]
| 504 | return TLSv1_2_method();
| | ^~~~~~~~~~~~~~
| | X_TLSv1_2_method
| shim.c:504:16: error: returning ‘int’ from a function with return type ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} makes pointer from integer without a cast [-Wint-conversion]
| 504 | return TLSv1_2_method();
| | ^~~~~~~~~~~~~~~~
| flag
…
| dh_auto_build: error: cd obj-x86_64-linux-gnu && go install -trimpath -v -p 1 -ldflags "-X github.com/mendersoftware/mender-artifact/cli.Version=3.9.0+ds1-2" github.com/mendersoftware/mender-artifact github.com/mendersoftware/mender-artifact/areader github.com/mendersoftware/mender-artifact/artifact github.com/mendersoftware/mender-artifact/artifact/gcp github.com/mendersoftware/mender-artifact/artifact/stage github.com/mendersoftware/mender-artifact/awriter github.com/mendersoftware/mender-artifact/cli github.com/mendersoftware/mender-artifact/cli/util github.com/mendersoftware/mender-artifact/handlers github.com/mendersoftware/mender-artifact/utils returned exit code 1
Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/golang-github-mendersoftware-mender-artifact_3.9.0+ds1-2_amd64-2026-04-19T09:37:12Z
Sebastian
More information about the Pkg-openssl-devel
mailing list