Bugzilla – Bug 1272
./waf configure fails to detect librt properly on Ubuntu 11.04 / RealtimeSimulatorImpl cannot be compiled
Last modified: 2011-11-17 09:45:15 UTC
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')
Please, apply patch from: https://bitbucket.org/cawka/ns-3-dev/changeset/397dbb7cfa2f
pushed changeset 397dbb7cfa2f Please, make sure you commit fixes for separate problems in separate changesets next time.