[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange!?



Hello,
     I met a strange problem. I am just trying to install the RSVP/ns 
simulator. 
     I have made correction on necessary file. When I "make depend", I 
met some warning errors like:

	...
	....
	In file included from emulate/tap.cc:41:
	packet.h:293: warning: `AF_INET' redefined
	/usr/include/socketbits.h:86: warning: this is the location of 
	the previous definition
	emulate/net-pcap.cc:60: pcap.h: No such file or directory
	In file included from agent.h:41,
 	                from emulate/ping_responder.cc:48:
	packet.h:293: warning: `AF_INET' redefined
	/usr/include/socketbits.h:86: warning: this is the location of 
		the previous definition
	...

When I "make" it, there are also some warnings:
	...
	In file included from rsvp.h:32,
	                 from rsvp.cc:24:
	rsvp-objects.h:78: warning: `class RSVPobject' has virtual 
		functions but non-virtual destructor
	rsvp-objects.h:97: warning: `class SESSION' has virtual 
		functions but non-virtual destructor
	rsvp-objects.h:116: warning: `class RSVP_HOP' has virtual 
		functions but non-virtual destructor
	rsvp-objects.h:130: warning: `class TIME_VALUES' has virtual 	
		functions but non-virtual destructor
	....

I do not feel these warnings are fatal, are not they?

However, after I complete the re-compiling ns, I can run "./validate".
Everytime when I run "./validate", it dumps TCL scripts. I do not know 
what result in such a phenomenon. 
The most strange thing is:
When I run "ns example.tcl" or "ns ./tcl/ex/simple.tcl", it goes well; 
but when I run "../../ns simple.tcl" under the directory "ex", it dumps 
TCL scripts again.
The scripts dumped are like:
	......

	ns: 




	WFQClass set limit_ 5000
	WFQClass set bw_ 0
	WFQClass set blocked_ false
	WFQClass set unblock_on_resume_ true
	
	Queue/WFQ set wf2q_ 0
	Queue/WFQ set prio_ 0
	Queue/WFQ set best_effort_ 0
	Queue/WFQ set borrow_ 0
	Queue/WFQ set num_classes_ 0
	Queue/WFQ set num_flows_ 0
	Queue/WFQ set num_drops_ 0
	Queue/WFQ set size_drops_ 0


	Agent/RSVP set noisy_ 0
	Agent/RSVP set refresh_ 30
	Agent/RSVP set lifetime_factor_ 3
	Agent/RSVP set ip6_ 0
	Agent/RSVP set fid_ 46
	Agent/RSVP set num_flows_ 0
	Agent/RSVP set num_rsb_ 0 
	.......
	..

    So, what is the difference between "ns ./tcl/ex/simple.tcl" and 
"../../ns simple.tcl"? Why the difference results in dumping tcl 
scripts?

     Thanks,

      Sun Kai