LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2008, 02:48 AM   #1
ysk
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
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:utput(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:rocessQuickStart(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:rocess_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
 
Old 09-22-2008, 11:14 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
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
 
Old 09-23-2008, 12:39 PM   #3
ysk
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for the response but please i am new to both ns2 and linux i need more detail ,and possible way out.
 
Old 09-23-2008, 02:44 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
"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:
.. and I added the 3 default values
Please tell, what was added.

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 ..

Last edited by knudfl; 09-23-2008 at 02:56 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NS2 Instalation Problem pk1549 Linux - Newbie 0 11-02-2007 01:34 PM
a problem about ns2 install !!! blueskyhff Linux - Software 1 07-03-2007 03:11 AM
problem with re-make in ns2.26 newbie06 Red Hat 1 12-18-2006 07:42 PM
Problem with ns2 vivekr Programming 4 07-22-2006 07:48 AM
problem with NS2 cain_eve Programming 1 04-17-2005 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration