[Ns-bugs] [Bug 1272] New: ./waf configure fails to detect librt properly on Ubuntu 11.04 / RealtimeSimulatorImpl cannot be compiled

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Sep 28 11:37:46 PDT 2011


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1272

           Summary: ./waf configure fails to detect librt properly on
                    Ubuntu 11.04 / RealtimeSimulatorImpl cannot be
                    compiled
           Product: ns-3
           Version: pre-release
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: mathieu.lacage at gmail.com
        ReportedBy: alexander.afanasyev at ucla.edu
                CC: ns-bugs at isi.edu
   Estimated Hours: 0.0


On Ubuntu 11.04 librt requires libpthread.  As a result, when ./waf tries to
check whether librt present, it fails with unresolved pthread symbols.  

The following solves the problem:

line 87 in src/core/wscript
- if not conf.check(lib='rt', uselib='RT', define_name='HAVE_RT'):
+ if not conf.check(lib='rt', uselib='RT, PTHREAD', define_name='HAVE_RT')

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list