[ns] installation problem (the version is ns-allinone-2.1b6)
Wed Apr 24 08:25:01 2002
OS: RedHat Linux 7.2
NS2 version: ns-allinone-2.1b6a.tar.gz (download from
my problem: I have installed the version 2.1b8a successfully. But now I
have to install the old version, i.e. 2.1b6. This is because the
avaliable ZRP implementation is for NS2 2.1b6. I tried to install it
under 2.1b8a, failed. What I did is I removed the 2.1b8a by "rm -rf
ns-allinone-2.1b8a" and tried to install the 2.1b6. First, it occured
error during installed the tclcl. I added "include <stdlib.h>" into the
/tclcl-1.0b9/tracedvar.cc. Then I removed the ns-allinone-2.1b6a and
re-created it. It still didn't work. The error information was:
c++ -c -O2 -I. -I/ns-allinone-2.1b6/tclcl-1.0b9
-I/ns-allinone-2.1b6/tclbox/include -o utils.o utils.cc
utils.cc: In function `int saccept (int)':
utils.cc:358: cannot convert `int *' to `socklen_t *' for argument `3'
to `accept (int, sockaddr *, socklen_t *)'
utils.cc: In function `int sportnum (int)':
utils.cc:469: cannot convert `int *' to `socklen_t *' for argument `3'
to `getsockname (int, sockaddr *, socklen_t *)'
make: *** [utils.o] Error 1
make: Leaving directory
make: *** [all-recursive] Error 2
Ns make failed!
Can you tell me how to do with it? Thanks in advance. By the way, is
there any ZRP implementation avaliable for the 2.1b8a?