On Wed, 8 Feb 2017, Paul Wouters wrote:

> So, try the attached patch, that basically does:
> 
> +#ifndef _ABIO32
> +# define _ABIO32        1
> +#endif
> +
> +#ifndef _ABIN32
> +# define _ABIN32        2
> +#endif
> +
> +#ifndef _ABI64
> +# define _ABI64         3
> +#endif

With this patch problem still occurs:

> In file included from /usr/include/nspr/prtypes.h:26:0,
>                  from /usr/include/nspr/plarena.h:15,
>                  from /usr/include/nss/cert.h:13,
>                  from 
> /build/libreswan-NMM3Aa/orig_source/libreswan-3.19/include/nss_copies.h:17,
>                  from 
> /build/libreswan-NMM3Aa/orig_source/libreswan-3.19/lib/libswan/nss_copies.c:10:
> /usr/include/nspr/prcpucfg.h:515:18: error: "_ABI64" is not defined 
> [-Werror=undef]
>  #if _MIPS_SIM == _ABI64
>                   ^~~~~~
> cc1: all warnings being treated as errors


Problem for nss_copies.c would be solved if these defines are defined before 
<cert.h> was included.
It is not enough to change only nss_copies.h file, because the same problem 
occurs during compilation of other files: 
base64_rsa_pubkey.c, lswnss.c, cavp_ikev1.c, cavp_ikev2.c, cavp_sha.c, 
cavp_hmac.c, cavp_gcm.c etc.

Maybe a better solution would be to make changes in nspr package.
I have already suggested changes to the package:
https://bugs.debian.org/854472

Regards,
Radovan

Reply via email to