jianhao - 2007-04-26

We want to compile 64bits cppunit on Solaris10 using CC5.8 in our X86 computer. Following is the configure command line:
./configure CXX=CC CXXFLAGS="-pta -instances=static -mt -xarch=amd64 -g -features=no%transitions -xildoff" LD=CC LDFLAGS="-xildoff -L/opt/SUNWspro/lib/amd64 -64" CC=CC

and then make it. at the last of make process, errors ocures.

ld: 致命的: 文件 .libs/AdditionalMessage.o:错误的 ELF 类型:ELFCLASS64
ld: 致命的: 文件处理错误。无输出写到.libs/libcppunit-1.12.so.0.0.0

make: Fatal error: Command failed for target `libcppunit.la'
Current working directory /export/home/csp/cppunit-1.12.0/src/cppunit
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/csp/cppunit-1.12.0/src
make: Fatal error: Command failed for target `all-recursive'

*** Error code 1
*** Error code 1
The following command caused the error:
failcom='exit 1'; \ for f in x $MAKEFLAGS; do \   case $f in \     *=* | --[!k]*);; \     *k*) failcom='fail=yes';; \   esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='cppunit DllPlugInTester'; for subdir in $list; do \   echo "Making $target in $subdir"; \   if test "$subdir" = "."; then \     dot_seen=yes; \     local_target="$target-am"; \   else \     local_target="$target"; \   fi; \   (cd $subdir && make  $local_target) \   || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \   make  "$target-am" || exit 1; \ fi; test -z "$fail"
*** Error code 1
The following command caused the error:
failcom='exit 1'; \ for f in x $MAKEFLAGS; do \   case $f in \     *=* | --[!k]*);; \     *k*) failcom='fail=yes';; \   esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='src include examples doc'; for subdir in $list; do \   echo "Making $target in $subdir"; \   if test "$subdir" = "."; then \     dot_seen=yes; \     local_target="$target-am"; \   else \     local_target="$target"; \   fi; \   (cd $subdir && make  $local_target) \   || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \   make  "$target-am" || exit 1; \ fi; test -z "$fail"

I want to know how can I finish it.