CVS glib



I am getting the following errors from configure of glib and make:

>From configure:

checking whether pthread_getspecific is posix like... yes
configure: warning: the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
                functions will not be MT-safe during their first call
because
                there is no working 'getpwuid_r' on your system.
checking size of pthread_mutex_t... (cached) 4

and from make:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gthread
-DG_LOG_DOMAIN=\"GThread\" -g -O2 -Wall -D_REENTRANT
-Wp,-MD,.deps/gthread.pp -c -fPIC -DPIC gthread.c -o gthread.lo
gthread-posix.c: In function `g_mutex_new_posix_impl':
In file included from gthread.c:35:
gthread-posix.c:48: warning: implicit declaration of function
`pthread_mutex_init'
gthread-posix.c: In function `g_mutex_free_posix_impl':
gthread-posix.c:55: warning: implicit declaration of function
`pthread_mutex_destroy'
gthread-posix.c: In function `g_mutex_trylock_posix_impl':
gthread-posix.c:71: warning: implicit declaration of function
`pthread_mutex_trylock'
gthread-posix.c: In function `g_cond_new_posix_impl':
gthread-posix.c:82: `pthread_cond_t' undeclared (first use this
function)
gthread-posix.c:82: (Each undeclared identifier is reported only once
gthread-posix.c:82: for each function it appears in.)
gthread-posix.c:82: parse error before `)'
gthread-posix.c:83: warning: implicit declaration of function
`pthread_cond_init'
gthread-posix.c:83: parse error before `)'
gthread-posix.c: In function `g_cond_timed_wait_posix_impl':
gthread-posix.c:116: warning: implicit declaration of function
`pthread_cond_timedwait'
gthread-posix.c:116: `pthread_cond_t' undeclared (first use this
function)
gthread-posix.c:116: parse error before `)'
gthread-posix.c:100: warning: `result' might be used uninitialized in
this function
gthread-posix.c: In function `g_cond_free_posix_impl':
gthread-posix.c:128: warning: implicit declaration of function
`pthread_cond_destroy'
gthread-posix.c:128: `pthread_cond_t' undeclared (first use this
function)
gthread-posix.c:128: parse error before `)'
gthread-posix.c: In function `g_private_new_posix_impl':
gthread-posix.c:136: warning: implicit declaration of function
`pthread_key_create'
gthread-posix.c: In function `g_private_set_posix_impl':
gthread-posix.c:150: warning: implicit declaration of function
`pthread_setspecific'
gthread-posix.c: At top level:
gthread-posix.c:172: `pthread_mutex_lock' undeclared here (not in a
function)
gthread-posix.c:172: initializer element for
`g_thread_functions_for_glib_use_default.mutex_lock' is not constant
gthread-posix.c:174: `pthread_mutex_unlock' undeclared here (not in a
function)
gthread-posix.c:174: initializer element for
`g_thread_functions_for_glib_use_default.mutex_unlock' is not constant
gthread-posix.c:177: `pthread_cond_signal' undeclared here (not in a
function)
gthread-posix.c:177: initializer element for
`g_thread_functions_for_glib_use_default.cond_signal' is not constant
gthread-posix.c:178: `pthread_cond_broadcast' undeclared here (not in a
function)
gthread-posix.c:178: initializer element for
`g_thread_functions_for_glib_use_default.cond_broadcast' is not constant
gthread-posix.c:179: `pthread_cond_wait' undeclared here (not in a
function)
gthread-posix.c:179: 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 `/usr/src/gnomecvs/glib/gthread'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnomecvs/glib'
make: *** [all-recursive-am] Error 

I can see that the configure says I have no working  'getpwuid_r' on my
system and that is my problem, but how do 
I fix this?

Thanks



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