[CMake] Problem Compiling on Solaris 10 x86

Christopher Hylarides hylaride at oanda.com
Mon Dec 12 09:21:14 EST 2011


I already had the output for VERBOSE=1 :-)

Here is the output of CMakeCache.txt:


# cat ./cmake-2.8.6/CMakeCache.txt|grep -i curse
//Build the CMake Curses Dialog ccmake
BUILD_CursesDialog:BOOL=ON
CMAKE_FORM_BINARY_DIR:STATIC=/build/packages/cmake/cmake-2.8.6/Source/CursesDialog/form
CMAKE_FORM_SOURCE_DIR:STATIC=/build/packages/cmake/cmake-2.8.6/Source/CursesDialog/form
CURSES_CURSES_H_PATH:PATH=/usr/include
CURSES_CURSES_LIBRARY:FILEPATH=/usr/lib/libcurses.so
CURSES_EXTRA_LIBRARY:FILEPATH=CURSES_EXTRA_LIBRARY-NOTFOUND
CURSES_FORM_LIBRARY:FILEPATH=/usr/lib/libform.so
CURSES_HAVE_CURSES_H:FILEPATH=/usr/include/curses.h
//The curses include path
CURSES_INCLUDE_PATH:FILEPATH=/usr/include
//The curses library
CURSES_LIBRARY:FILEPATH=/usr/lib/libcurses.so
CURSES_NCURSES_LIBRARY:FILEPATH=CURSES_NCURSES_LIBRARY-NOTFOUND
//The curses form library
cmForm_LIB_DEPENDS:STATIC=general;/usr/lib/libcurses.so;
//ADVANCED property for variable: CURSES_CURSES_HAS_WSYNCUP
CURSES_CURSES_HAS_WSYNCUP-ADVANCED:INTERNAL=1
//Have library /usr/lib/libcurses.so
CURSES_CURSES_HAS_WSYNCUP:INTERNAL=1
//ADVANCED property for variable: CURSES_CURSES_LIBRARY
CURSES_CURSES_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CURSES_EXTRA_LIBRARY
CURSES_EXTRA_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CURSES_INCLUDE_PATH
CURSES_INCLUDE_PATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CURSES_LIBRARY
CURSES_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CURSES_NCURSES_LIBRARY
CURSES_NCURSES_LIBRARY-ADVANCED:INTERNAL=1






Christopher Hylarides
Systems Administrator
OANDA Corporation
+1.416.593.6767x327
http://www.oanda.com/

On 11-12-09 5:38 PM, Bill Hoffman wrote:
> 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
>


More information about the CMake mailing list