# Re: Problem with compilation of xsane-0.40 and patch

Gerhard Wiesinger (e9125884@student.tuwien.ac.at)
Mon, 25 Oct 1999 21:22:23 +0200 (METDST)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Kevin Dalley: "Re: Problem with compilation of xsane-0.40 and patch"
- Previous message: Pamela Akazawa: "xscanimage"

> 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>
> >

Yes, same problem here.

Ciao,
Gerhard

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

- Next message: Kevin Dalley: "Re: Problem with compilation of xsane-0.40 and patch"
- Previous message: Pamela Akazawa: "xscanimage"