程序启动core dump,报aCC runtime: Use of "-mt" must be....
系统环境:HP-UX B.11.23 U ia64
编译环境:
aCC: HP aC++/ANSI C B3910B A.06.10
编译选项:
export CXXFLAGS="-AA -mt -g0"
export LDFLAGS="-AA -mt -lstd_v2 -lCsup -lcl -lnsl -lunwind"
程序启动时报:aCC runtime: Use of "-mt" must be consistent during both compilation and linking.
footprints检查发现-mt全部on
同样的程序在另外2台机器上正常运行,aC++ Runtime 版本如下:
有问题的那台:PHSS_31855 aC++ Runtime (IA: A.05.61, PA A.03.61)
正常的两台 :PHSS_35055 aC++ Runtime (IA: A.06.10, PA: A.03.71)
PHSS_35978 aC++ Runtime (IA: A.06.14, PA: A.03.76)
生产环境不让打补丁,另那台有问题的机器上其它程序都正常运行不会包上面那个错,很费解,望牛人帮忙解答。 自己顶先,求解,急...... 如果编译和链接的时候mt都一样,那么还是先考虑打补丁吧。那个补丁安装了不需要重启~另外可以核对一下两台机器libc和linker对应的补丁号差多少。。 谢谢回复
有问题那台:
PHCO_31642 Japanese libc manpages
PHCO_31700 libc cumulative message catalog files patch
PHCO_32488 Libc enablements for VxFS4.1
PHCO_32519 libc manpage cumulative patch
PHCO_31629 linker/compile manpages
PHCO_31664 Japanese linker/compiler manpages
PHSS_34353 linker + fdp cumulative patch
正常a:
PHCO_31642 Japanese libc manpages
PHCO_31700 libc cumulative message catalog files patch
PHCO_32488 Libc enablements for VxFS4.1
PHCO_32519 libc manpage cumulative patch
PHCO_31629 linker/compile manpages
PHCO_31664 Japanese linker/compiler manpages
PHSS_37947 linker + fdp cumulative patch
正常b:
PHCO_31700 libc cumulative message catalog files patch
PHCO_32519 libc manpage cumulative patch
PHCO_33710 cumulative 10.20 libc compatibility support
PHCO_33991 Japanese libc manpages
PHCO_34599 libc cumulative patch
PHCO_31664 Japanese linker/compiler manpages
PHCO_33763 linker/compile English manpages
PHSS_39821 linker + fdp cumulative patch 服务器升级完aC++ Runtime问题解决
应该是链接ACE 需要 -lpthread
PHSS_31855这个版本 -lpthread有问题
页:
[1]