TUXEDO错误解决方案
2016-03-28 17:35
309 查看
错误1:
root@tfjus:/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
root@tfjus:/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
相关文章推荐
- POST、GET请求中文参数乱码问题
- nodejs save遇到的一个坑
- memcached 的简单使用
- Android生成二维码和扫描二维码zxing
- Integer与int的比较
- Android--Activity生命周期
- thinkphp 3.2 整合PHPEXCEL
- 实现水平滑动,并且动态添加数据
- log4j。日志输出
- C#调用Exe程序示例
- IT专业人士如何高效的学习专业知识
- mini CentOS7 安装 mysql
- 【转】批处理命令 For循环命令详解!
- hdu 1443 Joseph (约瑟夫环)
- css学习--css基础
- kindeditor 上传控件
- 【JQuery】parent > child选择器
- PHP使用smtp发送邮件
- selenium实现多机器部署分布执行
- JSP基础学习(一)