glib-1.2.10-as-needed.patch contains this hunk: -------------------------------------------------------- --- glib-1.2.10/configure.in.orig 2006-05-24 01:22:02.000000000 -0700 +++ glib-1.2.10/configure.in 2006-05-24 01:28:59.000000000 -0700 @@ -1235,9 +1234,7 @@ # define G_GNUC_EXTENSION __extension__ #else # define G_GNUC_EXTENSION -#endif - -" + #endif" gint64_constant='(G_GNUC_EXTENSION (val##LL))' ;; esac -------------------------------------------------------- It results in /usr/lib/glib/include/glibconfig.h containing the line: -------------------------------------------------------- #endif#define G_HAVE_GINT64 1 -------------------------------------------------------- GCC only warns about that line containing junk after #endif, but f.ex. wireshark fails to build because G_HAVE_GINT64 remains undefined. The hunk should be deleted from the patch. Reproducible: Always
Created attachment 110478 [details, diff] Restore newlines in configure.in glib-1.2.10-as-needed.patch delete needed newlines in configure.in. The generated glibconfig.h was corrupted on line 38 like this : #else # define G_GNUC_EXTENSION #endif#define G_HAVE_GINT64 1
thanks Daniel and Olivier, and leio who helped me, it should be fixed now. If you have emerged glib-1 between Fév 03 and March 03, then you have to reemerge glib to fix your header files.