RSS/Atom feed Twitter
Site is read-only, email is disabled

Thanks in advance for any help resolving this.

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Thanks in advance for any help resolving this. Craig M. Houck 24 Oct 16:12
  Thanks in advance for any help resolving this. Craig M. Houck 25 Oct 20:08
Thanks in advance for any help resolving this. William Skaggs 24 Oct 17:36
Thanks in advance for any help resolving this. Michael Schumacher 24 Oct 18:02
Craig M. Houck
2005-10-24 16:12:16 UTC (over 18 years ago)

Thanks in advance for any help resolving this.

Thanks in advance for any help resolving this.

I have compiled and in some cases re-compiled the following to get to gimp image libs
jpeg 68 or 6b (I can't read my own writing) libpng 1.2.8
tiff 3.7.4
libiconv 1.9.1
xft-2.1.2
fontconfig-2.2.98
free-type 2.1.9
zlib 1.2.3
xrender 0.8.3
render 0.8
expat 1.95.9
cairo 1.0.2
pango 1.1..1
gtk+ 2.8.4
gnove-vfs 2.9.93
gnome-lib 2.12.0
gimp-print 4.2.4
libexif 0.6.12
libexif-gtk 0.39
glib-2.8.3
libmng 1.0.9
librsvg 2.0.1
aalib 1.4.0

I configure GIMP 2.2.8 with: ./configure --prefix=/usr/local/GIMP --with-libiconv --with-gimpprint-prefix=/usr/local --disable-gimpprinttest --with-gas

I do a few things before the make to get past an early error: mkdir /intl
cd /intl
ln -s /usr/local/gcc/gcc-3.3.1/gcc/intl/libintl.a libintl.a

I get this set of error messages and cannot find anything when goggling.

---------------------------------------------------------------------------- ---------------------

gifload.c:252: warning: declaration does not declare anything gifload.c:252: warning: no semicolon at end of struct or union gifload.c:252: error: parse error before numeric constant gifload.c:253: warning: type defaults to `int' in declaration of `GifScreen' gifload.c:253: warning: data definition has no type or storage class gifload.c: In function `load_image': gifload.c:333: error: request for member `Width' in something not a structure or union
gifload.c:334: error: request for member `Height' in something not a structure or union
gifload.c:335: error: request for member `BitPixel' in something not a structure or union
gifload.c:336: error: request for member `ColorResolution' in something not a structure or union
gifload.c:337: error: request for member `Background' in something not a structure or union
gifload.c:338: error: request for member `AspectRatio' in something not a structure or union
gifload.c:343: error: request for member `BitPixel' in something not a structure or union
gifload.c:343: error: request for member `ColorMap' in something not a structure or union
gifload.c:343: error: parse error before numeric constant gifload.c:284: warning: unused variable `c' gifload.c:285: warning: unused variable `localColorMap' gifload.c:286: warning: unused variable `grayScale' gifload.c:287: warning: unused variable `useGlobalColormap' gifload.c:288: warning: unused variable `bitPixel' gifload.c:289: warning: unused variable `imageCount' gifload.c:291: warning: unused variable `image_ID' gifload.c: At top level:
gifload.c:350: error: parse error before "if" gifload.c:356: warning: type defaults to `int' in declaration of `highest_used_index'
gifload.c:356: error: conflicting types for `highest_used_index' gifload.c:104: error: previous declaration of `highest_used_index' gifload.c:356: warning: data definition has no type or storage class gifload.c:359: error: parse error before "for" gifload.c:381: warning: type defaults to `int' in declaration of `DoExtension'
gifload.c:381: warning: parameter names (without types) in function declaration
gifload.c:381: warning: data definition has no type or storage class gifload.c:382: error: parse error before "continue" gifload.c:400: warning: type defaults to `int' in declaration of `useGlobalColormap'
gifload.c:400: error: `buf' undeclared here (not in a function) gifload.c:400: warning: data definition has no type or storage class gifload.c:402: warning: type defaults to `int' in declaration of `bitPixel' gifload.c:402: error: `buf' undeclared here (not in a function) gifload.c:402: warning: data definition has no type or storage class gifload.c:404: error: parse error before "if" gifload.c:411: warning: type defaults to `int' in declaration of `image_ID' gifload.c:411: error: `fd' undeclared here (not in a function) gifload.c:411: error: `filename' undeclared here (not in a function) gifload.c:411: error: `buf' undeclared here (not in a function) gifload.c:411: error: `buf' undeclared here (not in a function) gifload.c:412: error: `buf' undeclared here (not in a function) gifload.c:412: error: `buf' undeclared here (not in a function) gifload.c:413: error: `localColorMap' undeclared here (not in a function) gifload.c:414: error: `grayScale' undeclared here (not in a function) gifload.c:415: error: `buf' undeclared here (not in a function) gifload.c:415: error: `imageCount' undeclared here (not in a function) gifload.c:416: error: `buf' undeclared here (not in a function) gifload.c:416: error: `buf' undeclared here (not in a function) gifload.c:417: error: `buf' undeclared here (not in a function) gifload.c:417: error: `buf' undeclared here (not in a function) gifload.c:418: error: request for member `Width' in something not a structure or union
gifload.c:419: error: request for member `Height' in something not a structure or union
gifload.c:420: error: initializer element is not constant gifload.c:420: warning: data definition has no type or storage class gifload.c:421: error: parse error before '}' token gifload.c:440: warning: type defaults to `int' in declaration of `gimp_parasite_free'
gifload.c:440: warning: parameter names (without types) in function declaration
gifload.c:440: error: conflicting types for `gimp_parasite_free' ../../libgimpbase/gimpparasite.h:57: error: previous declaration of `gimp_parasite_free'
gifload.c:440: warning: data definition has no type or storage class gifload.c:441: warning: type defaults to `int' in declaration of `comment_parasite'
gifload.c:441: error: conflicting types for `comment_parasite' gifload.c:108: error: previous declaration of `comment_parasite' gifload.c:441: warning: data definition has no type or storage class gifload.c:442: error: parse error before '}' token gifload.c: In function `DoExtension': gifload.c:535: warning: assignment makes integer from pointer without a cast /usr/local/include/glib-2.0/glib/gstring.h: At top level: gifload.c:485: warning: `DoExtension' defined but not used make[3]: *** [gifload.o] Error 1
make[3]: Leaving directory
`/usr/local/October05-Upgrade/gimp-2.2.8/plug-ins/common' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/October05-Upgrade/gimp-2.2.8 /plug-ins'
make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/October05-Upgrade/gimp-2.2.8' make: *** [all] Error 2

