Re: [ns] how to use "gdb" to debug an error in .tcl format file

2007-03-17 Thread Filippos Kolovos

-
In order to debug TCL files you should use tcl-deug. In order
to debug the .cc files you need ddd (frontend for gdb).

Here is detailed web info on how to use both, from Pedro Vale Estela:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html

Also, at the ns web site there is some info on how to debug a TCL file
while executing a C++ and vice versa. Check:
http://www.isi.edu/nsnam/ns/ns-debugging.html

and especially the part "Mixing TCL and C debugging".

Hope that I've helped

-Fk

On 3/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> -- Forwarded message --
> From: shayma sinan <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Sat, 17 Mar 2007 03:39:06 + (GMT)
> Subject: [ns] how to use "gdb" to debug an error in .tcl format file?
> hello ns-users,
>   i got this error (segmentation fault) while trying to run an example (
> simula.tcl) of fhmip peckage under ns2.28
>
>   ---
>   [EMAIL PROTECTED] example]# ns simula.tcl > 0
>   INITIALIZE THE LIST xListHead
>   Segmentation fault
>   ---
>
>   The "INITIALIZE THE LIST xListHead" is coming from channel.cc (i didn't
> modify this file as i modified others to use fhmip)
>
>   i don't know how to find the crash that cause the error, so can anybody
> guide me how to use "gdb" comand? should it be applied to simula.tcl or
> channel.cc? or others?
>
>   waiting for a reply
>
>   thanks in advance
>
>   best regards
>   Shayma
>
>
>
>
>
-- 
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

Automation & Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece
--


[ns] problem with setting label of a node.

2007-03-17 Thread Raghu-kisore Neelisetti

Hello Every one,
 Iam trying to set the label of a node with a string of length 
(approximately) 24 characters. But the nam tool is displaying only the first 19 
characters. I would like to know if there is a limit on the length of the label 
that can be used?
I would greatly appreciate if you can provide some insight into this problem.
Thanks a lot,
Raghu. 



[ns] Problem in installing NS GNU/Linux (detailed question)

2007-03-17 Thread Faisal Aslam

Hi,

Here is a detailed question :). I hope that someone will help.
I need to install a NS version for SPAN
(http://pdos.csail.mit.edu/~benjie/span/span_ns.html) that go with
otcl-1.0a6, tclcl-1.0b10, tcl8.3.2, tk8.3.2. I have installed all the
above parts sucessfully and tried many NS versions. But no success.

For example: when installing NS version ns-2.1b9a then it gives following
error.


[EMAIL PROTECTED]:~/NS-older/ns-2.1b9a> make
g++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR 
-DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
-DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H
-DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DPGM -DPGM_DEBUG
-DNS_DIFFUSION -I. -I/home/aslam/NS-older/tclcl-1.0b10
-I/home/aslam/NS-older/otcl-1.0a6 -I/home/aslam/NS-older/tk8.3.2/generic
-I/home/aslam/NS-older/tcl8.3.2/generic -I/usr/include/pcap -I./tcp
-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/main -I./diffusion3/lib -I./diffusion3/nr -I./diffusion3/ns
-I./asim/ -o common/scheduler.o common/scheduler.cc
In file included from common/scheduler.cc:46:
common/packet.h: In constructor `p_info::p_info()':
common/packet.h:227: error: `PT_PGM' undeclared (first use this function)
common/packet.h:227: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
make: *** [common/scheduler.o] Fehler 1



When I install NS with older versions (for example ns-2.1b7a) . Then it
gives following error


In file included from trace.cc:44:
tfrc.h:116: error: friend declaration requires class-key, i.e. `friend
class TfrcSendTimer'
tfrc.h:117: error: friend declaration requires class-key, i.e. `friend
class TfrcNoFeedbackTimer'
make: *** [trace.o] Fehler 1


Looking for your reply.

-- 
Faisal Aslam




[ns] Question about wireless testing ?

2007-03-17 Thread Nguyen Vo Minh Chau

Hi,
I've a question about NS-2.30:
When I run some example about wireless (or wireless sensor) like : diffusion 
(in ns-2.30\tcl\ex or ns-2.30\tcl\ex\diffusion...)...I received the same result 
like this :
  num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
  highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
  I don't know this is right or wrong ?If wrong,can you help me to correct it 
...?
Thanks so much...!



 
-
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.


Re: [ns] Problem when install ns 2.26 at Red Hat Linux 9!

2007-03-17 Thread Larry Brigman

On 3/17/07, smthin <[EMAIL PROTECTED]> wrote:
>
>
> dear all,
>
> I face the problem when i install the ns-allinone-2.26 at red hat linux 9.
>  it said "tk 8.3.2 make failed! Exiting.."
> If anyone know about this,pls let me know how to slove this problem.
>

Without more context I am guessing that you don't have the X-windows
development headers
installed.



Re: [ns] Problem when install ns 2.26 at Red Hat Linux 9!

2007-03-17 Thread Timo Reimann

smthin wrote:
> I face the problem when i install the ns-allinone-2.26 at red hat linux 9.
>  it said "tk 8.3.2 make failed! Exiting.."
> If anyone know about this,pls let me know how to slove this problem.

Virtually nobody will be able to help you if all that you provide is that
single line.

Give more relevant compiler output please.


--Timo


P.S.: someone should put a "how to ask on the mailinglist"-guide on the ns
webpage. Queries like these come in way too often...



[ns] Problem when install ns 2.26 at Red Hat Linux 9!

2007-03-17 Thread smthin


dear all,

I face the problem when i install the ns-allinone-2.26 at red hat linux 9.
 it said "tk 8.3.2 make failed! Exiting.."
If anyone know about this,pls let me know how to slove this problem.

Thanks alot!
smthin
-- 
View this message in context: 
http://www.nabble.com/Problem-when-install-ns-2.26-at-Red-Hat-Linux-9%21-tf3418459.html#a9527620
Sent from the ns-users mailing list archive at Nabble.com.



[ns] SPLIT WIRELESS TRAFFIC URGENT

2007-03-17 Thread antonis antoniou



Hi ALL,

I try to measure end to end channel capacity in a multihop network,and i try to 
split the cbr traffc from one source to 2 sinks(they are different not 
intreferenced routes).i used 2 different flows for each source-sink pair.Is 
this correct?to do the splitting of traffic??

THANKS
your answer is very important