[Pkg-freeipa-devel] Bug#973131: python-nss: FTBFS: src/py_nss.h:126:3: error: conflicting types for ‘RSAPublicKey’

Lucas Nussbaum lucas at debian.org
Tue Oct 27 17:00:54 GMT 2020


Source: python-nss
Version: 1.0.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc -I/usr/include/nss -I/usr/include/nspr -I/usr/include/python3.9 -c src/py_nss.c -o build/temp.linux-x86_64-3.9/src/py_nss.o
> In file included from src/py_nss.h:22,
>                  from src/py_nss.c:341:
> /usr/include/nss/key.h:9:9: note: ‘#pragma message: key.h is deprecated. Please include keyhi.h instead.’
>     9 | #pragma message("key.h is deprecated. Please include keyhi.h instead.")
>       |         ^~~~~~~
> In file included from src/py_nss.c:341:
> src/py_nss.h:126:3: error: conflicting types for ‘RSAPublicKey’
>   126 | } RSAPublicKey;
>       |   ^~~~~~~~~~~~
> In file included from /usr/include/nss/pk11hpke.h:8,
>                  from /usr/include/nss/pk11pub.h:12,
>                  from src/py_nss.h:23,
>                  from src/py_nss.c:341:
> /usr/include/nss/blapit.h:281:32: note: previous declaration of ‘RSAPublicKey’ was here
>   281 | typedef struct RSAPublicKeyStr RSAPublicKey;
>       |                                ^~~~~~~~~~~~
> In file included from src/py_nss.c:341:
> src/py_nss.h:136:3: error: conflicting types for ‘DSAPublicKey’
>   136 | } DSAPublicKey;
>       |   ^~~~~~~~~~~~
> In file included from /usr/include/nss/pk11hpke.h:8,
>                  from /usr/include/nss/pk11pub.h:12,
>                  from src/py_nss.h:23,
>                  from src/py_nss.c:341:
> /usr/include/nss/blapit.h:323:32: note: previous declaration of ‘DSAPublicKey’ was here
>   323 | typedef struct DSAPublicKeyStr DSAPublicKey;
>       |                                ^~~~~~~~~~~~
> In file included from src/py_nss.c:339:
> src/py_nss.c: In function ‘SECItem_to_base64’:
> src/py_nspr_common.h:256:23: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Wsign-compare]
>   256 | #define MIN(a,b) ((a) < (b) ? (a) : (b))
>       |                       ^
> src/py_nss.c:1832:24: note: in expansion of macro ‘MIN’
>  1832 |             line_len = MIN(chars_per_line, src_end - src);
>       |                        ^~~
> src/py_nspr_common.h:256:37: warning: operand of ‘?:’ changes signedness from ‘long int’ to ‘size_t’ {aka ‘long unsigned int’} due to unsignedness of other operand [-Wsign-compare]
>   256 | #define MIN(a,b) ((a) < (b) ? (a) : (b))
>       |                                     ^~~
> src/py_nss.c:1832:24: note: in expansion of macro ‘MIN’
>  1832 |             line_len = MIN(chars_per_line, src_end - src);
>       |                        ^~~
> src/py_nss.c: In function ‘CERTAVA_value_to_pystr’:
> src/py_nss.c:4818:41: warning: comparison of integer expressions of different signedness: ‘SECOidTag’ and ‘int’ [-Wsign-compare]
>  4818 |     if ((oid_tag = CERT_GetAVATag(ava)) != -1) {
>       |                                         ^~
> src/py_nss.c: In function ‘CERTRDN_to_pystr’:
> src/py_nss.c:4882:45: warning: comparison of integer expressions of different signedness: ‘SECOidTag’ and ‘int’ [-Wsign-compare]
>  4882 |         if ((oid_tag = CERT_GetAVATag(ava)) != -1) {
>       |                                             ^~
> src/py_nss.c: In function ‘Certificate_get_extension’:
> src/py_nss.c:10192:53: warning: comparison of integer expressions of different signedness: ‘SECOidTag’ and ‘int’ [-Wsign-compare]
> 10192 |     if ((oid_tag = get_oid_tag_from_object(py_oid)) == -1) {
>       |                                                     ^~
> src/py_nss.c: In function ‘pk11_create_pbev2_algorithm_id’:
> src/py_nss.c:23446:65: warning: comparison of integer expressions of different signedness: ‘SECOidTag’ and ‘int’ [-Wsign-compare]
> 23446 |         if ((pbe_alg_tag = get_oid_tag_from_object(py_pbe_alg)) == -1) {
>       |                                                                 ^~
> src/py_nss.c:23453:71: warning: comparison of integer expressions of different signedness: ‘SECOidTag’ and ‘int’ [-Wsign-compare]
> 23453 |         if ((cipher_alg_tag = get_oid_tag_from_object(py_cipher_alg)) == -1) {
>       |                                                                       ^~
> src/py_nss.c:23460:65: warning: comparison of integer expressions of different signedness: ‘SECOidTag’ and ‘int’ [-Wsign-compare]
> 23460 |         if ((prf_alg_tag = get_oid_tag_from_object(py_prf_alg)) == -1) {
>       |                                                                 ^~
> src/py_nss.c: In function ‘pkcs12_enable_all_ciphers’:
> src/py_nss.c:24381:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
> 24381 |     for (i = 0; i < sizeof(all_ciphers)/sizeof(all_ciphers[0]); i++) {
>       |                   ^
> error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
> E: pybuild pybuild:352: build: plugin distutils failed with: exit code=1: /usr/bin/python3.9 setup.py build 
> dh_auto_build: error: pybuild --build -i python{version} -p "3.9 3.8" returned exit code 13
> make: *** [debian/rules:10: build] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/python-nss_1.0.0-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-freeipa-devel mailing list