Package: xaos Severity: normal Tags: patch When building 'xaos' on amd64 with gcc-4.0, I get the following error:
gcc -Wall -fstrength-reduce -ffast-math -pipe -fno-exceptions -Os -fstrict-aliasing -mno-ieee-fp -D_REENTRANT -I/usr/include/ncurses -I/xaos-3.1r/src/include -c -o image.o image.c In file included from /xaos-3.1r/src/include/fractal.h:32, from /xaos-3.1r/src/include/filter.h:319, from image.c:17: /xaos-3.1r/src/include/formulas.h:39: error: array type has incomplete element type With the attached patch 'xaos' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/xaos-3.1r/src/engine/fractal.c ./src/engine/fractal.c --- ../tmp-orig/xaos-3.1r/src/engine/fractal.c 2003-02-03 17:16:37.000000000 +0100 +++ ./src/engine/fractal.c 2005-03-20 11:04:52.891068812 +0100 @@ -74,6 +74,7 @@ static symetry2 sym_lines[100]; +extern CONST struct formula formulas[]; static void precalculate_rotation (fractal_context * c) diff -urN ../tmp-orig/xaos-3.1r/src/include/formulas.h ./src/include/formulas.h --- ../tmp-orig/xaos-3.1r/src/include/formulas.h 2002-09-25 17:52:09.000000000 +0200 +++ ./src/include/formulas.h 2005-03-20 11:02:39.145037024 +0100 @@ -36,7 +36,6 @@ #define FORMULAMAGIC 1121 extern CONST char *CONST incolorname[]; - extern CONST struct formula formulas[]; extern CONST char *CONST outcolorname[]; extern CONST char *CONST tcolorname[]; extern CONST int nformulas; diff -urN ../tmp-orig/xaos-3.1r/src/ui-hlp/menu.c ./src/ui-hlp/menu.c --- ../tmp-orig/xaos-3.1r/src/ui-hlp/menu.c 2003-03-19 13:09:32.000000000 +0100 +++ ./src/ui-hlp/menu.c 2005-03-20 11:03:39.967227235 +0100 @@ -26,6 +26,8 @@ #define LANG_I(name,name2) MENUSTRING_I("lang", NULL, name,name2,0, (void (*) (struct uih_context *c, char *))uih_loadcatalog, name2) #define TUTOR_I(name1,name2,name3) MENUSTRING_I(name1, NULL, name2,name3,MENUFLAG_INTERRUPT|UI,uih_playtutorial,name3) +extern CONST struct formula formulas[]; + CONST static char *CONST morphstypes[] = { "view", "julia", diff -urN ../tmp-orig/xaos-3.1r/src/ui-hlp/play.c ./src/ui-hlp/play.c --- ../tmp-orig/xaos-3.1r/src/ui-hlp/play.c 2003-02-03 17:16:43.000000000 +0100 +++ ./src/ui-hlp/play.c 2005-03-20 11:04:02.900774471 +0100 @@ -41,6 +41,8 @@ static CONST char *CONST animroot = "animroot"; +extern CONST struct formula formulas[]; + static inline struct uih_line * uih_findkey (uih_context * c, int key) { diff -urN ../tmp-orig/xaos-3.1r/src/ui-hlp/save.c ./src/ui-hlp/save.c --- ../tmp-orig/xaos-3.1r/src/ui-hlp/save.c 2003-02-03 17:16:44.000000000 +0100 +++ ./src/ui-hlp/save.c 2005-03-20 11:04:26.228245353 +0100 @@ -28,6 +28,8 @@ CONST char *CONST xtextposnames[] = { "left", "center", "right", NULL }; CONST char *CONST ytextposnames[] = { "top", "middle", "bottom", NULL }; +extern CONST struct formula formulas[]; + REGISTERS (3) static void outputerror (struct uih_context *uih) { -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]