I am trying to compile glib-1.2.9 on Solaris 5.8 using gcc version 2.95.2. I am getting errors compiling gthread.c. Errors are as follows:
gthread-solaris.c: In function `g_mutex_new_solaris_impl': gthread-solaris.c:52: `mutex_t' undeclared (first use in this function) gthread-solaris.c:52: (Each undeclared identifier is reported only once gthread-solaris.c:52: for each function it appears in.) gthread-solaris.c:52: parse error before `)' gthread-solaris.c:53: warning: implicit declaration of function `mutex_init' gthread-solaris.c:53: parse error before `)' gthread-solaris.c: In function `g_mutex_free_solaris_impl': gthread-solaris.c:60: warning: implicit declaration of function `mutex_destroy' gthread-solaris.c:60: `mutex_t' undeclared (first use in this function) gthread-solaris.c:60: parse error before `)' . . . The files thread.h and pthread.h are in /usr/include. I notice that mutex_t is defined in /usr/include/synch.h. I included this file in gthread-solaris.c but still get the following errors: In file included from gthread.c:42: gthread-solaris.c: In function `g_private_new_solaris_impl': gthread-solaris.c:138: `thread_key_t' undeclared (first use in this function) gthread-solaris.c:138: (Each undeclared identifier is reported only once gthread-solaris.c:138: for each function it appears in.) gthread-solaris.c:138: parse error before `)' gthread-solaris.c:139: warning: implicit declaration of function `thr_keycreate' gthread-solaris.c:139: parse error before `)' gthread-solaris.c: In function `g_private_set_solaris_impl': gthread-solaris.c:153: warning: implicit declaration of function `thr_setspecific' gthread-solaris.c:153: `thread_key_t' undeclared (first use in this function) gthread-solaris.c:153: parse error before `)' gthread-solaris.c: In function `g_private_get_solaris_impl': gthread-solaris.c:164: warning: implicit declaration of function `thr_getspecific' gthread-solaris.c:164: `thread_key_t' undeclared (first use in this function) gthread-solaris.c:164: parse error before `)' Should I be configuring for the use of POSIX threads or is there some other problem? Note, I am not a subscriber to this list so replies cc'ed to me are appreciated. Thanks very much, Dan Schenck ================================================= Dan Schenck mailto:[EMAIL PROTECTED] Technical Principal The Information Store http://www.istore.com 10777 Westheimer, Suite 1040 Houston, TX 77042 Ph: 713 787-6798 x166 Fax: 713 787-6772 ================================================= _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list