[ns] hi help ((no debugging symbols found))

2008-10-12 Thread Batbold Toiruul

Hi guys,
I am using gdb debuggar to find program error. However, when I use gdb, i
have some errors:

[EMAIL PROTECTED] ~/ns-allinone-2.33/ns-2.33
$ gdb ns
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-pc-cygwin...
(no debugging symbols found)
(gdb) run demo2_rad2.tcl
(gdb) run demo2_rad2.tcl
Starting program: /home/bbold/ns-allinone-2.33/ns-2.33/ns.exe demo2_rad2.tcl
[New thread 1880.0x875c]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New thread 1880.0x80d8]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
couldn't read file demo2_rad2.tcl: no such file or directory

Program exited with code 01.

if anybody knows about, help me?

Thanks a lot in advance.


[ns] A good FAQ

2008-10-12 Thread Sidney Doria

Hi NS-2 people,

This is a useful FAQ about NS-2:

http://web.syr.edu/~dchen02/FAQ.txt

I propose to include all QA in the NS-2 Wiki.

--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] errors when type make

2008-10-12 Thread eng Rony



Eng Rony
thanks for your help mr, Wang Danqi 
i want to ask u a question:-
my PC is old, i have RAM:256,Processor: 1200, Cache:256, Board type: Manli
and i want to use ns-2.33 which linux distribution is suitable to me and can u 
tell me where can i get it from net?
thanks alot
 



--- On Sun, 10/12/08, Wang Danqi [EMAIL PROTECTED] wrote:

From: Wang Danqi [EMAIL PROTECTED]
Subject: Re: [ns] errors when type make
To: ns-users@ISI.EDU
Date: Sunday, October 12, 2008, 7:45 AM


I don't know what happens when there are two version of gcc in your system.

apt-get install g++ 4.2.4   doesn't mean to install g++-4.2.4.
Instead, it
means install two different software: g++ and 4.2.4.

I think if you can find a up-to-date Ubuntu source server with latest
version of gcc, the apt will upgrade it for you automatically, so you don't
need to remove the old version.


eng Rony wrote:
 
 
 
 
 Eng Rony
 
 i check the version of  g++ in my system, by g++ -v, and i found it gcc
 version 4.1.3 
 now i will install g++ 4.2.4 by sudo apt-get install g++ 4.2.4
 i have 2 questions:-
 1- do i must remove my old version gcc 4.1.3?
 2- if i keep my old version how can i make g++ 4.2.4 my default?
 thanks
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char**
p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
-DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4
-DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap
-I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
-I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is
not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this
scope
 common/packet.cc:51: error: 'initName' was not declared in
this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this
scope
 common/packet.cc:55: error: 'initName' was not declared in
this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context:
http://www.nabble.com/errors-when-type-make-tp19886080p19938906.html
Sent from the ns-users mailing list archive at Nabble.com.





  


[ns] wireless simulation considering only higher level

2008-10-12 Thread Davide

can be done a simulation on a wireless scenario in which only the scheduler
is implemented (no mac procedures)?

which are the possible parameter of a wireless node?...not only those shown
in the webpage of the tutorial
http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html

thanks

Davide


Re: [ns] how to remove ns-2.33 finally from my system

2008-10-12 Thread pankaj chand


To the best of my knowledge
 
Delete the ns-allinone-2.33 folder.
Delete all the lines which have the ns-allinone-2.33  string in the 
.bash_profile file.
 
there should remain atleast one line with PATH=$PATH:$Home blah blah
 
you did not specify if it was a ns-allinone or a custom installation of ns-2.33.
pankaj
_
Search for videos of Bollywood, Hollywood, Mollywood and every other wood, only 
on Live.com 
http://www.live.com/?scope=videoform=MICOAL


Re: [ns] errors when type make

2008-10-12 Thread pankaj chand


You can try doing MAKE with a fresh installation of ns2.33 on a different user 
on your linux.if it doesn't work, then your compiler or your lib.so files might 
have a problem, or ns2.33 might not be compatible with your linux, or you will 
need to install some patches.If you made some changes in the c++ code, 
especially to the packet.h or packet.cc files then it might help if you 
provided the changes to us. And then it would be a simple case of c++ code 
debugging.
pankaj
_
Want to explore the world? Visit MSN Travel for the best deals.
http://in.msn.com/coxandkings


[ns] How to get a Tcl handle to a dynamically created c++ object

2008-10-12 Thread pankaj chand


In my Tcl file, How do I get a handle to an object which is getting implicitly 
(dynamically) created.
 
I want to access some of the binded c++ variables of the object in my Tcl file.
 
For example, the MySnoop.tcl file in ns-2.33/tcl/ex/snoop
 
