Tencent / TBase

TBase is an enterprise-level distributed HTAP database. Through a single database cluster to provide users with highly consistent distributed database services and high-performance data warehouse services, a set of integrated enterprise-level solutions is formed.
Other
1.38k stars 262 forks source link

make error: undefined reference to `Recovery_IsStandby' #6

Closed Toknowledge closed 4 years ago

Toknowledge commented 4 years ago

gtm_store.c: At top level: ../../../src/include/gtm/standby_utils.h:20:13: warning: inline function ‘Recovery_IsStandby’ declared but never defined inline bool Recovery_IsStandby(void); ^~~~~~ /usr/bin/ld: main.o: in function GTM_SigleHandler': /home/zmeng/Work/OpenProject/TBase/src/gtm/main/main.c:408: undefined reference toRecovery_IsStandby' /usr/bin/ld: main.o: in function main': /home/zmeng/Work/OpenProject/TBase/src/gtm/main/main.c:946: undefined reference toRecovery_IsStandby' /usr/bin/ld: /home/zmeng/Work/OpenProject/TBase/src/gtm/main/main.c:979: undefined reference to Recovery_IsStandby' /usr/bin/ld: /home/zmeng/Work/OpenProject/TBase/src/gtm/main/main.c:1013: undefined reference toRecovery_IsStandby' /usr/bin/ld: /home/zmeng/Work/OpenProject/TBase/src/gtm/main/main.c:1033: undefined reference to Recovery_IsStandby' /usr/bin/ld: main.o:/home/zmeng/Work/OpenProject/TBase/src/gtm/main/main.c:1208: more undefined references toRecovery_IsStandby' follow

waters321 commented 4 years ago

我也遇到了这个问题

HuSen8891 commented 4 years ago

我也遇到了这个问题

请问是在什么平台下编译的?

waters321 commented 4 years ago

我也遇到了这个问题

请问是在什么平台下编译的?

Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-48-generic x86_64) Linux 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

waters321 commented 4 years ago

确实是操作系统的原因,换成centos就可以了

weipengffk commented 4 years ago

确实是操作系统的原因,换成centos就可以了

我本来就是centos6.7,还是有这个问题

caseykwang commented 4 years ago

确实是操作系统的原因,换成centos就可以了

我本来就是centos6.7,还是有这个问题

确认一下gcc -v,看一下版本?这个可能是gcc低版本对inline支持的问题。可以把Recovery_IsStandby函数的inline修饰符去掉。

caseykwang commented 4 years ago

确实是操作系统的原因,换成centos就可以了

能否gcc -v,显示一下当前版本?