Fix FTBFS with Boost 1.49.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix FTBFS with Boost 1.49.0

Peter Colberg-3
Hi,

Luabind fails to build with Boost 1.49.0 and GCC.

I have fixed this issue in commit 085f2e0 [1] at

http://git.colberg.org/luabind.git

For convenience, a snapshot tarball can be obtained at

http://sourceforge.net/projects/halmd/files/libs/luabind/

For information on the other patches contained in the repository, see

http://article.gmane.org/gmane.comp.lang.lua.luabind/2982
http://article.gmane.org/gmane.comp.lang.lua.luabind/2924

Regards,
Peter

[1]

The implementation of BOOST_PP_ITERATION_FLAGS() changed in Boost 1.49.0,
which causes Luabind to fail to build with GCC (reproduced with GCC 4.4
and GCC 4.6).

https://svn.boost.org/trac/boost/ticket/6631

http://thread.gmane.org/gmane.comp.lib.boost.devel/228802

http://article.gmane.org/gmane.comp.lib.boost.devel/228836

The work-around is to replace the pattern

 #if !defined(MACRO)
     // A
 #elif MACRO()
     // B
 #endif

with

 #if !defined(MACRO)
     // A
 #else
     #if MACRO()
         // B
     #endif
 #endif

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: Fix FTBFS with Boost 1.49.0

Peter Colberg-3
On Thu, Mar 15, 2012 at 06:08:00PM -0400, Peter Colberg wrote:
> For information on the other patches contained in the repository, see
>
> http://article.gmane.org/gmane.comp.lang.lua.luabind/2982
> http://article.gmane.org/gmane.comp.lang.lua.luabind/2924

I noticed the Lua 5.2 patches have made it into the Luabind repository.

https://github.com/luabind/luabind/commits/0.9

It's good to see upstream activity again :-).

Peter

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user