It specifies the creation of an LL/LLSnoop object which is an object of class 
LLSnoop.
 
Now LLSnoop object dynamicaly (on-the-fly) creates Snoop object of class Snoop.
It creates it dynamically by calling a Tcl procedure get-snoop which creates a 
Snoop object, and then it typecasts it to a pointer Snoop *snoop.
 
I want to get a TCL handle to this Snoop object which is dynamically created so 
as to track some of its variables on a time basis.
 
Please Refer to files ns-2.33/tcp/snoop.h and ns-2.33/tcp/snoop.cc
 
I already know how to get handle to the LLSnoop object, but thats because it is 
explicitly specified in the Tcl file.
 
I was thinking,
Is there a way to specify the Tcl handle or bind the Snoop 
object at the time of creation (but it is not created in the Constructor).
 
Please Help
thanks in advance
 
pankaj
_
Searching for the best deals on travel? Visit MSN Travel.
http://in.msn.com/coxandkings


[ns] Binding Static Variables is not working- please help

2008-10-12 Thread pankaj chand


I tried Binding a Static Variable, based on how it is described in the 
ns-documentation section 3.5.1, but it is not working.
The simulator is not recognizing the Classname that I am giving.
Here is what I tried
 
I added the static variable in snoop.h in the class Snoop declaration in 
snoop.h
 
static int bufsize_;
 
I defined it in the snoop.cc file
 
int Snoop::bufsize_;
 
I did this
 
class SnoopBufferClass : public TclClass {
protected:
SnoopBufferClass(const char* classname, int bufsize);
TclObject* create(int argc, const char*const* argv);
/* These two implements OTcl class access methods */
virtual void bind();
virtual int method(int argc, const char*const* argv);
};
 
void SnoopBufferClass::bind()
{
/* Call to base class bind() must precede add_method() */
TclClass::bind();
add_method(bufsize);
}
 
int SnoopBufferClass::method(int ac, const char*const* av)
{
Tcl tcl = Tcl::instance();
/* Notice this argument translation; we can then handle them as if in 
TclObject::command() */
int argc = ac - 2;
const char*const* argv = av + 2;
if (argc == 2) {
if (strcmp(argv[1], bufsize) == 0) {
tcl.resultf(%d, Snoop::bufsize_);
return (TCL_OK);
}
} else if (argc == 3) {
if (strcmp(argv[1], bufsize) == 0) {
Snoop::bufsize_ = atoi(argv[2]);
return (TCL_OK);
}
}
return TclClass::method(ac, av);
}
 
After this, I tried to use the following OTcl command to access and change 
values of Snoop::bufsize__:
 
SnoopBuffer bufsize 120
set i [SnoopBuffer bufsize]
set i [SnoopBuffer set bufsize]
 
RESULT: invalid command SnoopBuffer
 
After this, I tried to use the following OTcl command to access and change 
values of Snoop::bufsize__:
 
SnoopBufferClass bufsize 120
set i [SnoopBufferClass bufsize]
set i [SnoopBufferClass set bufsize]
 
RESULT: invalid command SnoopBufferClass
 
I even tried to add a constructor in snoop.cc
 
SnoopBufferClass::SnoopBufferClass(const char* classname, int 
bufsize):TclClass(SnoopBuffer), bufsize_(0)
{
 return 0;
}
 
 
Still same reply
 
Please Help me out with this
 
If you have a working example of binding a static variable please refer it to 
me.
(Except the offset variable in PacketHeader, I cannot understand what is going 
on over there)
The main goal is to get the interpreter to recognise the classname I am 
creating.
 
Any help or suggestions you can give me will be appreciated.
 
thanks in advance
 
pankaj
_
Search for videos of Bollywood, Hollywood, Mollywood and every other wood, only 
on Live.com 
http://www.live.com/?scope=videoform=MICOAL


Re: [ns] errors when type make

2008-10-12 Thread Wang Danqi


I have no idea about the other distribution, but Ubuntu has two derivative
for old PC. They are:

Xubuntu: http://www.ubuntu.com/products/whatisubuntu/xubuntu
Ubuntulite: http://ubuntulite.tuxfamily.org/?q=node/2

Xubuntu is an official derivative of ubuntu. I think it's easy to install
and configure. The hardware requirement is stated at the bottom of the
website.

Ubuntulite I think maybe more light than Xubuntu, but harder to configure.
You may try it.

This link may be helpful for you:
http://ubuntuforums.org/showthread.php?t=306546highlight=slow+nautilus


