Need help with gcc c++ issue

Orion Poplawski orion at cora.nwra.com
Mon Feb 16 15:33:48 UTC 2015


Trying to build cmake, getting:

/usr/bin/g++   -O2 -g -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
--param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic 
CMakeFiles/ccmake.dir/CursesDialog/cmCursesOptionsWidget.cxx.o 
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 
-rdynamic libCMakeLib.a -lform -lncurses kwsys/libcmsys.a -ldl -lexpat 
-lz -larchive ../Utilities/cmcompress/libcmcompress.a -lcurl 
/usr/lib64/libjsoncpp.so
libCMakeLib.a(cmGlobalGenerator.cxx.o): In function 
`cmGlobalGenerator::WriteSummary(cmTarget*)':
/builddir/build/BUILD/cmake-3.2.0-rc1/Source/cmGlobalGenerator.cxx:2906: 
undefined reference to 
`Json::Value::Value(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
/builddir/build/BUILD/cmake-3.2.0-rc1/Source/cmGlobalGenerator.cxx:2926: 
undefined reference to 
`Json::Value::Value(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
/builddir/build/BUILD/cmake-3.2.0-rc1/Source/cmGlobalGenerator.cxx:2956: 
undefined reference to 
`Json::Value::Value(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
/builddir/build/BUILD/cmake-3.2.0-rc1/Source/cmGlobalGenerator.cxx:2967: 
undefined reference to 
`Json::Value::Value(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status

Is this because it's not using -std=gnu++14 in the link line (as it does 
when compiling)?  Does jsoncpp need to be rebuilt with gcc 5/c++11?  Is 
cmake calling json::value::value() incorrectly?

http://koji.fedoraproject.org/koji/getfile?taskID=8947075&name=build.log

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the devel mailing list