如何解决Apache Thrift 在 AIX7.2 服务器上安装失败
不知何故,“https://github.com/apache/thrift”上没有“问题”选项卡,所以我会在这里提问,看看是否有人可以帮助我解决 Apache Thrift 安装问题。
我尝试按照在我的 AIX7.2 服务器上安装 Apache Thrift 的说明进行操作。 ./bootstrap.sh
步骤已顺利完成。尽管 ./configure --with-boost=/usr/local
步骤中存在一些致命错误,但 config.log 文件的最后一行显示 configure: exit 0
所以我希望配置步骤没问题。我的问题是 make
步骤。它失败并出现以下错误:
libtool: compile: g++ -std=c++11 -DHAVE_CONFIG_H -I/usr/local/include -I/usr/include -I./src -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -g -O2 -MT src/thrift/TApplicationException.lo -MD -MP -MF src/thrift/.deps/TApplicationException.Tpo -c src/thrift/TApplicationException.cpp -fPIC -DPIC -o src/thrift/.libs/TApplicationException.o
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/ext/string_conversions.h:41,from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/bits/basic_string.h:6400,from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/string:52,from ./src/thrift/Thrift.h:37,from ./src/thrift/TApplicationException.h:23,from src/thrift/TApplicationException.cpp:20:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/cstdlib:151:11: error: '::malloc' has not been declared
using ::malloc;
^~~~~~
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/cstdlib:164:11: error: '::realloc' has not been declared
using ::realloc;
^~~~~~~
据我所知,/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/cstdlib 中的第 151 行和第 164 行有 using ::malloc;
和 using ::realloc;
以及许多其他 using
语句。下面是从第 151 行复制到第 164 行。
using ::malloc;
#ifdef _GLIBCXX_HAVE_MBSTATE_T
using ::mblen;
using ::mbstowcs;
using ::mbtowc;
#endif // _GLIBCXX_HAVE_MBSTATE_T
using ::qsort;
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_QUICK_EXIT
using ::quick_exit;
# endif
#endif
using ::rand;
using ::realloc;
它有什么问题以及如何修复它?
谢谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。