> 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?
Oops. I forgot to mention that I use Debian GNU/Linux. I compile for
x86, but uploads are compiled for many other hardware platforms.
In libgimp from 1.1.10, I found stdio.h included in the following
libgimp header file:
/usr/include/libgimp/parasite.h:24:#include <stdio.h>
In libgimp from 1.0.4, stdio.h is not included in any header file. I
suspect that this problem will be quite common in many platforms.
-- 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