Errors by compiling glib-1.2.3



Hi all,

during compiling glib-1.2.3 I get the following messages:

/usr/src/glib-1.2.3/gthread/testgthread.c:89: undefined reference to
`pthread_create'
testgthread.o: In function `test_private':
/usr/src/glib-1.2.3/gthread/testgthread.c:197: undefined reference to
`pthread_join'
.libs/libgthread.so: undefined reference to `pthread_getspecific'
.libs/libgthread.so: undefined reference to `pthread_key_create'
.libs/libgthread.so: undefined reference to `pthread_mutex_trylock'
.libs/libgthread.so: undefined reference to `pthread_cond_timedwait'
.libs/libgthread.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
make[2]: *** [testgthread] Error 1
make[2]: Leaving directory `/usr/src/glib-1.2.3/gthread'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/glib-1.2.3'
make: *** [all-recursive-am] Error 2

I have a SuSE-6.0-system with glibc6 and kernel 2.0.36 installed. In 
/usr/lib are the following libraries:

-rw-r--r-- 401084 Feb 16 23:16 libpthread.a
lrwxrwxrwx     17 Jun 21 23:23 libpthread.so -> libpthread.so.0.5
lrwxrwxrwx     17 Jun 21 23:08 libpthread.so.0 -> libpthread.so.0.5
-rwxr-xr-x  53240 Jun 21 23:05 libpthread.so.0.5
-rwxr-xr-x 106404 Jun 21 23:05 libpthreads.so
lrwxrwxrwx     21 Jun 21 23:08 libpthreads.so.1 -> libpthreads.so.1.60.4
-rwxr-xr-x 106404 Jun 21 23:05 libpthreads.so.1.60.4

Why I can't compile glib ? What can I do ?

CU
  Peter



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