LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting `__LOCK_INITIALIZER' was not declared in this scope error (https://www.linuxquestions.org/questions/linux-newbie-8/getting-%60__lock_initializer-was-not-declared-in-this-scope-error-927371/)

Divya Sankaran 02-03-2012 04:40 AM

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?

lisle2011 02-03-2012 09:33 PM

Error while compiling
 
You may want to read this thread recording the same problem it has alot of information and you might get a Eureka.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276309




---------------------------------------------------------------------------------------------------------------------------
If my response helped give me a pat on the back (click on my rep)


All times are GMT -5. The time now is 12:32 PM.