GTK 1.2.5 compile error



Hi,
         I compiled Glib with --disable-threads and it compiled.
         After that I am trying to compile GTK+1.2.5 it is giving
         a  recursive error..

-------------gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" 
-DGTK_DISABLE_COMPAT_H -DGTK_EXE_PREFIX=\"/usr\" -DGTK_DATA_PREFIX=\"/usr\" 
-DGTK_SYSCONFDIR=\"/usr/etc\" -DGTK_LOCALEDIR=\"/usr//locale\" -I.. 
-DGTK_NO_CHECK_CASTS -DUSE_XIM -I/usr/local/lib/glib/include 
-I/usr/local/include -I/usr/X11R6/include    -g -O2 -Wall -c testgtk.c
testgtk.c:7771: `idle' redeclared as different kind of symbol
/usr/include/unistd.h:669: previous declaration of `idle'
testgtk.c:7771: warning: `idle' was declared `extern' and later `static'
make[2]: *** [testgtk.o] Error 1
make[2]: Leaving directory `/tmp/gtk+-1.2.5/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gtk+-1.2.5'
make: *** [all-recursive-am] Error 2
-----------------------------------

Thanks
Kiran


>From: Erik Mouw <J.A.K.Mouw@its.tudelft.nl>
>Reply-To: gtk-list@redhat.com
>To: gtk-list@redhat.com
>Subject: [gtk-list] Re: Glib 1.2.5 COnfigure problem
>Date: Thu, 7 Oct 99 23:48:53 +0200
>
>On Thu, 07 Oct 1999 14:20:04 -0700 (PDT), Linux User wrote:de    -g -O2 
>-Wall -c testgtk.c

> >      After copying the libpthread.so the configure did not give any
> >      error,But make gave the following error..
> >
> > --------------------------------------
> > gthread-posix.c:193: initializer element for
> > `g_thread_functions_for_glib_use_default.cond_broadcast' is not constant
> > gthread-posix.c:194: `pthread_cond_wait' undeclared here (not in a 
>function)
> > gthread-posix.c:194: initializer element for
> > `g_thread_functions_for_glib_use_default.cond_wait' is not constant
> > make[2]: *** [gthread.lo] Error 1
> > make[2]: Leaving directory `/tmp/glib-1.2.5/gthread'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/tmp/glib-1.2.5'
> > make: *** [all-recursive-am] Error 2
> > ---------------------------------------
> >
> >   Any inputs..??
>
>Simply copying the library is not enough, you also need the header files.
>Oh, and better install software with the package manager (I don't know
>what Slackware uses nowadays), because you're messing up the dependencies
>if you do it by hand.
>
>
>Erik
>
>--
>J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
>of Electrical Engineering, Faculty of Information Technology and Systems,
>Delft University of Technology, PO BOX 5031,  2600 GA Delft, The 
>Netherlands
>Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
>WWW: http://www-ict.its.tudelft.nl/~erik/
>
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



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