gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/X11R6/include -I/usr/lib/glib/include -I/usr/local/include -DLOCALEDIR=\""/usr/share/xsane/locale"\" -D_GNU_SOURCE -DPATH_SANE_DATA_DIR=/usr/share/xsane/sane -DV_MAJOR=0 -DV_MINOR=40 -DSANE_V_MAJOR=1 -g -O2 -Wall xsane-preferences.c
In file included from xsane-preferences.c:27:
xsane.h:245: parse error before `FILE'
xsane.h:245: warning: no semicolon at end of struct or union
xsane.h:366: parse error before `}'
xsane.h:366: warning: type defaults to `int' in declaration of `Xsane'
xsane.h:366: warning: data definition has no type or storage class
make: *** [xsane-preferences.o] Error 1
One simple fix to this problem is:
--- xsane-0.40.orig/frontend/xsane.h
+++ xsane-0.40/frontend/xsane.h
@@ -39,6 +39,7 @@
/* ---------------------------------------------------------------------------------------------------------------------- */
+#include <stdio.h>
#include <getopt.h>
#include <xsane-back-gtk.h>
#include <xsane-preferences.h>
-- Kevin Dalley kevind@rahul.net
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com