LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2012, 05:40 AM   #1
Divya Sankaran
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 02-03-2012, 10:33 PM   #2
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error: 'memset' in not declared in this scope isaacjun16 Ubuntu 3 10-01-2010 05:22 PM
Problem compiling (error: ‘strcmp’ was not declared in this scope) beboppinbobby Linux - Newbie 4 12-19-2009 02:33 AM
aria2, ‘assert’ was not declared in this scope , compiler error adityasharma Linux - Newbie 4 07-31-2009 06:51 AM
Compiling tesseract-2.03: error: ‘INT32’ was not declared in this scope J_Szucs Linux - Software 10 03-05-2009 03:35 PM
Error Prompt - 'Execute_command was not declared in this scope. Please help! thhuang Linux - Newbie 1 11-05-2007 01:38 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration