Re: [gtk-list] Compile problem with GMutex for >= gtk+-1.1.7



Suds wrote:

> Starting with v1.1.8 I'm unable to compile gtk. Can someone please
> help me with this. Is there anything I can do to fix this?
>
> Error:
> Making all in gdk
> make[2]: Entering directory `/usr/src/redhat/BUILD/gtk+-1.1.12/gdk'
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
> -DG_LOG_DOMAIN=\"Gdk\" -I.. -DGTK_NO_CHECK_CASTS -DUSE_XIM
> -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include   -O2 -m486
> -fno-strength-reduce -Wall -c gdk.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -I..
> -DGTK_NO_CHECK_CASTS -DUSE_XIM -I/usr/lib/glib/include -D_REENTRANT
> -I/usr/X11R6/include -O2 -m486 -fno-strength-reduce -Wall -c -fPIC
> -DPIC gdk.c
> In file included from gdk.c:38:
> gdk.h:965: parse error before `*'
> gdk.h:965: warning: data definition has no type or storage class
> gdk.c: In function `gdk_init':
> gdk.c:151: warning: implicit declaration of function
> `g_thread_supported'
> gdk.c:152: warning: implicit declaration of function `g_mutex_new'
> gdk.c:152: warning: assignment makes pointer from integer without a
> cast
> gdk.c: In function `gdk_threads_enter':
> gdk.c:1241: warning: implicit declaration of function `g_mutex_lock'
> gdk.c: In function `gdk_threads_leave':
> gdk.c:1247: warning: implicit declaration of function `g_mutex_unlock'
> make[2]: *** [gdk.lo] Error 1
> make[2]: Leaving directory `/usr/src/redhat/BUILD/gtk+-1.1.12/gdk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/redhat/BUILD/gtk+-1.1.12'
> make: *** [all-recursive-am] Error 2
>

I'm having a very similar problem using the RPMs for 1.1.12 and compiling
another program; it seems in line 965 in gdk.h it's declaring something of
type GMutex.  GMutex is a typedef for _GMutex, but I can't seem to find where
_GMutex is defined.

Does anyone have any ideas?  I'm running redhat 5.2 on an x86, my compiler is
gcc version 2.7.2.3, using glibc-2.0.7-29.

jamus


S/MIME Cryptographic Signature



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