Getting `__LOCK_INITIALIZER' was not declared in this scope error
I am compiling OpenDiameter code which uses the boost C++ library in my redhat linux machine(2.6.18-194.8.1.el5). But during compilation I get the error
../../../../libext/boost_1_37_0/boost/detail/spinlock_pool.hpp:73: error: `__LOCK_INITIALIZER' was not declared in this scope
I am using gcc 3.4.1, glibc 2.5 and boost 1.37.
The same thing is compiling in another redhat linux machine (2.6.9-22.0.2.ELsmp) which uses gcc 3.4.1, glibc 2.3.4 and boost 1.37.
In google I found that __LOCK_INITIALIZER is a macro defined in pthread.h file
Can anyone plz tell me what could be the problem? Is it a problem with the include files of C library? Or is it due to version incompatibility of glibc?