Bug 1869 - prefer local build libraries to other build libraries
prefer local build libraries to other build libraries
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
pre-release
PC All
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-02 12:17 UTC by Tom Henderson
Modified: 2014-03-13 09:55 UTC (History)
1 user (show)

See Also:


Attachments
patch to fix (1.34 KB, patch)
2014-03-02 12:42 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2014-03-02 12:17:54 UTC
When using bake to build ns-3, I encountered some unexpected behavior in which I could not get the loader to use newly modified shared libraries that I had later built in the ns-3-dev directory.  Instead, it would always prefer the libraries found in the bake/build directory (built during the bake build step).  I had to move out of the way the ../../build directory to get it to use the local build directory.

The problem turned out to be the configuration environment variable NS3_MODULE_PATH, which appended bake build paths before the ns-3-dev/build path was appended.  These bake build paths are appended when waf recurses into the various ns-3 modules that rely on external libraries (brite, click, openflow, internet).  

Additionally, the various modules append duplicate paths to NS3_MODULE_PATH.
Comment 1 Tom Henderson 2014-03-02 12:42:18 UTC
Created attachment 1789 [details]
patch to fix

- append local build directory before recursing into src/ modules
- remove duplicate path entries
Comment 2 Tom Henderson 2014-03-13 09:55:41 UTC
pushed in changeset 10658:2a407999964e