Installing openSAML (C++) on Linux - Problem with boost::scoped_ptr
Akshay Singh
akshay_iiit at yahoo.com
Mon Dec 2 13:54:10 EST 2013
Hi,
I am trying to install openSAML on Ubuntu-12.04 (3.2.0-56) with g++-4.6.3. After installing all the dependencies (as listed on https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManCPPInstall) my configure script run successfully. I have latest versions of boost library and all other dependencies (well what is available on Ubunut repos, which is fairly updated).
However, when I make the source it fails as it is trying to convert to xmltooling types from corresponding boost pointers.
For example, boost::scoped_ptr<xmltooling::Mutex>& is being passed to a function expecting xmltooling::Mutex* as argument, which is leading to make errors like :
=============================================
SAMLConfig.cpp: In member function 'virtual bool opensaml::SAMLInternalConfig::init(bool)':
SAMLConfig.cpp:154:25: error: no matching function for call to 'xmltooling::Lock::Lock(boost::scoped_ptr<xmltooling::Mutex>&)'
SAMLConfig.cpp:154:25: note: candidates are:
/usr/include/xmltooling/util/Threads.h:293:9: note: xmltooling::Lock::Lock(xmltooling::Mutex*)
/usr/include/xmltooling/util/Threads.h:293:9: note: no known conversion for argument 1 from 'boost::scoped_ptr<xmltooling::Mutex>' to 'xmltooling::Mutex*'
/usr/include/xmltooling/util/Threads.h:286:9: note: xmltooling::Lock::Lock(const xmltooling::Lock&)
/usr/include/xmltooling/util/Threads.h:286:9: note: no known conversion for argument 1 from 'boost::scoped_ptr<xmltooling::Mutex>' to 'const xmltooling::Lock&'
=============================================
Complete error log can be seen here : http://tny.cz/7b8b99fc
I can try to typecast these pointers but I was wondering if other people are seeing this too and if there is a way out. I am using openSAML-2.5.3.
Thanks,
Akshay
More information about the users
mailing list