[Pkg-openssl-devel] Bug#1138414: opensc: FTBFS with openssl 4.0

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Sat May 30 17:10:22 BST 2026


Package: opensc
Version: 0.27.1-1
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:

| libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/opensc-0.27.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error -c pkcs15-oberthur-awp.c  -fPIC -DPIC -o .libs/pkcs15-oberthur-awp.o
| pkcs15-oberthur-awp.c: In function 'awp_get_commonName':
| pkcs15-oberthur-awp.c:57:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
|    57 |                 if (!(ne = X509_NAME_get_entry(X509_get_subject_name(x), r)))
|       |                          ^
| pkcs15-oberthur-awp.c:59:34: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
|    59 |                 else if (!(a_str = X509_NAME_ENTRY_get_data(ne)))
|       |                                  ^
| pkcs15-oberthur-awp.c:61:31: error: invalid use of incomplete typedef 'ASN1_STRING' {aka 'struct asn1_string_st'}
|    61 |                 else if (a_str->type == 0x0C)   {
|       |                               ^~
| pkcs15-oberthur-awp.c:62:43: error: invalid use of incomplete typedef 'ASN1_STRING' {aka 'struct asn1_string_st'}
|    62 |                         ret = malloc(a_str->length + 1);
|       |                                           ^~
| pkcs15-oberthur-awp.c:64:50: error: invalid use of incomplete typedef 'ASN1_STRING' {aka 'struct asn1_string_st'}
|    64 |                                 memcpy(ret, a_str->data, a_str->length);
|       |                                                  ^~
| pkcs15-oberthur-awp.c:64:63: error: invalid use of incomplete typedef 'ASN1_STRING' {aka 'struct asn1_string_st'}
|    64 |                                 memcpy(ret, a_str->data, a_str->length);
|       |                                                               ^~
| pkcs15-oberthur-awp.c:65:46: error: invalid use of incomplete typedef 'ASN1_STRING' {aka 'struct asn1_string_st'}
|    65 |                                 *(ret + a_str->length) = '\0';
|       |                                              ^~
| make[5]: *** [Makefile:626: pkcs15-oberthur-awp.lo] Error 1


Full buildlog
 	https://breakpoint.cc/openssl-rebuild/logs-4/attempted/opensc_0.27.1-1_amd64-2026-04-19T14:06:23Z

Sebastian



More information about the Pkg-openssl-devel mailing list