Print

Print


Hi,

I’m working with branch stable-4.9.x. I configure the build like so:

 

cmake .. -DCMAKE_INSTALL_PREFIX=/opt/xrootd  -DBUILD_TESTS=TRUE

 

and get the following result:

 

 

Scanning dependencies of target text-runner

[ 97%] Building CXX object tests/common/CMakeFiles/text-runner.dir/TextRunner.cc.o

Linking CXX executable text-runner

CMakeFiles/text-runner.dir/TextRunner.cc.o: In function `printTests(CppUnit::Test const*, std::string)':

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:33: undefined reference to `typeinfo for CppUnit::TestSuite'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:33: undefined reference to `typeinfo for CppUnit::Test'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:40: undefined reference to `CppUnit::TestSuite::getTests() const'

CMakeFiles/text-runner.dir/TextRunner.cc.o: In function `findTest(CppUnit::Test*, std::string const&)':

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:75: undefined reference to `typeinfo for CppUnit::TestSuite'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:75: undefined reference to `typeinfo for CppUnit::Test'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:77: undefined reference to `CppUnit::TestSuite::getTests() const'

CMakeFiles/text-runner.dir/TextRunner.cc.o: In function `main':

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:113: undefined reference to `CppUnit::TestFactoryRegistry::getRegistry(std::string const&)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:125: undefined reference to `CppUnit::TestSuite::TestSuite(std::string)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:134: undefined reference to `CppUnit::TestSuite::addTest(CppUnit::Test*)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:145: undefined reference to `CppUnit::TextTestRunner::TextTestRunner(CppUnit::Outputter*)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:146: undefined reference to `CppUnit::TestRunner::addTest(CppUnit::Test*)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:149: undefined reference to `CppUnit::TextTestRunner::result() const'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:149: undefined reference to `CppUnit::CompilerOutputter::CompilerOutputter(CppUnit::TestResultCollector*, std::ostream&, std::string const&)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:149: undefined reference to `CppUnit::TextTestRunner::setOutputter(CppUnit::Outputter*)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:151: undefined reference to `CppUnit::TextTestRunner::run(std::string, bool, bool, bool)'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:153: undefined reference to `CppUnit::TextTestRunner::~TextTestRunner()'

/home/ijj87/SRC/xrootd/tests/common/TextRunner.cc:153: undefined reference to `CppUnit::TextTestRunner::~TextTestRunner()'

collect2: error: ld returned 1 exit status

make[2]: *** [tests/common/text-runner] Error 1

make[1]: *** [tests/common/CMakeFiles/text-runner.dir/all] Error 2

make: *** [all] Error 2

 

The tests were linking OK last week. I am working on a clean clone, no local code changes. Does anyone know how to successfully link the tests?

 

Best Regards,

Ian Johnson.

 



Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1