cross-compile error

Steven Edwards winehacker at gmail.com
Tue Dec 13 12:12:44 CST 2005


Hi,
When doing Cross-Compiles I am seeing this error

../../include/wine/exception.h:142: error: parse error before "sigjmp_buf"
../../include/wine/exception.h:142: warning: no semicolon at end of
struct or union
../../include/wine/exception.h:146: error: parse error before '}' token
../../include/wine/exception.h:146: warning: type defaults to `int' in
declaration of `__WINE_FRAME'
../../include/wine/exception.h:146: warning: data definition has no
type or storage class

It seems the detection of sigjmp longjmp is busted for
cross-compiling. I am using this patch locally but don't know how to
properly fix it.

Index: include/wine/exception.h
===================================================================
RCS file: /home/wine/wine/include/wine/exception.h,v
retrieving revision 1.26
diff -u -r1.26 exception.h
--- include/wine/exception.h    1 Sep 2004 17:36:04 -0000       1.26
+++ include/wine/exception.h    13 Dec 2005 18:03:58 -0000
@@ -139,7 +139,7 @@
         /* finally data */
         __WINE_FINALLY finally_func;
     } u;
-    sigjmp_buf jmp;
+    jmp_buf jmp;
     /* hack to make GetExceptionCode() work in handler */
     DWORD ExceptionCode;
     const struct __tagWINE_FRAME *ExceptionRecord;


--
Steven Edwards - ReactOS and Wine developer

"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo



More information about the wine-devel mailing list