Problem with ns2
I will be most grateful if anyone were to help,I have Ns2.33 and I wanted to add a TCP Veno that I got from the author but below is the message I kept on receiving .I followed make clean--./configure--add TCP-veno.o and i added the 3 default values.
diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tcp/tcp.o tcp/tcp.cc tcp/tcp.cc: In constructor ‘TcpAgent::TcpAgent()’: tcp/tcp.cc:74: error: class ‘TcpAgent’ does not have any field named ‘ts_echo_’ tcp/tcp.cc:74: error: class ‘TcpAgent’ does not have any field named ‘tss’ tcp/tcp.cc:74: error: class ‘TcpAgent’ does not have any field named ‘tss_size_’ tcp/tcp.cc:78: error: class ‘TcpAgent’ does not have any field named ‘use_rtt_’ tcp/tcp.cc:79: error: class ‘TcpAgent’ does not have any field named ‘qs_window_’ tcp/tcp.cc:79: error: class ‘TcpAgent’ does not have any field named ‘qs_cwnd_’ tcp/tcp.cc:79: error: class ‘TcpAgent’ does not have any field named ‘frto_’ tcp/tcp.h:319: warning: ‘TcpAgent::maxseq_’ will be initialized after tcp/tcp.h:314: warning: ‘int TcpAgent::count_’ tcp/tcp.cc:68: warning: when initialized here tcp/tcp.h:341: warning: ‘TcpAgent::closed_’ will be initialized after tcp/tcp.h:188: warning: ‘TracedInt TcpAgent::t_rtt_’ tcp/tcp.cc:68: warning: when initialized here tcp/tcp.h:356: warning: ‘TcpAgent::first_decrease_’ will be initialized after tcp/tcp.h:315: warning: ‘double TcpAgent::fcnt_’ tcp/tcp.cc:68: warning: when initialized here tcp/tcp.h:345: warning: ‘TcpAgent::nrexmit_’ will be initialized after tcp/tcp.h:337: warning: ‘int TcpAgent::restart_bugfix_’ tcp/tcp.cc:68: warning: when initialized here tcp/tcp.h:337: warning: ‘TcpAgent::restart_bugfix_’ will be initialized after tcp/tcp.h:322: warning: ‘int TcpAgent::cong_action_’ tcp/tcp.cc:68: warning: when initialized here tcp/tcp.cc: In member function ‘virtual int TcpAgent::delay_bind_dispatch(const char*, const char*, TclObject*)’: tcp/tcp.cc:229: error: ‘max_connects_’ was not declared in this scope tcp/tcp.cc:237: error: ‘SetCWRonRetransmit_’ was not declared in this scope tcp/tcp.cc:239: error: ‘bugfix_ss_’ was not declared in this scope tcp/tcp.cc:246: error: ‘bugfix_ack_’ was not declared in this scope tcp/tcp.cc:247: error: ‘bugfix_ts_’ was not declared in this scope tcp/tcp.cc:250: error: ‘ts_resetRTO_’ was not declared in this scope tcp/tcp.cc:254: error: ‘aggressive_maxburst_’ was not declared in this scope tcp/tcp.cc:258: error: ‘exitFastRetrans_’ was not declared in this scope tcp/tcp.cc:288: error: ‘cwnd_range_’ was not declared in this scope tcp/tcp.cc:292: error: ‘LimTransmitFix_’ was not declared in this scope tcp/tcp.cc:295: error: ‘tcp_qs_recovery_’ was not declared in this scope tcp/tcp.cc:296: error: ‘qs_request_mode_’ was not declared in this scope tcp/tcp.cc:297: error: ‘qs_thresh_’ was not declared in this scope tcp/tcp.cc:298: error: ‘qs_rtt_’ was not declared in this scope tcp/tcp.cc:299: error: ‘print_request_’ was not declared in this scope tcp/tcp.cc:300: error: ‘frto_enabled_’ was not declared in this scope tcp/tcp.cc:301: error: ‘sfrto_enabled_’ was not declared in this scope tcp/tcp.cc:302: error: ‘spurious_response_’ was not declared in this scope tcp/tcp.cc:326: error: ‘ncwndcuts1_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::set_initial_window()’: tcp/tcp.cc:427: error: ‘syn_connects_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::reset()’: tcp/tcp.cc:486: error: ‘ncwndcuts1_’ was not declared in this scope tcp/tcp.cc:494: error: ‘hstcp_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual double TcpAgent::rtt_timeout()’: tcp/tcp.cc:534: error: ‘use_rtt_’ was not declared in this scope tcp/tcp.cc:553: error: ‘use_rtt_’ was not declared in this scope tcp/tcp.cc:558: error: ‘use_rtt_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::output(int, int)’: tcp/tcp.cc:665: error: ‘bugfix_ts_’ was not declared in this scope tcp/tcp.cc:665: error: ‘tss’ was not declared in this scope tcp/tcp.cc:666: error: ‘tss_size_’ was not declared in this scope tcp/tcp.cc:670: error: ‘bugfix_ts_’ was not declared in this scope tcp/tcp.cc:670: error: ‘tss_size_’ was not declared in this scope tcp/tcp.cc:677: error: ‘tss’ was not declared in this scope tcp/tcp.cc:678: error: ‘tss’ was not declared in this scope tcp/tcp.cc:683: error: ‘tss’ was not declared in this scope tcp/tcp.cc:684: error: ‘tss_size_’ was not declared in this scope tcp/tcp.cc:693: error: ‘SetCWRonRetransmit_’ was not declared in this scope tcp/tcp.cc:703: error: ‘syn_connects_’ was not declared in this scope tcp/tcp.cc:706: error: ‘max_connects_’ was not declared in this scope tcp/tcp.cc:726: error: ‘qs_request_mode_’ was not declared in this scope tcp/tcp.cc:726: error: ‘qs_rtt_’ was not declared in this scope tcp/tcp.cc:740: error: ‘qs_thresh_’ was not declared in this scope tcp/tcp.cc:746: error: ‘print_request_’ was not declared in this scope tcp/tcp.cc: At global scope: tcp/tcp.cc:880: error: no ‘int TcpAgent::force_wnd(int)’ member function declared in class ‘TcpAgent’ tcp/tcp.cc: In member function ‘virtual int TcpAgent::window()’: tcp/tcp.cc:893: error: ‘frto_’ was not declared in this scope tcp/tcp.cc: At global scope: tcp/tcp.cc:1021: error: prototype for ‘double TcpAgent::limited_slow_start(double, int, double)’ does not match any in class ‘TcpAgent’ tcp/tcp.h:227: error: candidate is: double TcpAgent::limited_slow_start(double, double, double) tcp/tcp.cc: In member function ‘double TcpAgent::decrease_param()’: tcp/tcp.cc:1061: error: ‘hstcp_’ was not declared in this scope tcp/tcp.cc: In member function ‘double TcpAgent::increase_param()’: tcp/tcp.cc:1087: error: ‘hstcp_’ was not declared in this scope tcp/tcp.cc:1088: error: ‘cwnd_range_’ was not declared in this scope tcp/tcp.cc: In member function ‘void TcpAgent::slowdown(int)’: tcp/tcp.cc:1244: error: ‘TCP_IDLE’ was not declared in this scope tcp/tcp.cc:1244: error: ‘NO_OUTSTANDING_DATA’ was not declared in this scope tcp/tcp.cc:1245: error: ‘ncwndcuts1_’ was not declared in this scope tcp/tcp.cc: In member function ‘void TcpAgent::newack(Packet*)’: tcp/tcp.cc:1374: error: ‘ts_echo_’ was not declared in this scope tcp/tcp.cc:1376: error: ‘ts_resetRTO_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::recv_newack_helper(Packet*)’: tcp/tcp.cc:1450: error: ‘qs_window_’ was not declared in this scope tcp/tcp.cc:1486: error: ‘frto_’ was not declared in this scope tcp/tcp.cc:1511: error: ‘spurious_timeout’ was not declared in this scope tcp/tcp.cc: In member function ‘double TcpAgent::initial_window()’: tcp/tcp.cc:1523: error: ‘qs_cwnd_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::dupack_action()’: tcp/tcp.cc:1591: error: ‘bugfix_ss_’ was not declared in this scope tcp/tcp.cc:1616: error: ‘lossQuickStart’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::endQuickStart()’: tcp/tcp.cc:1633: error: ‘qs_cwnd_’ was not declared in this scope tcp/tcp.cc:1634: error: ‘qs_window_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::processQuickStart(Packet*)’: tcp/tcp.cc:1659: error: ‘print_request_’ was not declared in this scope tcp/tcp.cc:1669: error: ‘qs_cwnd_’ was not declared in this scope tcp/tcp.cc: At global scope: tcp/tcp.cc:1685: error: no ‘void TcpAgent::recv_frto_helper(Packet*)’ member function declared in class ‘TcpAgent’ tcp/tcp.cc: In member function ‘void TcpAgent::recv_frto_helper(Packet*)’: tcp/tcp.cc:1688: error: ‘frto_’ was not declared in this scope tcp/tcp.cc: At global scope: tcp/tcp.cc:1707: error: no ‘void TcpAgent::spurious_timeout()’ member function declared in class ‘TcpAgent’ tcp/tcp.cc: In member function ‘void TcpAgent::spurious_timeout()’: tcp/tcp.cc:1709: error: ‘frto_’ was not declared in this scope tcp/tcp.cc:1711: error: ‘spurious_response_’ was not declared in this scope tcp/tcp.cc:1736: error: ‘pipe_prev_’ was not declared in this scope tcp/tcp.cc: At global scope: tcp/tcp.cc:1753: error: no ‘int TcpAgent::lossQuickStart()’ member function declared in class ‘TcpAgent’ tcp/tcp.cc: In member function ‘int TcpAgent::lossQuickStart()’: tcp/tcp.cc:1755: error: ‘qs_window_’ was not declared in this scope tcp/tcp.cc:1755: error: ‘tcp_qs_recovery_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::recv(Packet*, Handler*)’: tcp/tcp.cc:1831: error: ‘aggressive_maxburst_’ was not declared in this scope tcp/tcp.cc: In member function ‘virtual void TcpAgent::timeout(int)’: tcp/tcp.cc:1859: error: ‘frto_’ was not declared in this scope tcp/tcp.cc:1861: error: ‘pipe_prev_’ was not declared in this scope tcp/tcp.cc:1884: error: ‘bugfix_ss_’ was not declared in this scope tcp/tcp.cc:1895: error: ‘NO_OUTSTANDING_DATA’ was not declared in this scope tcp/tcp.cc:1903: error: ‘frto_enabled_’ was not declared in this scope tcp/tcp.cc:1903: error: ‘sfrto_enabled_’ was not declared in this scope tcp/tcp.cc:1911: error: ‘frto_enabled_’ was not declared in this scope tcp/tcp.cc:1911: error: ‘sfrto_enabled_’ was not declared in this scope tcp/tcp.cc: In member function ‘void TcpAgent::process_qoption_after_send()’: tcp/tcp.cc:2065: error: ‘TCP_IDLE’ was not declared in this scope tcp/tcp.cc:2084: error: ‘TCP_IDLE’ was not declared in this scope tcp/tcp.cc: In member function ‘void TcpAgent::rtt_counting()’: tcp/tcp.cc:2116: error: ‘TCP_IDLE’ was not declared in this scope tcp/tcp.cc:2147: error: ‘TCP_IDLE’ was not declared in this scope make: *** [tcp/tcp.o] Error 1 Thank you YSK |
at a quick glance it looks like a program wrote for gcc 3.2 or gcc 3.4 ,trying to be built with gcc 4.1
|
Thank you for the response but please i am new to both ns2 and linux i need more detail ,and possible way out.
|
"ns-2.33" : I see no options in 'configure --help' to use
--add-anything.o , so I guess, that this is just ignored as a non valid option. Which "Linux" are you using? Name and 'version', please. ? Fedora, Ubuntu, Suse, Slackware ? or old Redhat ? 'ns-2.33' is a very nice piece of software, and will build with e.g. gcc-4.1.1 .. no errors, no warnings. Quote:
If you want to see some 'tcp_veno' code, have a look in e.g. /usr/src/linux-2.6.18.8.xx/net/ipv4/tcp_veno.c .. tcp_veno.mod.c and try google .. keyword : .. tcp-veno .. Regards EDIT : I found a veno.o (and veno.c) in ns-2.33/tcp/linux/src .. |
All times are GMT -5. The time now is 01:56 AM. |