[Swan-dev] Bug#853947: libreswan FTBFS on mips and mipsel: error: "_ABI64" is not defined [-Werror=undef]
Paul Wouters
paul at nohats.ca
Fri Feb 3 01:26:26 UTC 2017
On Thu, 2 Feb 2017, Daniel Kahn Gillmor wrote:
> Over on https://bugs.debian.org/853947 you wrote:
>> Package libreswan_3.19-1 FTBFS on mips and mipsel with following error:
>>
>>> 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 /«PKGBUILDDIR»/lib/libswan/nss_copies.c:6:
>>> /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 'nss_copies.o' failed
>>> make[5]: *** [nss_copies.o] Error 1
> I appreciate the patch, but i think excluding the warning is probably
> not a great idea -- presumably, upstream should be doing something
> differently there.
>
> I'm cc'ing upstream on this.
> If this is something you can fix upstream, i'm happy to pull the patch
> into debian's packaging directly.
Can you try the attached patch?
Totally untested, because I don't have that build environment, and based
on some random googling :)
Paul
-------------- next part --------------
diff --git a/lib/libswan/nss_copies.c b/lib/libswan/nss_copies.c
index b90bbf0..16976db 100644
--- a/lib/libswan/nss_copies.c
+++ b/lib/libswan/nss_copies.c
@@ -3,6 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#ifdef _MIPS_SIM
+# include <sgidefs.h>
+#endif
+
#include <cert.h>
#include <secder.h>
#include "nss_copies.h"
More information about the Swan-dev
mailing list