AIX 5.3 g++ 4.2.4/4.3.3 编译错误: Undefined symbol: _ukey_enable

发布于 2022-09-19 01:57:27 字数 3370 浏览 11 评论 3

在AIX5.3上要编译使用了tinyxml和多线程的应用,g++ 4.2.4和4.3.3报不同的错误,4.2.4说_ukey_enable符号未定义,而4.3.3说没有虚函数表符号,

各位帮忙看看,是什么问题?多谢了!
==============================os information===============================
-bash-3.2# oslevel -s
5300-03-00
-bash-3.2# /usr/local/gcc433/bin/g++ -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: /usr/local/gcc_build/gcc-4.3.3/configure --prefix=/usr/local/gcc433 --enable-languages=c,c++ --with-gmp=/usr/local/gmp32 --with-mpfr=/usr/local/mpfr32
Thread model: aix
gcc version 4.3.3 (GCC)
-bash-3.2# g++ -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.2.4/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.2.4

=====================compile error=====================

+(1)this part comes from the g++(4.24),i searched in google and didn't get any useful information.+

-bash-3.2# g++ -o xmltest -O2 -static -I ../../../include -I ../../../include/plugin -I ../../../include/tinyxml -D _THREAD_SAFE ../../../source/tinyxml/tinyxml.cpp ../../../source/tinyxml/tinyxmlerror.cpp ../../../source/tinyxml/tinyxmlparser.cpp ../../../source/common/log_manager.cpp ../../../source/common/log_print.cpp ../../../source/common/file_manager.cpp ../../../source/common/directory.cpp ../../../source/common/xml.cpp ../../../source/common/utils.cpp ../../../source/common/child_process.cpp ../../../source/common/critical_section.cpp xmltest.cpp -lpthread
ld: 0711-317 ERROR: Undefined symbol: _ukey_enable
ld: 0711-317 ERROR: Undefined symbol: skeytune
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
-bash-3.2#

+(2)this part comes from g++(4.3.3), these two version gcc just tell completely different error+

-bash-3.2# /usr/local/gcc433/bin/g++ -o xmltest -O2 -I ../../../include -I ../../../include/plugin -I ../../../include/tinyxml -D _THREAD_SAFE ../../../source/tinyxml/tinyxml.cpp ../../../source/tinyxml/tinyxmlerror.cpp ../../../source/tinyxml/tinyxmlparser.cpp ../../../source/common/log_manager.cpp ../../../source/common/log_print.cpp ../../../source/common/file_manager.cpp ../../../source/common/directory.cpp ../../../source/common/xml.cpp ../../../source/common/utils.cpp ../../../source/common/child_process.cpp ../../../source/common/critical_section.cpp xmltest.cpp -L../../../lib/aix5.3/2004 -lpthread

ld: 0711-317 ERROR: Undefined symbol: typeinfo for TiXmlNode
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlText
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlDeclaration
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlComment
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlUnknown
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlAttribute
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlDocument
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

甜扑 2022-09-19 20:07:23

http://www.aixchina.net/?1630/viewspace-12615.html
从这个帖子里,我能给出的建议就是下载补丁包升级一下系统。
只能是试一试,好不好用不知道。

毁梦 2022-09-19 19:18:50

回复 2# prolj

    什么意思呀?是换用xlc编译器么?

安静被遗忘 2022-09-19 15:56:19

XLc情何以堪啊!
维护AIX port的maintainer是谁?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文