[CMake] Problem Compiling on Solaris 10 x86

Bill Hoffman bill.hoffman at kitware.com
Fri Dec 9 17:38:00 EST 2011


On 12/9/2011 3:43 PM, Christopher Hylarides wrote:
> Hey guys,
>
> I'm trying to build cmake on Solaris 10 x86 and am getting the following
> error:
>
> [ 94%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o
> [ 95%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o
> [ 95%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesPathWidget.cxx.o
> [ 95%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.cxx.o
> [ 95%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o
> [ 96%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o
> Linking CXX executable ../bin/ccmake
> Undefined first referenced
> symbol in file
> wattr_on CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o
> wattr_off CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o
> ld: fatal: Symbol referencing errors. No output written to ../bin/ccmake
> collect2: ld returned 1 exit status
> make[2]: *** [bin/ccmake] Error 1
> make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> Below is with VERBOSE=1
>
>
> [ 95%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o
> cd /build/packages/cmake/cmake-2.8.6/Source && /build/system/bin/g++
> -DCURL_STATICLIB -DLIBARCHIVE_STATIC -DCMAKE_BUILD_WITH_CMAKE
> -I/build/packages/cmake/cmake-2.8.6/Utilities
> -I/build/packages/cmake/cmake-2.8.6/Source
> -I/build/packages/cmake/cmake-2.8.6/Utilities/cmcompress
> -I/build/packages/cmake/cmake-2.8.6/Source/CTest
> -I/build/packages/cmake/cmake-2.8.6/Source/CursesDialog/form -o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o -c
> /build/packages/cmake/cmake-2.8.6/Source/CursesDialog/cmCursesWidget.cxx
> /build/packages/cmake/cmake-2.8.6/Bootstrap.cmk/cmake -E
> cmake_progress_report /build/packages/cmake/cmake-2.8.6/CMakeFiles 41
> [ 96%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o
> cd /build/packages/cmake/cmake-2.8.6/Source && /build/system/bin/g++
> -DCURL_STATICLIB -DLIBARCHIVE_STATIC -DCMAKE_BUILD_WITH_CMAKE
> -I/build/packages/cmake/cmake-2.8.6/Utilities
> -I/build/packages/cmake/cmake-2.8.6/Source
> -I/build/packages/cmake/cmake-2.8.6/Utilities/cmcompress
> -I/build/packages/cmake/cmake-2.8.6/Source/CTest
> -I/build/packages/cmake/cmake-2.8.6/Source/CursesDialog/form -o
> CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o -c
> /build/packages/cmake/cmake-2.8.6/Source/CursesDialog/ccmake.cxx
> Linking CXX executable ../bin/ccmake
> cd /build/packages/cmake/cmake-2.8.6/Source &&
> /build/packages/cmake/cmake-2.8.6/Bootstrap.cmk/cmake -E
> cmake_link_script CMakeFiles/ccmake.dir/link.txt --verbose=1
> /build/system/bin/g++
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesBoolWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesCacheEntryComposite.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesDummyWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesFilePathWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesForm.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesLabelWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesPathWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o
> CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o -o ../bin/ccmake
> libCMakeLib.a CursesDialog/form/libcmForm.a kwsys/libcmsys.a
> ../Utilities/cmexpat/libcmexpat.a
> ../Utilities/cmlibarchive/libarchive/libcmlibarchive.a -lmd
> ../Utilities/cmbzip2/libcmbzip2.a
> ../Utilities/cmcompress/libcmcompress.a ../Utilities/cmcurl/libcmcurl.a
> ../Utilities/cmzlib/libcmzlib.a -ldl -lsocket -lnsl -lcurses
> Undefined first referenced
> symbol in file
> wattr_on CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o
> wattr_off CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o
> ld: fatal: Symbol referencing errors. No output written to ../bin/ccmake
> collect2: ld returned 1 exit status
> make[2]: *** [bin/ccmake] Error 1
> make[2]: Leaving directory `/build/packages/cmake/cmake-2.8.6'
> make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
> make[1]: Leaving directory `/build/packages/cmake/cmake-2.8.6'
> make: *** [all] Error 2
>
>
>
>
>
Looks like an issue with the curses library.  Can you do a make 
VERBOSE=1?  Also look in the CMakeCache.txt and see what curses library 
it has found.  Looks like the headers might not match your library...

-Bill

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list