cms-gem-daq-project / xhal

XHAL interface library
0 stars 10 forks source link

xDAQ15 brings log4cplus 2.0 #116

Closed jsturdy closed 5 years ago

jsturdy commented 5 years ago

Brief summary of issue

Testing compilation of cmsgemos on cc7 with xdaq15 beta release results in a failure because current xhal can't be installed:

Error: Package: xhal-3.2.2-1.0.102.dev.4adab12git.centos7.gcc4_8_5.x86_64 (gemos-extras)
           Requires: liblog4cplus-1.2.so.5()(64bit)

Compiling current xhal fails with errors:

src/common/utils/XHALXMLParser.cpp:10:35: error: no matching function for call to ‘log4cplus::Appender::setLayout(std::auto_ptr<log4cplus::Layout>&)’
   myAppender->setLayout( myLayout );
                                   ^
In file included from /opt/xdaq/include/log4cplus/spi/appenderattachable.h:33,
                 from /opt/xdaq/include/log4cplus/logger.h:36,
                 from /home/sturdy/src/sw/xhal/xhalcore/include/xhal/utils/XHALXMLParser.h:39,
                 from src/common/utils/XHALXMLParser.cpp:1:
/opt/xdaq/include/log4cplus/appender.h:216:22: note: candidate: ‘virtual void log4cplus::Appender::setLayout(std::unique_ptr<log4cplus::Layout>)’
         virtual void setLayout(std::unique_ptr<Layout> layout);
                      ^~~~~~~~~
/opt/xdaq/include/log4cplus/appender.h:216:22: note:   no known conversion for argument 1 from ‘std::auto_ptr<log4cplus::Layout>’ to ‘std::unique_ptr<log4cplus::Layout>’
src/common/utils/XHALXMLParser.cpp: In member function ‘boost::optional<xhal::utils::Node> xhal::utils::XHALXMLParser::getNodeFromAddress(uint32_t)’:
src/common/utils/XHALXMLParser.cpp:359:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }

Types of issue

Expected Behavior

Will probably need to set up builds for

Current Behavior

Unable to compile xhal for xdaq15 testing, and hence unable to compile cmsgemos

Context (for feature requests)

For compatibility with future development.

Your Environment

cc7 VM with xdaq15 prerelease installed (gemdaq-build-xdaq15)