bugGlobulation 2 - Bugs: bug #24560, libboost_date_time missing in scons

 
 

bug #24560: libboost_date_time missing in scons

Submitted by:  None
Submitted on:  Tue 14 Oct 2008 06:30:19 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: NoneOpen/Closed: Closed
Release: 0.9.3 (Beta 3)Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 14 Oct 2008 06:30:19 PM UTC, original submission:

System:
scientific linux 4.5 (RHEL 4.5 clone)
gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)
glob2-0.9.3 source tar ball

Problem:
the scons checks only for C++ header file boost/date_time/posix_time/posix_time.hpp

but it does not check for the presence of libboost_date_time and it does not include libboost_date_time in the library dependencies

therefore the build of src/glob2 fails because -lboost_date_time is missing

Solution:
adding the following lines to SConstruct after line 103 fixes the problem (also comment out the "boost/thread/thread.hpp" later when you include them here)

boost_date_time = ''
if conf.CheckLib("boost_date_time") and conf.CheckCXXHeader("boost/thread/thread.hpp"):
boost_date_time="boost_date_time"
elif conf.CheckLib("boost_date_time-mt") and conf.CheckCXXHeader("boost/thread/thread.hpp"):
boost_date_time="boost_date_time-mt"
else:
print "Could not find libboost_date_time or libboost_date_time-mt or boost/thread/thread.hpp"
missing.append("libboost_date_time")
env.Append(LIBS=[boost_date_time])

Cheers,
Stephan

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by genixpro (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Oct 2008 02:18:01 PM UTCgenixproStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1