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



On Fri, 5 Mar 1999, VANHULLEBUS Yvan wrote:

> 
> >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

hm, from reading the compilation lines, i guess you are using different
prefixes for glib and gtk installations (i.e. /usr1/tools/gtk/include and
/usr1/tools/glib/include), and have different versions of glib and gtk
installed in both prefixes.
you should first try to get rid of all the old versions and then
compile and install glib 1.2.0 in one prefix and then compile and install
gtk 1.2.0 under the same. having multiple sets of header files floating
around, is almost a guarrantee to mess up compilation, unless you install
corresponding glib and gtk versions under different prefixes and use only
one of those for the compilation of third party programs.

the compilation errors you get, especially suggest that you have a GLib version
>= 1.1.5 installed under /usr1/tools/glib/, and < 1.1.5 under /usr1/tools/gtk/
(because with 1.1.5 the GPOINTER_TO_INT() definition moved from glib.h to
glibconfig.h).

> 
> VANHU.
> 

---
ciaoTJ



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