VCMI and boost 1.49

I saw Ivan’s commit 2604: fix for boost 1.49.
But I still cannot build vcmi on amd64 Ubuntu 12.04 beta2 neither with boost 1.48 from repo nor with boost 1.49 from Debian Sid.

  CXX    vcmiserver-CVCMIServer.o
In file included from ../lib/Interprocess.h:3:0,
                 from CVCMIServer.cpp:18:
/usr/include/boost/interprocess/sync/scoped_lock.hpp:144:18: error: "ipcdetail" has not been declared
/usr/include/boost/interprocess/sync/scoped_lock.hpp:144:38: error: expected "," or "..." before "<" token
/usr/include/boost/interprocess/sync/scoped_lock.hpp:172:21: error: "ipcdetail" has not been declared
/usr/include/boost/interprocess/sync/scoped_lock.hpp:172:41: error: expected "," or "..." before "<" token
/usr/include/boost/interprocess/sync/scoped_lock.hpp:202:27: error: "ipcdetail" has not been declared
/usr/include/boost/interprocess/sync/scoped_lock.hpp:202:47: error: expected "," or "..." before "<" token
/usr/include/boost/interprocess/sync/scoped_lock.hpp:233:18: error: "ipcdetail" has not been declared
/usr/include/boost/interprocess/sync/scoped_lock.hpp:233:38: error: expected "," or "..." before "<" token

I still can build vcmi with boost 1.46.1, but it crashes very often with this error:

/usr/include/boost/thread/pthread/condition_variable_fwd.hpp:46: boost::condition_variable::~condition_variable(): Assertion `!pthread_mutex_destroy(&internal_mutex)' failed. 

Can somebody help me to building vcmi with boost 1.49 or whatever?

Just tested - debian sid with boost 1.49 works fine.
This may be beta problem (broken package or something like that) - in this case you’d better wait for release candidate.
Also - check your installed packages. Make sure that all boost packages have the same version.

Thx for reply. All boost packages have the same version.
I’ll wait RC, 19th april. And search for similar bugs on launchpad.

Ivan, thx for commit 2619. It fixes problem with boost 1.49.
Looks like Ubuntu 12.04 use gcc 4.6.3. So, your fixes for gcc-4.7 helps to 4.6.3 too =)