gperftools安装显示错误/src/gperfbase/linuxthreads.cc

2019-04-15 16:18发布

平台系统:CentOS Linux release 7.4.1708 Common/ThirdParty/gperftools-2.0/src/gperfbase/linuxthreads.cc:94: error:
invalid conversion from ‘void (*)(int, siginfo_t*, void*)’ to ‘void (*)(int, siginfo*, void*)’ [-fpermissive]
产生原因:缺少32位的libc6库
解决办法:本地被设置禁止安装32位库,所以离线安装有点麻烦,就采取下列的解决方法 修改linuxthreads.cc static void SignalHandler(int signum, siginfo_t *si, void *data) {static void SignalHandler(int signum, siginfo *si, void *data) {