Bug 1381

Summary: Moving `boost`-related configuration to main wscript
Product: ns-3 Reporter: Alex Afanasyev <alexander.afanasyev>
Component: generalAssignee: ns-bugs <ns-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch

Description Alex Afanasyev 2012-02-29 21:00:02 UTC
There is a problem when two different modules require different boost
libs.  

Right now, openflow module checks for boost and requires "signals" and "filesystem" libraries.  I have a custom module that needs another boost libraries and it is impossible to specify them without totally disabling the openflow module.

The attached patch solves the problem by moving boost checking to the main wscript.
Comment 1 Alex Afanasyev 2012-02-29 21:06:48 UTC
Created attachment 1346 [details]
patch
Comment 2 Tommaso Pecorella 2012-03-14 20:58:20 UTC
The proposed patch is not totally satisfactory imho.

The problem is that, if I understood it right, boost will be checked against 
all the boost libs required by both modules. Hence if just a subsets is 
present, no boost-dependent module will be built, even if its requirements are 
met.

In other words:
OpenFlow needs Boost's "signals" and "filesystem"
Your module requires Boost's "iostreams" and "regex"
If just ONE of those is missing, neither OpenFlow or your module will be built.

Not really a nice behaviour, isn't it ?

I do agree we need a fix, however the Boost check should be more flexible.

T.
Comment 3 Alex Afanasyev 2013-04-26 17:56:19 UTC

*** This bug has been marked as a duplicate of bug 1562 ***