Package: nspr
Version: 2:4.12-6
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch


Package libreswan_3.19-2 FTBFS on mips and mipsel with following error:

> In file included from /usr/include/nspr/prtypes.h:26:0,
>                  from /usr/include/nss/seccomon.h:17,
>                  from /usr/include/nss/nss.h:34,
>                  from /«PKGBUILDDIR»/lib/libswan/base64_rsa_pubkey.c:21:
> /usr/include/nspr/prcpucfg.h:511:18: error: "_ABI64" is not defined 
> [-Werror=undef]
>  #if _MIPS_SIM == _ABI64
>                   ^~~~~~
> cc1: all warnings being treated as errors
> ../../../mk/depend.mk:28: recipe for target 'base64_rsa_pubkey.o' failed
> make[5]: *** [base64_rsa_pubkey.o] Error 1

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=libreswan&arch=mips&ver=3.19-2&stamp=1486258333&raw=0

On 32-bit mips (ABIO32) _ABI64 is not defined and build fails if Wundef is used.
Problem could be resolved by including <sgidefs.h> header (which includes ABI 
definitions) into "_linux.cfg" file.
Another way to solve the problem could be changing "#if _MIPS_SIM == _ABI64" 
expression (if defined _ABI64 has value 3).

> $ gcc -dM -E -mabi=64 - < /dev/null | grep --color -s "ABI"
> #define _ABI64 3
> #define _MIPS_SIM _ABI64

Bug is reported here:
https://bugs.debian.org/853947

Regards,
Radovan

Reply via email to