From: Magorn <ma...@gm...> - 2011-12-19 14:50:48
|
Hi, I have problem when i want toi compile 0.9.6 version. I have this error : gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -L../../common -L../../libpq -lpthread main.o gtm_thread.o gtm_txn.o gtm_seq.o gtm_snap.o gtm_time.o gtm_standby.o ../libpq/libpqcomm.a ../path/libgtmpath.a ../recovery/libgtmrecovery.a ../client/libgtmclient.a ../common/libgtm.a -o gtm main.o: In function `MainThreadInit': main.c:(.text+0x13): undefined reference to `pthread_key_create' main.c:(.text+0x9a): undefined reference to `pthread_setspecific' main.o: In function `BaseInit': main.c:(.text+0x11f): undefined reference to `pthread_getspecific' main.o: In function `GTM_ThreadMain': main.c:(.text+0x1157): undefined reference to `pthread_getspecific' main.c:(.text+0x1167): undefined reference to `pthread_getspecific' main.c:(.text+0x13b2): undefined reference to `pthread_getspecific' main.c:(.text+0x13d0): undefined reference to `pthread_getspecific' main.o:main.c:(.text+0x13e8): more undefined references to `pthread_getspecific' follow gtm_thread.o: In function `GTM_ThreadCreate': gtm_thread.c:(.text+0x465): undefined reference to `pthread_create' gtm_thread.o: In function `GTM_ThreadJoin': gtm_thread.c:(.text+0x4e6): undefined reference to `pthread_join' gtm_thread.o: In function `GTM_ThreadCleanup': gtm_thread.c:(.text+0x682): undefined reference to `pthread_setspecific' gtm_thread.o: In function `GTM_ThreadMainWrapper': gtm_thread.c:(.text+0x6b0): undefined reference to `pthread_detach' gtm_thread.c:(.text+0x6c4): undefined reference to `pthread_setspecific' gtm_thread.c:(.text+0x6d1): undefined reference to `pthread_getspecific' gtm_thread.c:(.text+0x739): undefined reference to `__pthread_register_cancel' gtm_thread.c:(.text+0x759): undefined reference to `__pthread_unregister_cancel' gtm_txn.o: In function `GTM_GetGIDData': gtm_txn.c:(.text+0x170a): undefined reference to `pthread_getspecific' gtm_txn.c:(.text+0x177d): undefined reference to `pthread_getspecific' gtm_txn.o: In function `ProcessBeginTransactionCommand': gtm_txn.c:(.text+0x1865): undefined reference to `pthread_getspecific' gtm_txn.o: In function `ProcessBeginTransactionGetGXIDCommand': gtm_txn.c:(.text+0x19e6): undefined reference to `pthread_getspecific' gtm_txn.c:(.text+0x1bb4): undefined reference to `pthread_getspecific' gtm_txn.o:gtm_txn.c:(.text+0x1bd5): more undefined references to `pthread_getspecific' follow ../common/libgtm.a(gtm_lock.o): In function `GTM_RWLockAcquire': gtm_lock.c:(.text+0x25): undefined reference to `pthread_rwlock_wrlock' gtm_lock.c:(.text+0x36): undefined reference to `pthread_rwlock_rdlock' ../common/libgtm.a(gtm_lock.o): In function `GTM_RWLockRelease': gtm_lock.c:(.text+0x8b): undefined reference to `pthread_rwlock_unlock' ../common/libgtm.a(gtm_lock.o): In function `GTM_RWLockInit': gtm_lock.c:(.text+0xb4): undefined reference to `pthread_rwlock_init' ../common/libgtm.a(gtm_lock.o): In function `GTM_RWLockDestroy': gtm_lock.c:(.text+0xce): undefined reference to `pthread_rwlock_destroy' ../common/libgtm.a(gtm_lock.o): In function `GTM_RWLockConditionalAcquire': gtm_lock.c:(.text+0xf9): undefined reference to `pthread_rwlock_trywrlock' gtm_lock.c:(.text+0x10a): undefined reference to `pthread_rwlock_tryrdlock' ../common/libgtm.a(gtm_lock.o): In function `GTM_MutexLockConditionalAcquire': gtm_lock.c:(.text+0x1d6): undefined reference to `pthread_mutex_trylock' ../common/libgtm.a(gtm_list.o): In function `new_list': gtm_list.c:(.text+0x52): undefined reference to `pthread_getspecific' gtm_list.c:(.text+0x83): undefined reference to `pthread_getspecific' ../common/libgtm.a(gtm_list.o): In function `new_head_cell': gtm_list.c:(.text+0xdc): undefined reference to `pthread_getspecific' ../common/libgtm.a(gtm_list.o): In function `new_tail_cell': gtm_list.c:(.text+0x13a): undefined reference to `pthread_getspecific' ../common/libgtm.a(gtm_list.o): In function `add_new_cell': gtm_list.c:(.text+0x1f0): undefined reference to `pthread_getspecific' ../common/libgtm.a(gtm_list.o):gtm_list.c:(.text+0xc0e): more undefined references to `pthread_getspecific' follow collect2: ld returned 1 exit status make[3]: *** [gtm] Error 1 make[3]: Leaving directory `/home/pgxc/pgxc-0.9.6/src/gtm/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/pgxc/pgxc-0.9.6/src/gtm' make[1]: *** [all-gtm-recurse] Error 2 make[1]: Leaving directory `/home/pgxc/pgxc-0.9.6/src' make: *** [all-src-recurse] Error 2 I use ubuntu server 11.10 64 bits. Make version : GNU Make 3.81 Regards, -- Magorn |