[nhc-bugs] a problem with 1.12
Oliver Braun
obraun@informatik.unibw-muenchen.de
Sun, 17 Mar 2002 21:17:45 +0100
Hi Feliks,
* Feliks Kluzniak <feliks@crt.se> [2002-03-17 20:06]:
> When I tried to build 1.12 (from the sources, on Solaris, with GHC, worked
> perfectly with 1.10), I got
> gcc -c -I../Kernel -I/q/pd/nhc/nhc98-1.12/include -D__EXTENSIONS__ -O3 -DHIGH_BYTE_FIRST -o /q/pd/nhc/nhc98-1.12/targets/sparc-solaris2/obj/runtime/Builtin/cFFI.o cFFI.c
> In file included from cFFI.c:3:
> HsFFI.h:5: stdint.h: No such file or directory
stdint.h is part of the C99 standard, and is not available on older
systems, like Solaris and FreeBSD Stable. Use the following patch and it
should work.
HTH, Olli
-----------------------------------------------------------------------------
--- include/HsFFI.h.orig Sun Mar 17 20:52:08 2002
+++ include/HsFFI.h Sun Mar 17 20:54:55 2002
@@ -2,7 +2,7 @@
#define _HSFFI_H
#if !defined(INT64_MIN)
-#include "stdint.h"
+#include "inttypes.h"
#endif
#define HsChar char
-----------------------------------------------------------------------------
--
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/