[Swan-dev] Bug#853947: libreswan FTBFS on mips and mipsel: error: "_ABI64" is not defined [-Werror=undef]

Andrew Cagney andrew.cagney at gmail.com
Wed Feb 8 18:37:39 UTC 2017

On 3 February 2017 at 13:57, Daniel Kahn Gillmor <dkg at fifthhorseman.net> wrote:
>         -MMD -MF ./base64_rsa_pubkey.d \
>         -o ./base64_rsa_pubkey.o \
>         -c /«PKGBUILDDIR»/lib/libswan/base64_rsa_pubkey.c
> 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

Would you know how NSS deals with this on MIPS?

Paul's patch would suggest that we need to add:

> +#ifdef _MIPS_SIM
> +# include <sgidefs.h>
> +#endif

everywhere we include "nss.h" yet I code like that didn't jump out at
me when I looked at the NSS code base.

More information about the Swan-dev mailing list