免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3543 | 回复: 6
打印 上一主题 下一主题

编译程序出错,请帮忙啊! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-29 15:01 |只看该作者 |倒序浏览
Occurs error message Compiling program.

oisd1db1>; make -f makefile.ct_cntr_ageing_list
CC=CC buildclient -o ct_cntr_ageing_list -f "ct_cntr_ageing_list.o ois_db_func.o ois_time_func.o" -l "-L/opt/ilog/dblink/lib/sparc_5_5.0/static_pic_mt -ldbov7 -lclntsh -lsql -lsqlnet -lncr -lsqlnet  -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon  -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $ORACLE_HOME/lib/sysliblist` -lthread -lrwtool"
ld: fatal: file ct_cntr_ageing_list.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ct_cntr_ageing_list
CMDTUX_CAT:512: ERROR: Cannot execute C compiler CC -xarch=native64 -xO3 -xbuiltin=%all -I$TUXDIR/include -o ct_cntr_ageing_list   -L${TUXDIR}/lib ct_cntr_ageing_list.o ois_db_func.o ois_time_func.o  -ltux -lbuft -ltux2  -lfml -lfml32 -lgp  -lnsl -lsocket -L/opt/ilog/dblink/lib/sparc_5_5.0/static_pic_mt -ldbov7 -lclntsh -lsql -lsqlnet -lncr -lsqlnet  -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon  -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 -lnsl -lsocket -lgen -ldl -lthread -lrwtool
*** Error code 1
make: Fatal error: Command failed for target `ct_cntr_ageing_list'

Environment viriable is the below:
export TUXEDO=/opt/tuxedo
export LANG=C
export TUXDIR=/opt/tuxedo
export APPDIR=/opt/psa/rel/ois/exe/AGE
export CFLAGS="-xarch=native64 -xO3 -xbuiltin=%all"
export TUXCONFIG=/opt/psa/rel/ois/exe/AGE/tuxconfig
export CC=/opt/SUNWspro/bin/CC
export PATH=/usr/5bin:/usr/bin:/usr/ucb:/opt/sfw/bin:/opt/tuxedo/bin:/usr/ccs/b
in:/etcORACLE_HOME/bin:/opt/SUNWspro/binHOME/bin:/usr/sbin:/export/home/dbh
r:/opt/jdk1.4.2/bin:.
export CLASSPATH=/opt/psa/rel/ois/java:/opt/psa/rel/ois/java/ojdbc14.jar:/opt/p
sa/rel/ois/java/psaPack.jar:/opt/jdk1.4.2/lib:.
export LD_LIBRARY_PATH=/opt/SUNWspro/lib:/opt/tuxedo/libORACLE_HOME/lib:/usr/
dt/lib:/usr/ucblib:/lib:/usr/openwin/lib:/usr/lib:.

How should I to do it ?

论坛徽章:
0
2 [报告]
发表于 2004-04-29 15:14 |只看该作者

编译程序出错,请帮忙啊!

CC=CC buildclient -o ct_cntr_ageing_list -f "ct_cntr_ageing_list.o ois_db_func.o ois_time_func.o" ....

change to

CC=CC buildclient -o ct_cntr_ageing_list -f ct_cntr_ageing_list.o -f ois_db_func.o -f ois_time_func.o ....

论坛徽章:
0
3 [报告]
发表于 2004-04-29 16:03 |只看该作者

编译程序出错,请帮忙啊!

Thank you, lizuoyong     

But I had tried it by your method, the issue still exist. The two kinds of method should be same, aren't they?

论坛徽章:
0
4 [报告]
发表于 2004-04-29 16:37 |只看该作者

编译程序出错,请帮忙啊!

If  ct_cntr_ageing_list.c is compiled

in the same environment ?

论坛徽章:
0
5 [报告]
发表于 2004-04-29 17:19 |只看该作者

编译程序出错,请帮忙啊!

Yes!

I migration program from solaris 2.6 to 2.9, when I compile program without environment viriable "export CFLAGS="-xarch=native64 -xO3 -xbuiltin=%all" "

ld: fatal: file ct_cntr_ageing_list.o: wrong ELF class: ELFCLASS64

When I add the viriable, error message :
ld: fatal: file ct_cntr_ageing_list.o: wrong ELF class: ELFCLASS32
And I get the below information about the error:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::
(I assume you want a 64-bit build.  It'll run faster, but if you need
32-bits to be compatible with other stuff you can add "ABI=32" to the
configure.  See the manual on ABI and ISA.)

How to add "ABI=32" to the configure ?

论坛徽章:
0
6 [报告]
发表于 2004-04-30 09:43 |只看该作者

编译程序出错,请帮忙啊!

Help me!!! Thanks

论坛徽章:
0
7 [报告]
发表于 2004-04-30 11:33 |只看该作者

编译程序出错,请帮忙啊!

我对c++不熟,虽然网上有不少相关帖子,但是我不太明白应该怎么做!
这种在移植中位数冲突应该是一种常见的问题,怎么就没人帮我呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP