Bug 1004

Summary: module header not rebuilt
Product: ns-3 Reporter: L. Felipe Perrone <perrone>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3.9   
Hardware: Mac Intel   
OS: Mac OS   

Description L. Felipe Perrone 2010-10-08 14:47:45 UTC
Here's a test scenario for the build system that gives me wrong behavior. Say you go to a module's directory, say: src/mobility for the sake of discussion. Open the wscript file in that directory and add two files, say, bogus.cc and bogus.h to each respective list. Create these files in src/mobility so that they contain innocuous code that compiles without errors. Then, from your installation root, run: ./waf build.

Once that is done, check out what appears in build/debug/ns3/mobility-module.h. It's likely that you won't see bogus.h in this header file. I've tried this with a new module (something I added) and then with an existing module (that is, mobility). The results were consistent in being wrong in both cases. The only way that I managed to get the module's header to include the added files was to build after cleanup.

Felipe
Comment 1 Gustavo J. A. M. Carneiro 2010-11-27 09:30:27 UTC
changeset:   6671:b3d5193a2f94
tag:         tip
user:        Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>
date:        Sat Nov 27 14:29:45 2010 +0000
summary:     Bug 1004 - module header not rebuilt