---------------------------------------------------------------------------- ---------------------

--
RBtBotL ><>
Craig
o
/ \
^

William Skaggs
2005-10-24 17:36:37 UTC (over 18 years ago)

Thanks in advance for any help resolving this.

Craig M. Houck wrote:

I get this set of error messages and cannot find anything when goggling.

[...]

It looks like something in one of the include files on your system is #define'ing the string "GrayScale". This is causing a problem with the following code from gifload.c:

static struct {
unsigned int Width;
unsigned int Height;
CMap ColorMap;
unsigned int BitPixel;
unsigned int ColorResolution;
unsigned int Background;
unsigned int AspectRatio;
/*
**
*/
int GrayScale;
} GifScreen;

When it reaches the line " int Grayscale", the compiler is saying, hey, you're trying to declare a number as "int", and freaking out.

These are the sorts of things that happen when you try to build everything by hand.

-- Bill

______________ ______________ ______________ ______________ Sent via the CNPRC Email system at primate.ucdavis.edu

Michael Schumacher
2005-10-24 18:02:05 UTC (over 18 years ago)

Thanks in advance for any help resolving this.

Von: "Craig M. Houck"

I have compiled and in some cases re-compiled the following

Why? Are you working with a platform that ships with outdated and/or broken libs?

Michael

Craig M. Houck
2005-10-25 20:08:55 UTC (over 18 years ago)

Thanks in advance for any help resolving this.

I am a bit closer, This looks like sytax errors mostly to me. I have grep'd my /usr/local/include directories and the source directories I can not find any locations where the vars indicated below are #defined .
HELP
bash-2.05# make
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include/gtk-2.0-I/usr/local/lib/gtk- 2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0
-I/usr/local/include/glib-2.0-I/usr/local/lib/glib- 2.0/include -I/usr/local/include/libexif -I/usr/local/include -I/usr/local/GIMP/include -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -MT gifload.o -MD -MP -MF ".deps/gifload.Tpo" \
-c -o gifload.o `test -f 'gifload.c' || echo './'`gifload.c; \ then mv -f ".deps/gifload.Tpo" ".deps/gifload.Po"; \ else rm -f ".deps/gifload.Tpo"; exit 1; \ fi
gifload.c: In function `load_image': gifload.c:352: error: parse error before numeric constant gifload.c:296: warning: unused variable `image_ID' gifload.c: At top level:
gifload.c:359: error: parse error before "if" gifload.c:365: warning: type defaults to `int' in declaration of `highest_used_index'
gifload.c:365: error: conflicting declarations of `highest_used_index' gifload.c:105: error: `highest_used_index' previously declared here gifload.c:365: warning: data definition has no type or storage class gifload.c:368: error: parse error before "for" gifload.c:390: warning: type defaults to `int' in declaration of `DoExtension'
gifload.c:390: warning: parameter names (without types) in function declaration
gifload.c:390: warning: data definition has no type or storage class gifload.c:391: error: parse error before "continue" gifload.c:409: warning: type defaults to `int' in declaration of `useGlobalColormap'
gifload.c:409: error: initializer element is not constant gifload.c:409: warning: data definition has no type or storage class gifload.c:411: warning: type defaults to `int' in declaration of `bitPixel' gifload.c:411: error: initializer element is not constant gifload.c:411: warning: data definition has no type or storage class gifload.c:413: error: parse error before "if" gifload.c:420: warning: type defaults to `int' in declaration of `image_ID' gifload.c:420: error: `fd' undeclared here (not in a function) gifload.c:420: error: `filename' undeclared here (not in a function) gifload.c:429: error: initializer element is not constant gifload.c:429: warning: data definition has no type or storage class gifload.c:430: error: parse error before '}' token gifload.c:449: warning: type defaults to `int' in declaration of `gimp_parasite_free'
gifload.c:449: warning: parameter names (without types) in function declaration
gifload.c:449: error: conflicting types for `gimp_parasite_free' ../../libgimpbase/gimpparasite.h:57: error: previous declaration of `gimp_parasite_free'
gifload.c:449: warning: data definition has no type or storage class gifload.c:450: warning: type defaults to `int' in declaration of `comment_parasite'
gifload.c:450: error: conflicting types for `comment_parasite' gifload.c:109: error: previous declaration of `comment_parasite' gifload.c:450: warning: data definition has no type or storage class gifload.c:451: error: parse error before '}' token gifload.c:494: warning: static declaration for `DoExtension' follows non-static
gifload.c: In function `DoExtension': gifload.c:544: warning: assignment makes integer from pointer without a cast /usr/local/include/glib-2.0/glib/gstring.h: At top level: gifload.c:494: warning: `DoExtension' defined but not used make: *** [gifload.o] Error 1
bash-2.05#