tcl8.4.14 AIX5.3 xlc 6编译中的错误解决。

在编译tcl8.4.14  64位版本的连接过程中,出现如下错误:
rm -f libtcl8.4.so
/usr/local/bin/tcl8.4.14/unix/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -b64 -o libtcl8.4.so regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixCompat.o tclUnixNotfy.o  tclLoadDl.o  -ldl  -lc  -lbsd   -L/usr/local/lib
noDotA="libtcl8.4.so"
ld: 0711-317 ERROR: Undefined symbol: acos
ld: 0711-317 ERROR: Undefined symbol: asin
ld: 0711-317 ERROR: Undefined symbol: atan
ld: 0711-317 ERROR: Undefined symbol: atan2
ld: 0711-317 ERROR: Undefined symbol: ceil
ld: 0711-317 ERROR: Undefined symbol: cos
ld: 0711-317 ERROR: Undefined symbol: cosh
ld: 0711-317 ERROR: Undefined symbol: exp
ld: 0711-317 ERROR: Undefined symbol: floor
ld: 0711-317 ERROR: Undefined symbol: fmod
ld: 0711-317 ERROR: Undefined symbol: hypot
ld: 0711-317 ERROR: Undefined symbol: log
ld: 0711-317 ERROR: Undefined symbol: log10
ld: 0711-317 ERROR: Undefined symbol: pow
ld: 0711-317 ERROR: Undefined symbol: sin
ld: 0711-317 ERROR: Undefined symbol: sinh
ld: 0711-317 ERROR: Undefined symbol: sqrt
ld: 0711-317 ERROR: Undefined symbol: tan
ld: 0711-317 ERROR: Undefined symbol: tanh
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake: *** [libtcl8.4.so] Error 8

在Makefile 中修改:
LIBS            = -ldl  -lc  $(MATH_LIBS)
为:LIBS            = -ldl  -lc  -lm $(MATH_LIBS)

报错消失。

你可能感兴趣的:(Math,AIX,makefile,Tcl)