Installing openSAML (C++) on Linux - Problem with boost::scoped_ptr
Nate Klingenstein
ndk at internet2.edu
Mon Dec 2 13:56:00 EST 2013
Akshay,
Could you please send this and any further OpenSAML questions to the dev at shibboleth.net list? This list is for users of Shibboleth.
Thanks,
Nate.
On Dec 2, 2013, at 11:54 AM, Akshay Singh <akshay_iiit at yahoo.com>
wrote:
> 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
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list