Bug 503

Summary: build.py tries to build non-existent nsc on osx
Product: ns-3 Reporter: Rajib Bhattacharjea <raj.b>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: proposed patch (gjc may want to review)

Description Rajib Bhattacharjea 2009-02-18 15:39:03 UTC
Download script acknowledges that nsc is unsupported on OS X, but then the build script tries to build it and fails.  This is OS X 10.4 on x86


$ ./download.py 
   #
    # Get NSC
    #
    
Architecture (darwin) does not support NSC... skipping

$ ./build.py 
# Build NSC
Entering directory `nsc'
Traceback (most recent call last):
  File "./build.py", line 63, in ?
    sys.exit(main(sys.argv))
  File "./build.py", line 40, in main
    os.chdir(constants.LOCAL_NSC_PATH)
OSError: [Errno 2] No such file or directory: 'nsc'
Comment 1 Tom Henderson 2009-02-18 22:29:25 UTC
Created attachment 380 [details]
proposed patch (gjc may want to review)

sorry, patch attached (tested on OS X and Linux tonight)
Comment 2 Gustavo J. A. M. Carneiro 2009-02-19 05:15:40 UTC
Looks good, feel free to commit.
Comment 3 Rajib Bhattacharjea 2009-02-23 20:50:08 UTC
17:dded122d91ea in ns-3-allinone