[EMAIL PROTECTED] wrote:
L.S.,

Trying to install "cmake" on a sun (SunOS kseu1180.europe.shell.com 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Blade-1000), I got the next error :

[  7%] Building C object Source/kwsys/CMakeFiles/testFail.dir/testFail.o
Linking C executable ../../bin/testFail
[  7%] Built target testFail
Scanning dependencies of target testHashSTL
[ 8%] Building CXX object Source/kwsys/CMakeFiles/testHashSTL.dir/testHashSTL.o
Linking CXX executable ../../bin/testHashSTL
Undefined                       first referenced
 symbol                             in file
cmsys::_stl_prime_list /scratch/smart/tmp/cmake-2.4.7/Source/kwsys/CMakeFiles/testHashSTL.dir/SunWS_cache/CC_obj_D/DwHdTM6Z9Njdm30mGNZL.o

[Hint: static member cmsys::_stl_prime_list must be defined in the program]

ld: fatal: Symbol referencing errors. No output written to ../../bin/testHashSTL
*** Error code 1
The following command caused the error:
cd /nobackup/smart/tmp/cmake-2.4.7/Source/kwsys && /opt/SUNWspro/bin/CC -xO4 -dalign -fns -fsimple=1 -xarch=v9 -xchip=ultra3 -lnsl -lsocket -KPIC -xarch=v9 -xchip=ultra3 -lnsl -lsocket "CMakeFiles/testHashSTL.dir/testHashSTL.o" -o ../../bin/testHashSTL -L/nobackup/smart/tmp/cmake-2.4.7/Source/kwsys -Bstatic -lcmsys -Bdynamic -ldl


What version of CC are you using on the Sun? It works for the dashboards we have. Looks like a template problem, you might be able to fix it by trying different template schemes. You could try -pto.

So, clean the build tree or get a fresh source tree (then do an out of source build.). Then:

setenv CXXFLAGS -pt0

mkdir build
cd build
../bootstrap
make

Do the binaries form Kitware work?

-Bill
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to