From: Bernd S. <ber...@in...> - 2007-09-20 10:08:05
|
Hi, I currently get the following errors when trying to bootstrap GOBO from = = SVN under Linux: ------------------------------------------------------------------------= ---------- schoelle@monty:~/libs/gobo/work/bootstrap$ LANG=3DC ./bootstrap.sh gcc g= e gec12.c:12728:21: error: windows.h: No such file or directory gec12.c:12729:16: error: io.h: No such file or directory gcc: gec12.o: No such file or directory rm: cannot remove `gec12.o': No such file or directory sh: gec: command not found BUILD FAILED! BUILD FAILED! ------------------------------------------------------------------------= ---------- "gec12.c" contain Windows specific includes, caused by commit 6074 (Crea= te = a new DOS console when none exists yet in Windows applications). May I = suggest the following patch: ------------------------------------------------------------------------= ---------- Index: work/bootstrap/gec12.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- work/bootstrap/gec12.c (revision 6087) +++ work/bootstrap/gec12.c (working copy) @@ -12725,9 +12725,12 @@ #define GE_CONSOLE_C #include <stdio.h> +#include <fcntl.h> + +#ifdef EIF_WINDOWS #include <windows.h> #include <io.h> -#include <fcntl.h> +#endif #ifdef __cplusplus extern "C" { Index: tool/gec/runtime/c/ge_console.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- tool/gec/runtime/c/ge_console.c (revision 6087) +++ tool/gec/runtime/c/ge_console.c (working copy) @@ -14,9 +14,12 @@ #define GE_CONSOLE_C #include <stdio.h> +#include <fcntl.h> + +#ifdef EIF_WINDOWS #include <windows.h> #include <io.h> -#include <fcntl.h> +#endif #ifdef __cplusplus extern "C" { ------------------------------------------------------------------------= ---------- Regards, Bernd |