TUXEDO错误解决方案

Posted 杰克思勒(Jacksile)

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TUXEDO错误解决方案相关的知识,希望对你有一定的参考价值。

错误1:

[email protected]:/opt/tuxedo/simpapp# buildclient -f simpcl.c -o simpcl
simpcl.c: In function ‘main‘:
simpcl.c:43:12: warning: incompatible implicit declaration of built-in function ‘strlen‘ [enabled by default]
sendlen = strlen(argv[1]);
^
simpcl.c:60:9: warning: incompatible implicit declaration of built-in function ‘strcpy‘ [enabled by default]
(void) strcpy(sendbuf, argv[1]);
^
/opt/tuxedo/tuxedo11gR1/lib/libengine.so: undefined reference to `dlopen‘
/opt/tuxedo/tuxedo11gR1/lib/libengine.so: undefined reference to `dlclose‘
/opt/tuxedo/tuxedo11gR1/lib/libengine.so: undefined reference to `dlerror‘
/opt/tuxedo/tuxedo11gR1/lib/libengine.so: undefined reference to `dlsym‘
collect2: error: ld returned 1 exit status
CMDTUX_CAT:512: ERROR: Cannot execute C compiler cc -I$TUXDIR/include -o simpcl -L${TUXDIR}/lib simpcl.c -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread

遇见到这个错误,是因为ubuntu不是tuxedo支持的平台,在编译客户端程序的时候,需要执行下面的编译命令
buildclient -o simpcl -f "-Xlinker --no-as-needed simpcl.c"
具体解释请参见
https://forums.oracle.com/forums/thread.jspa?threadID=2344582

以上是关于TUXEDO错误解决方案的主要内容,如果未能解决你的问题,请参考以下文章

tuxedo入门

tuxedo 12c 安装

关于tuxedo的安装

tuxedo启动相关的知识

Tuxedo:Tuxedo支持的分布式通信方式

tuxedo的常用启停参数讲解日志查看