Public bug reported:

Imported from Debian bug http://bugs.debian.org/1138357:

Package: golang-github-mendersoftware-mender-artifact
Version: 3.9.0+ds1-2
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:

| # 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

** Affects: golang-github-mendersoftware-mender-artifact (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: golang-github-mendersoftware-mender-artifact (Debian)
     Importance: Undecided
         Status: New


** Tags: ftbfs openssl-4.0

** Bug watch added: Debian Bug tracker #1138357
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1138357

** Changed in: golang-github-mendersoftware-mender-artifact (Debian)
 Remote watch: None => Debian Bug tracker #1138357

** 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/2154905

Title:
  golang-github-mendersoftware-mender-artifact: FTBFS with openssl 4.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-github-mendersoftware-mender-artifact/+bug/2154905/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to