Package: snowflake Severity: normal Tags: patch When building 'snowflake' on amd64 with gcc-4.0, I get the following error:
make[1]: Entering directory `/snowflake-0.01a' gcc `gtk-config --cflags` -c sf.c -o sf.o In file included from sf.c:26: sf.h:38: error: array type has incomplete element type make[1]: *** [sf.o] Error 1 make[1]: Leaving directory `/snowflake-0.01a' make: *** [build-stamp] Error 2 With the attached patch 'snowflake' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/snowflake-0.01a/sf.h ./sf.h --- ../tmp-orig/snowflake-0.01a/sf.h 2005-03-18 21:03:46.466036980 +0100 +++ ./sf.h 2005-03-18 21:01:43.741488707 +0100 @@ -35,7 +35,6 @@ c_LOOP = 'p' } command_option_e; -extern struct option long_options[]; #define COMMAND_OPTIONS ( ( sizeof( long_options ) \ / sizeof( struct option ) ) - 1 ) diff -urN ../tmp-orig/snowflake-0.01a/sf_control.c ./sf_control.c --- ../tmp-orig/snowflake-0.01a/sf_control.c 2005-03-18 21:03:46.468036598 +0100 +++ ./sf_control.c 2005-03-18 21:02:54.848901439 +0100 @@ -27,6 +27,8 @@ /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ +extern struct option long_options[]; + static gchar* author = "donald johnson"; static gchar* company = "dla.kwi Ensign Core"; diff -urN ../tmp-orig/snowflake-0.01a/sf_view.c ./sf_view.c --- ../tmp-orig/snowflake-0.01a/sf_view.c 1998-12-21 00:18:55.000000000 +0100 +++ ./sf_view.c 2005-03-18 21:03:26.768801422 +0100 @@ -86,6 +86,8 @@ static void apply_args ( int argc,char* argv[] ); +extern struct option long_options[]; + /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ void view_main( int argc, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]