eng Rony wrote:
 
 
 
 
 Eng Rony
 thanks for your help mr, Wang Danqi 
 i want to ask u a question:-
 my PC is old, i have RAM:256,Processor: 1200, Cache:256, Board type: Manli
 and i want to use ns-2.33 which linux distribution is suitable to me and
 can u tell me where can i get it from net?
 thanks alot
  
 
 
 
 --- On Sun, 10/12/08, Wang Danqi [EMAIL PROTECTED] wrote:
 
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Sunday, October 12, 2008, 7:45 AM
 
 
 I don't know what happens when there are two version of gcc in your
 system.
 
 apt-get install g++ 4.2.4   doesn't mean to install g++-4.2.4.
 Instead, it
 means install two different software: g++ and 4.2.4.
 
 I think if you can find a up-to-date Ubuntu source server with latest
 version of gcc, the apt will upgrade it for you automatically, so you
 don't
 need to remove the old version.
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
 
 i check the version of  g++ in my system, by g++ -v, and i found it gcc
 version 4.1.3 
 now i will install g++ 4.2.4 by sudo apt-get install g++ 4.2.4
 i have 2 questions:-
 1- do i must remove my old version gcc 4.1.3?
 2- if i keep my old version how can i make g++ 4.2.4 my default?
 thanks
 
 
 
 --- On Sat, 10/11/08, Wang Danqi [EMAIL PROTECTED] wrote:
 From: Wang Danqi [EMAIL PROTECTED]
 Subject: Re: [ns] errors when type make
 To: ns-users@ISI.EDU
 Date: Saturday, October 11, 2008, 6:15 AM
 
 
 It seems your compiler considers the declaration of char**
 p_info::name_ 
 char* is different from the definition of  p_info::name_
 [59].
 
 You may check the version of  g++ in your system, by g++ -v
 
 g++ 4.2.4 works well with ns-allinone-2.33
 
 
 eng Rony wrote:
 
 
 
 
 Eng Rony
  
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 
 g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
 -DNDEBUG
 -DL=
 INUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
 -DHAVE_LIBOTCL1_13=
 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4
 -DHAVE_TCL_H
 -D=
 HAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=3Dstd
 -DUSE_SIN=
 GLE_ADDRESS_SPACE -Drng_test -I. -I.
 -I/home/rania/ns-allinone-2.33/tclcl-1=
 ...19 -I/home/rania/ns-allinone-2.33/otcl
 -I/home/rania/ns-allinone-2.33/inc=
 lude -I/home/rania/ns-allinone-2.33/include -I/usr/include/pcap
 -I./tcp
 -I.=
 /sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
 -I./mobile
 -I.=
 /trace -I./routing -I./tools -I./classifier -I./mcast
 -I./diffusion3/lib/ma=
 in -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns
 -I./diffusion=
 3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o
 commo=
 n/packet.o common/packet.cc
 common/packet.cc:44: error: conflicting declaration 'char**
 p_info::name_'
 common/packet.h:277: error: 'p_info::name_' has a previous
 declaration as
 '=
 char* p_info::name_ [59]'
 common/packet.cc:44: error: declaration of 'char* p_info::name_
 [59]'
 outsi=
 de of class is not definition
 common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is
 not a
 static
 me=
 mber of 'class p_info'
 
 =20
 common/packet.cc:46: error: expected constructor, destructor, or type
 conve=
 rsion before '*' token
 common/packet.cc:48: error: no 'int p_info::addPacket(char*)'
 member
 functi=
 on declared in class 'p_info'
 common/packet.cc: In member function 'int
 p_info::addPacket(char*)':
 common/packet.cc:50: error: 'nPkt_' was not declared in this
 scope
 common/packet.cc:51: error: 'initName' was not declared in
 this
 scope
 common/packet.cc:53: error: 'nPkt_' was not declared in this
 scope
 common/packet.cc:55: error: 'initName' was not declared in
 this
 scope
 make: *** [common/packet.o] Error 1
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19894159.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/errors-when-type-make-tp19886080p19938906.html
 Sent from the ns-users mailing list archive at Nabble.com.
 
 
 
 
 
   
 
 

-- 
View this message in context: 
http://www.nabble.com/errors-when-type-make-tp19886080p19948004.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] How to see the output inside #ifndef DEBUG?

2008-10-12 Thread Noor Asraf

There are a lot of functions in aodv.cc which have code like these:

#ifdef DEBUG
   fprintf(stderr, %s: sending RERR...\n, __FUNCTION__);
#endif

To understand the rest of the functionality, I feel it would be better to
know this output. This probably involves enabling DEBUG flag in the makefile
(which one?). Enabling DEBUG, would affect the rest of the code besides
providing useful messages? If anyone know about this, please share. And once
editing the Makefile and compiling, what else do I need to do to see the
output?

Thanks,
Asraf