make时提示pthread的错误,在线等

xxjnetwork xxjnetwork 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
错误如下
gtm_txn.o: In function `GTM_BeginTransactionMulti':
gtm_txn.c:(.text+0xe09): undefined reference to `pthread_getspecific'
gtm_txn.o: In function `GTM_GetGIDData':
gtm_txn.c:(.text+0x15af): undefined reference to `pthread_getspecific'
gtm_txn.o: In function `ProcessBeginTransactionCommand':
gtm_txn.c:(.text+0x16fa): undefined reference to `pthread_getspecific'
gtm_txn.o: In function `ProcessBeginTransactionGetGXIDCommand':
gtm_txn.c:(.text+0x187b): undefined reference to `pthread_getspecific'
gtm_txn.c:(.text+0x1a49): undefined reference to `pthread_getspecific'
gtm_txn.o:gtm_txn.c:(.text+0x1a6a): 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



我知道是pthread的问题,问题是我在ubuntu已经安装这个库了,用man -k也可以查看到pthread_getspecific等这些方法,
xjxia@xjxia:~/postgres-xc$ ls -la /usr/lib/libboost_thread.so
lrwxrwxrwx 1 root root 25 2011-06-04 05:30 /usr/lib/libboost_thread.so -> libboost_thread.so.1.46.1
这个也是有的
xjxia@xjxia:~/postgres-xc$ whereis pthread
pthread: /usr/include/pthread.h



为什么make还是报错,求大神帮忙,在线等
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
xxjnetwork
C语言 70,040 成员 243,237 内容