Bug 1004 - module header not rebuilt
module header not rebuilt
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3.9
Mac Intel Mac OS
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-08 14:47 EDT by L. Felipe Perrone
Modified: 2010-11-27 09:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description L. Felipe Perrone 2010-10-08 14:47:45 EDT
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 EST
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