Bug 1869

Summary: prefer local build libraries to other build libraries
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: All   
Attachments: patch to fix

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