Re: Problem with compilation of xsane-0.40 and patch

Oliver Rauch (oliver.rauch@Wolfsburg.DE)
Mon, 25 Oct 1999 18:26:00 +0200

Kevin Dalley wrote:

> When I try to compile xsane-0.40 using the old version libgimp1
> (1.0.4), I get the following compilation error:
>
> 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

Hi Kevin,
I already heared of that problem,

which system do you use?

Bye
Oliver

--
Homepage:       http://www.wolfsburg.de/~rauch
sane-umax:      http://www.wolfsburg.de/~rauch/sane/sane-umax.html
xsane:          http://www.wolfsburg.de/~rauch/sane/sane-xsane.html
E-Mail:         mailto:Oliver.Rauch@Wolfsburg.DE

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com