Re: GError: conflicts with glib-2.0

On Sun, 2001-10-14 at 17:16, Havoc Pennington wrote:
> Ross Golder <ross golder org> writes:
> > 
> > My sincerest apologies. I forgot to mention, this is from gconf CVS
> > HEAD.
> > 
> I still don't understand how you got it to happen - how are you
> including gconf-glib-public.h? What file is including that?
> How did it include it without having the gconf 1.0 --cflags on the
> compile line?

#include <gconf/gconf.h>
#include <glib.h>

(tried the other way round, too, same results)

Making all in src
make[2]: Entering directory
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. 	-I../libirc 	-I/usr/include
	-DORBIT2=1 -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
	-I/usr/lib/gnet/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include
	-I/usr/include/gconf/1 -I/usr/include -I/usr/include/glib-1.2
-I/usr/lib/glib/include 	-I/usr/include -I/usr/include/glib-1.2
-I/usr/lib/glib/include 	-DG_LOG_DOMAIN=\"techbot\" 	-DDEBUG -Wall    -g
-O2 -c main.c
In file included from /usr/include/gconf/1/gconf/gconf-error.h:25,
                 from /usr/include/gconf/1/gconf/gconf-value.h:25,
                 from /usr/include/gconf/1/gconf/gconf-schema.h:26,
                 from /usr/include/gconf/1/gconf/gconf.h:29,
                 from main.c:17:
/usr/include/gconf/1/gconf/gconf-glib-public.h:29: redefinition of
/usr/include/glib-2.0/glib/gerror.h:28: `GError' previously declared
/usr/include/gconf/1/gconf/gconf-glib-public.h:32: redefinition of
`struct _GError'

Hmmm, shouldn't that be '/usr/include/gconf/2'? I guess it's because I'm
still using AM_PATH_GCONF from gconf-1.m4.

So, I checked and in /usr/share/aclocal/gconf-2.m4 to see what macro I
should use in my script, and find that there isn't a
AM_PATH_GCONF2 macro. Shouldn't this macro exist?

Thanks in advance,


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