$ tar xvfz glib-1.2.7.tar.gz
$ cd glib-1.2.7
$ ./configure
(snip)
checking for pthread.h... yes
checking for thread implementation... posix
checking for pthread_attr_init in -lpthread... no
checking for pthread_attr_init in -lpthreads... no
checking for pthread_attr_init in -lc_r... no
checking for pthread_attr_init... no
checking for __d10_pthread_attr_init in -lthread... no
checking for __pthread_attr_init_system in -lpthread... no
configure: error: I can't find the libraries for the thread implementation
posix. Please choose another thread implementation or
provide information on your thread implementation.
You can also run 'configure --disable-threads'
to compile without thread support.
|
$ rm config.cache
$ ./configure
(snip)
checking for pthread.h... yes
checking for thread implementation... posix
checking for pthread_attr_init in -lpthread... yes
checking necessary linker options... -lpthread
checking necessary compiler options... -D_REENTRANT
checking for localtime_r... yes
checking for rand_r... no
checking for getpwuid_r... no
checking whether pthread_getspecific is posix like... yes
checking whether pthread_mutex_trylock is posix like... yes
checking whether pthread_cond_timedwait 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... 24
checking byte contents of pthread_mutex_t... 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
(snip)
|
$ make $ su # make install # exit |
$ tar xvfz glib-1.2.7.tar.gz $ cd glib-1.2.7 $ ./configure $ make $ su # make install # exit |