Re: commands.[ch] conflicting types for...

2000-04-28 Thread Garry R. Osgood

Doug Alcorn wrote:

 snipped...
 It looks like the header file only defines two arguments in the
 prototype, but the actual function has three.  How is it possible that
 the gimp compiles for other people and not for me?
 --


My commands.h file defines edit_fill_cmd_callback(...) et alia with
three parameters. It's CVS version is 1.26, dated  Mar 24 2000 09:54
checked in by Sven.

1)  You've (somehow) obtained an out-of-date header ?
2)  A (somehow) out-of-date header was in your distribution (Came from where?)
3) You have multiple commands.h in different directories, and a earlier version
is being found first (There are include guards bracketing the header contents, so
the first one found rules, and subsequent ones silently ignored).

If you can, run the compiler preprocessor only and dump the output to file
(on SGI MIPS compilers this is -E -- check your compiler documentation)
This may give a flag where the compiler is finding the header.

Be good, be well

Garry





commands.[ch] conflicting types for...

2000-04-27 Thread Doug Alcorn

CVS gimp (updated 27/apr/2000) won't compile on my box.  It complains:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..   
-I../intl-I/usr/lib/glib/include -I/usr/X11R6/include   
-I/usr/include -DLIBDIR=\""/usr/lib/gimp/1.1"\" 
-DLOCALEDIR=\""/usr/share/locale"\"-DREGEX_MALLOC  
-g -O2 -Wall -c commands.c
commands.c:254: conflicting types for `edit_fill_cmd_callback'
commands.h:19: previous declaration of `edit_fill_cmd_callback'
commands.c:1067: conflicting types for `tools_select_cmd_callback'
commands.h:87: previous declaration of `tools_select_cmd_callback'
commands.c:1103: conflicting types for `filters_repeat_cmd_callback'
commands.h:88: previous declaration of `filters_repeat_cmd_callback'
make[2]: *** [commands.o] Error 1
make[2]: Leaving directory `/usr/local/src/gimp/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gimp'
make: *** [all-recursive-am] Error 2


Here's what I have...

commands.c==
250: void
251: edit_fill_cmd_callback (GtkWidget *widget,
252:gpointer   callback_data,
253:guint  callback_action)
254: {

commands.h==
19: void edit_fill_cmd_callback (GtkWidget *, gpointer);

commands.c==
1063: void
1064: tools_select_cmd_callback (GtkWidget *widget,
1065:  gpointer   callback_data,
1066:  guint  callback_action)
1067: {

commands.h==
87: void tools_select_cmd_callback (GtkWidget *, gpointer);

commands.c==
1099: void
1100: filters_repeat_cmd_callback (GtkWidget *widget,
1101:gpointer   callback_data,
1102:guint  callback_action)
1103: {

commands.h==
88: void filters_repeat_cmd_callback (GtkWidget *, gpointer);

It looks like the header file only defines two arguments in the
prototype, but the actual function has three.  How is it possible that
the gimp compiles for other people and not for me?
-- 
 (__)  Doug Alcorn  | program == list of computer instructions
 oo /  [EMAIL PROTECTED]   | firmware == program that is not user modifiable
 |_/   http://www.lathi.net | software == program that a user can modify
   Cincinnati, OH   | "If you don't have the source, it's not software"