guash darnit (gimp 1.2.1 guash)

2001-01-22 Thread Goblin

Can anyone tell me why guash does not compile for 1.2.1? 

When i try gimptool --install guash.c I get gcc -O2 -m486 -fno-strength-reduce -Wall 
-I/usr/lib/glib/include -I/usr/X11R6/include -o /home/z3rk/.gimp-1.2/plug-ins/guash 
guash.c -L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule 
-lglib -ldl -lXi -lXext -lX11 -lm
In file included from guash.c:471:
include/guash-f.h:24: parse error before `GParam'
guash.c:824: parse error before `PLUG_IN_INFO'
guash.c:824: warning: type defaults to `int' in declaration of `PLUG_IN_INFO'
guash.c:826: warning: initialization makes integer from pointer without a cast
guash.c:827: warning: excess elements in scalar initializer
guash.c:827: warning: (near initialization for `PLUG_IN_INFO')
guash.c:828: warning: excess elements in scalar initializer
guash.c:828: warning: (near initialization for `PLUG_IN_INFO')
guash.c:829: warning: excess elements in scalar initializer
guash.c:829: warning: (near initialization for `PLUG_IN_INFO')
guash.c:830: warning: data definition has no type or storage class
guash.c: In function `query':
guash.c:839: syntax error before `eargs'
guash.c: At top level:
guash.c:844: parse error before `pargs'
guash.c:844: warning: type defaults to `int' in declaration of `pargs'
guash.c:846: warning: braces around scalar initializer
guash.c:846: warning: (near initialization for `pargs[0]')
guash.c:846: `PARAM_INT32' undeclared here (not in a function)
guash.c:846: initializer element is not constant
guash.c:846: (near initialization for `pargs[0]')
guash.c:846: warning: excess elements in scalar initializer
guash.c:846: warning: (near initialization for `pargs[0]')
guash.c:846: warning: excess elements in scalar initializer
guash.c:846: warning: (near initialization for `pargs[0]')
guash.c:847: warning: braces around scalar initializer
guash.c:847: warning: (near initialization for `pargs[1]')
guash.c:847: `PARAM_IMAGE' undeclared here (not in a function)
guash.c:847: initializer element is not constant
guash.c:847: (near initialization for `pargs[1]')

etc etc...

 Your eyes are weary from staring at the CRT.  You feel sleepy.  Notice how
 restful it is to watch the cursor blink.  Close your eyes.  The opinions
 stated above are yours.  You cannot imagine why you ever felt otherwise.




Re: guash darnit (gimp 1.2.1 guash)

2001-01-22 Thread Alex

Goblin wrote:

 Can anyone tell me why guash does not compile for 1.2.1?

 When i try gimptool --install guash.c I get gcc -O2 -m486 -fno-strength-reduce -Wall 
-I/usr/lib/glib/include -I/usr/X11R6/include -o /home/z3rk/.gimp-1.2/plug-ins/guash 
guash.c -L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule 
-lglib -ldl -lXi -lXext -lX11 -lm

I just tried to recompile my guash with new gimp 1.2.1 and all looks Ok.

Make sure, you have
#define GIMP_ENABLE_COMPAT_CRUFT
somewhere in very beginning of your source (before all #includes ; 1-st line of 
guash.c will be good)

Hope, it'll help
Alex

--
// Only the fire-born understand blue.


Š.ahg‹~žhikzmj)rj(r‰