unable to install grantlee 0.1.9_0

Ryan Schmidt ryandesign at macports.org
Wed Sep 7 20:12:57 PDT 2011


On Sep 7, 2011, at 20:38, Richard DeLaurell wrote:

> These seem to be the significant errors from the log (the point at which compilation stops):
> 
> :info:build //usr/include/c++/4.0.0/tr1/hashtable:1045: error: no matching function for call to ‘std::tr1::hashtable<int, std::pair<const int, int>, std::allocator<std::pair<const int, int> >, Internal::extract1st<std::pair<const int, int> >, std::equal_to<int>, QtHasher<int>, Internal::mod_range_hashing, Internal::default_ranged_hash, Internal::prime_rehash_policy, false, true, true>::m_allocate_node(Internal::hash_node<std::pair<const int, int>, false>*&)’
> 
> :info:build //usr/include/c++/4.0.0/tr1/hashtable:1046: error: request for member ‘copy_code_from’ in ‘* tail’, which is of non-class type ‘Internal::hash_node<std::pair<const int, int>, false>*’
> 
> "port outdated" reports that boost is up to date (@1.47.0_0).
> 
> Any guidance would be appreciated.

You seem to be using gcc-4.0; presumably you are on Leopard or Tiger? Perhaps grantlee is not compatible with gcc-4.0 and requires gcc-4.2, and this was not noticed because others use Snow Leopard which uses gcc-4.2.

I am able to reproduce this problem on Snow Leopard by running "sudo port install grantlee configure.compiler=gcc-4.0". If you are running Leopard, perhaps you can work around it by running "sudo port install grantlee configure.compiler=gcc-4.2". (Run "sudo port clean grantlee" first, of course.) Let me know if that works and I can fix the port to always do that. If you're on Tiger you'll have a harder time because Xcode on Tiger does not include gcc-4.2.




More information about the macports-users mailing list