macport build failure

Russell Beall beall at usc.edu
Thu Jun 13 19:14:24 EDT 2013


It seems that an update to macports has broken the compiling of opensaml.

It appears to stem from an update to boost to version 1.53 which also seem to have broken some other things out there on the 'net.

According to a thread here, the error was fixable by switching to dynamic_pointer_cast:
http://comments.gmane.org/gmane.comp.version-control.monotone.devel/19593

I hacked the port to change the two references to dynamic_pointer_cast and the compilation succeeded.  Whether that was correct and will work is yet to be seen…
saml/saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
saml/saml2/metadata/impl/EntityAttributesMetadataFilter.cpp

Below is the error snippet from the log file.

Regards,
Russ.

:info:build /bin/sh ../libtool --silent  --tag=CXX   --mode=compile /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -D_THREAD_SAFE -pthread -Wall -pipe -O2 -arch x86_64 -O2 -DNDEBUG -I/opt/local/include -I/opt/local/include   -I/opt/local/include  -O2 -arch x86_64 -Wall -O2 -DNDEBUG -MT EntityAttributesEntityMatcher.lo -MD -MP -MF .deps/EntityAttributesEntityMatcher.Tpo -c -o EntityAttributesEntityMatcher.lo `test -f 'saml2/metadata/impl/EntityAttributesEntityMatcher.cpp' || echo './'`saml2/metadata/impl/EntityAttributesEntityMatcher.cpp
:info:build saml2/metadata/impl/EntityAttributesEntityMatcher.cpp:110:33: error: no member named 'shared_dynamic_cast' in namespace 'boost'
:info:build         m_tags.push_back(boost::shared_dynamic_cast<Attribute>(obj));
:info:build                          ~~~~~~~^
:info:build saml2/metadata/impl/EntityAttributesEntityMatcher.cpp:110:53: error: 'Attribute' does not refer to a value
:info:build         m_tags.push_back(boost::shared_dynamic_cast<Attribute>(obj));
:info:build                                                     ^
:info:build ../saml/saml2/core/Assertions.h:361:35: note: declared here
:info:build         BEGIN_XMLOBJECT2(SAML_API,Attribute,xmltooling::AttributeExtensibleXMLObject,EncryptableObject,SAML 2.0 Attribute element);
:info:build                                   ^
:info:build /opt/local/include/xmltooling/base.h:403:19: note: expanded from macro 'BEGIN_XMLOBJECT2'
:info:build     class linkage cname : public virtual base, public virtual base2 { \
:info:build                   ^
:info:build 2 errors generated.
:info:build make[2]: *** [EntityAttributesEntityMatcher.lo] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_opensaml/opensaml/work/opensaml-2.5.2/saml'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_opensaml/opensaml/work/opensaml-2.5.2'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_opensaml/opensaml/work/opensaml-2.5.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_opensaml/opensaml/work/opensaml-2.5.2"


More information about the dev mailing list