I should have added the output from CMake:
[ijj87@test-pg buildtop.d]$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/xrootd -DBUILD_TESTS=TRUE
-- Could NOT find READLINE (missing: READLINE_LIBRARY READLINE_INCLUDE_DIR)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- Could NOT find systemd (missing: SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES)
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
-- Could NOT find fuse (missing: FUSE_INCLUDE_DIR FUSE_LIBRARY)
-- Could NOT find Macaroons (missing: MACAROONS_INCLUDES MACAROONS_LIB)
-- checking for module 'json-c'
-- package 'json-c' not found
-- checking for module 'uuid'
-- package 'uuid' not found
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.4")
[I] Determining version from git
-- ----------------------------------------
-- Installation path: /opt/xrootd
-- C Compiler: /usr/bin/cc
-- C++ Compiler: /usr/bin/c++
-- Build type: RelWithDebInfo
-- Plug-in version: 4
--
-- Readline support: libs not found
-- Fuse support: disabled
-- Crypto support: yes
-- Kerberos5 support: yes
-- XrdCl: yes
-- Tests: libs not found
-- HTTP support: yes
-- HTTP TPC support: disabled
-- Macaroons support: disabled
-- CEPH support: yes
-- Python support: disabled
-- ----------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ijj87/SRC/xrootd/buildtop.d
From: [log in to unmask] <[log in to unmask]>
On Behalf Of Ian Johnson - UKRI STFC
Sent: 27 March 2019 13:53
To: [log in to unmask]
Subject: Problem compiling XRootD tests
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
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