[ns] problem with ns2.33

2008-09-13 Thread eng Rony




Eng Rony
hi ns users,
i want to simulate GPSR protocol by using ns2.33 and after i do all changes 
required appear to me errors when type make make: CXX@: Command not found and 
make: *** [common/packet.o] Error 127 inspite of from changes that must i do 
to remove common/packet.o. the following is the full code when run configure 
and make:
 
[EMAIL PROTECTED]:~$ cd ns-allinone-2.33
[EMAIL PROTECTED]:~/ns-allinone-2.33$ cd ns-2.33
[EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ configure
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking if the compiler understands -pipe... yes
checking for building with threads... no (default)
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version... Linux-2.6.22-14-generic
checking for dlopen in -ldl... yes
checking for ar... ar
checking for build with symbols... no
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for struct tm.tm_zone... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for struct stat.st_blksize... yes
checking for fstatfs... yes
checking for working memcmp... yes
checking for memmove... yes
checking proper strstr implementation... ok
checking for strtoul... yes
checking proper strtoul implementation... ok
checking for strtod... yes
checking proper strtod implementation... ok
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... 

Re: [ns] several sinks on single node

2008-09-13 Thread Mayur Mansukhlal Vegad

Dear Abdelhak,
Answers are intermingled with your questions...

Abdelhak Farsi wrote:
 Hi there,
 I assume that in 802.11 WLAN working in infrastructure mode, 
Your assumption is right but only for the latest version, 2.33. There 
are various versions of WLAN implementations available. Go through 
Section 16.3 in the NS (latest) Manual for further info.
 I have a base
 station sending different TCP streams to a single wireless station ( each
 stream is distinguished by the size of the packets sent and each stream
 represent a single application),
 my question is : Is it possible to define several sinks on the receiving
 wireless station to intercept all the streams?
   
Yes, it is possible. A single node can have two (or more) TCPSink agents 
each receiving from different TCP source agents. What problem you faced, 
that could not be understood.
 best regards

   
Mayur



Re: [ns] problem - undefined reference ... while compiling ns-allinone-2.33 in debian

2008-09-13 Thread Tom Henderson

Daniel Henrique Joppi wrote:
 anybody?
 
 On Thu, Sep 4, 2008 at 10:12 PM, Daniel Henrique Joppi 
 [EMAIL PROTECTED] wrote:
 
 Help...

 I have changed to get rid of inline keywords but the errors are
 persisting...

 ---

 ---
 In file included from ./trace/trace.h:43,
  from ./trace/cmu-trace.h:42,
  from aodvg/aodvg_rqueue.cc:33:
 ./common/packet.h: In static member function 'static void
 p_info::initName()':
 ./common/packet.h:273: warning: deprecated conversion from string constant
 to 'char*'

snip

 ./common/packet.h:368: warning: deprecated conversion from string constant
 to 'char*'

Daniel,

To avoid all of these warnings, try adding the gcc option 
-Wno-write-strings to your ns-2 Makefile; e.g.

CCOPT   = -g -Wall -Wno-write-strings

The above fixed the problem for me for gcc-4.3.2 machines.


 -L/home/norxs/ns-allinone-2.33/tclcl-1.19 -ltclcl
 -L/home/norxs/ns-allinone-2.33/otcl-1.13 -lotcl
 -L/home/norxs/ns-allinone-2.33/lib -ltk8.4
 -L/home/norxs/ns-allinone-2.33/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm -lm
 trace/cmu-trace.o: In function `hdr_aodvg::access(Packet const*)':
 cmu-trace.cc:(.text._ZN9hdr_aodvg6accessEPK6Packet[hdr_aodvg::access(Packet
 const*)]+0x7): undefined reference to `hdr_aodvg::offset_'
 collect2: ld returned 1 exit status
 make: ** [ns] Erro 1

 ---

 ---
 #in /home/norxs/ns-allinone-2.33/ns-2.33/aodvg/aodvg_packet.h
 struct hdr_aodvg {
 u_int8_t ah_type;
 /*
  u_int8_tah_reserved[2];
  u_int8_tah_hopcount;
  */
 // Header access methods
 static int offset_; // required by PacketHeaderManager
 inline static int offset() {
 return offset_;
 }
 inline static hdr_aodvg* access(const Packet* p) {
 return (hdr_aodvg*) p-access(offset_);
 }
 };


 

As for this error, do you have a line like this?

trace/cmu-trace.cc:#include aodv/aodvg_packet.h

Tom