[gtk-list] Re: glib header errors...




>From timj@gtk.org:

[......]

>it would be helpfull if you'd post the exact error messages here.

Yes, sorry....

I clicked a bit too fast on 'Send Message'....


Here is a part of error message when making ./configure for
gtksee V 0.2.1:


configure:1480: checking for GTK - version >= 1.0.0
configure:1569: gcc -o conftest  -Wall -I/usr1/tools/gtk/include -I/usr/openwin/include -I/usr1/tools/glib/lib/glib/include -I/usr1/tools/glib/include   conftest.c  -L/usr1/tools/gtk/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -L/usr1/tools/glib/lib -lgmodule -lglib -ldl -lintl -lXext -lX11 -lsocket -lnsl -lw -lm 1>&5
In file included from /usr1/tools/gtk/include/gdk/gdktypes.h:33,
                 from /usr1/tools/gtk/include/gdk/gdk.h:31,
                 from /usr1/tools/gtk/include/gtk/gtk.h:31,
                 from configure:1505:
/usr1/tools/gtk/include/glib.h:392: warning: `GPOINTER_TO_INT' redefined
/usr1/tools/glib/lib/glib/include/glibconfig.h:48: warning: this is the location of the previous definition
/usr1/tools/gtk/include/glib.h:393: warning: `GPOINTER_TO_UINT' redefined
/usr1/tools/glib/lib/glib/include/glibconfig.h:49: warning: this is the location of the previous definition
/usr1/tools/gtk/include/glib.h:395: warning: `GINT_TO_POINTER' redefined
/usr1/tools/glib/lib/glib/include/glibconfig.h:51: warning: this is the location of the previous definition
/usr1/tools/gtk/include/glib.h:396: warning: `GUINT_TO_POINTER' redefined
/usr1/tools/glib/lib/glib/include/glibconfig.h:52: warning: this is the location of the previous definition
/usr1/tools/gtk/include/glib.h:769: warning: `g_memmove' redefined
/usr1/tools/glib/lib/glib/include/glibconfig.h:60: warning: this is the location of the previous definition
In file included from /usr1/tools/gtk/include/gtk/gtk.h:31,
                 from configure:1505:
/usr1/tools/gtk/include/gdk/gdk.h:67: parse error before `GDestroyNotify'
/usr1/tools/gtk/include/gdk/gdk.h:392: parse error before `GDestroyNotify'
/usr1/tools/gtk/include/gdk/gdk.h:997: parse error before `*'
/usr1/tools/gtk/include/gdk/gdk.h:997: warning: data definition has no type or storage class
In file included from /usr1/tools/gtk/include/gtk/gtkobject.h:31,
                 from /usr1/tools/gtk/include/gtk/gtkaccelgroup.h:35,
                 from /usr1/tools/gtk/include/gtk/gtk.h:32,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkarg.h:71: parse error before `va_list'
/usr1/tools/gtk/include/gtk/gtkarg.h:90: parse error before `arg_info_1'
/usr1/tools/gtk/include/gtk/gtkarg.h:92: parse error before `arg_info'
In file included from /usr1/tools/gtk/include/gtk/gtkaccelgroup.h:35,
                 from /usr1/tools/gtk/include/gtk/gtk.h:32,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkobject.h:146: parse error before `GData'
/usr1/tools/gtk/include/gtk/gtkobject.h:146: warning: no semicolon at end of struct or union
/usr1/tools/gtk/include/gtk/gtkobject.h:321: parse error before `GQuark'
/usr1/tools/gtk/include/gtk/gtkobject.h:324: parse error before `GQuark'
/usr1/tools/gtk/include/gtk/gtkobject.h:328: parse error before `GQuark'
/usr1/tools/gtk/include/gtk/gtkobject.h:330: parse error before `GQuark'
/usr1/tools/gtk/include/gtk/gtkobject.h:332: parse error before `GQuark'
/usr1/tools/gtk/include/gtk/gtkobject.h:349: parse error before `va_list'
In file included from /usr1/tools/gtk/include/gtk/gtkadjustment.h:32,
                 from /usr1/tools/gtk/include/gtk/gtkwidget.h:33,
                 from /usr1/tools/gtk/include/gtk/gtkmisc.h:32,
                 from /usr1/tools/gtk/include/gtk/gtklabel.h:31,
                 from /usr1/tools/gtk/include/gtk/gtkaccellabel.h:34,
                 from /usr1/tools/gtk/include/gtk/gtk.h:33,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkdata.h:53: field `object' has incomplete type
In file included from /usr1/tools/gtk/include/gtk/gtkmisc.h:32,
                 from /usr1/tools/gtk/include/gtk/gtklabel.h:31,
                 from /usr1/tools/gtk/include/gtk/gtkaccellabel.h:34,
                 from /usr1/tools/gtk/include/gtk/gtk.h:33,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkwidget.h:174: field `object' has incomplete type
In file included from /usr1/tools/gtk/include/gtk/gtkbin.h:32,
                 from /usr1/tools/gtk/include/gtk/gtkalignment.h:32,
                 from /usr1/tools/gtk/include/gtk/gtk.h:35,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkcontainer.h:217: parse error before `va_list'
In file included from /usr1/tools/gtk/include/gtk/gtkcalendar.h:33,
                 from /usr1/tools/gtk/include/gtk/gtk.h:44,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtksignal.h:157: parse error before `GDestroyNotify'
In file included from /usr1/tools/gtk/include/gtk/gtk.h:47,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkclist.h:128: parse error before `gconstpointer'
In file included from /usr1/tools/gtk/include/gtk/gtk.h:52,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkctree.h:96: parse error before `GNode'
/usr1/tools/gtk/include/gtk/gtkctree.h:198: parse error before `GNode'
/usr1/tools/gtk/include/gtk/gtkctree.h:201: parse error before `*'
/usr1/tools/gtk/include/gtk/gtkctree.h:202: parse error before `GNode'
/usr1/tools/gtk/include/gtk/gtkctree.h:206: warning: data definition has no type or storage class
In file included from /usr1/tools/gtk/include/gtk/gtk.h:80,
                 from configure:1505:
/usr1/tools/gtk/include/gtk/gtkitemfactory.h:67: field `object' has incomplete type
configure: In function `main':
configure:1514: warning: implicit declaration of function `system'


[......]

>in glib.h from the 1.2 distribution, GDestroyNotify is defined in line 750 as

>typedef void            (*GDestroyNotify)       (gpointer       data);

You're right !!!!!

That make the problem stranger, doesn't it ?????


After my first post, I also tried to install GTK 1.2 at home
(RedHat 5.2), and I got the same problems during compilation
of GTK programms..... but compilation and installation
of Glib/GTK didn't generate the problem I got when installing
them on the Solaris stations....


On both systems, I upgraded from a GTK V 1.0.*, without cleaning
anything....Can it be the reason of my problem ?????


Hope someone will find a solution(.....)

VANHU.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]