LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Need your help for Leach NS2 installation bugs (https://www.linuxquestions.org/questions/linux-wireless-networking-41/need-your-help-for-leach-ns2-installation-bugs-4175453566/)

kingrulez 03-10-2013 11:02 PM

Need your help for Leach NS2 installation bugs
 
Hi,

I am getting the errors while installing leach NS2 on Ubuntu 10.04 (64 -bit). I am using Leach NS 2.34 with g++-4.3 compiler. Please take a look at below.

I have a question regarding this, am i downloaded and installed wrong complier or too many compliers have been installed?.

I am new to this, not getting any idea, could anybody please help me to find out the solution.

KSR@ubuntu:~$ cd ~/opt/ns-allinone-2.34/ns-2.34/
KSR@ubuntu:~/opt/ns-allinone-2.34/ns-2.34$ ./configure
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... no
checking if STL works without any namespace... no
checking if STL works with namespace std... no
checking if STL works with namespace stl... no
checking should use STL... no, couldn't find STL
checking for tcl.h... -I../tcl8.4.18/generic
checking for tclInt.h... -I../tcl8.4.18/generic
checking for libtcl8.4... no
checking for init.tcl... ../tcl8.4.18/library
checking for http.tcl... ../tcl8.4.18/library/http
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... no
checking for tclsh8.4... /usr/bin/tclsh8.4
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.

Thanks in advance for your help.

Kind Regards,
KSR.

knudfl 03-11-2013 04:35 AM

Welcome to LQ.
Quote:

checking for g++... no
Installing the compilers : sudo apt-get install g++ g++-4.1

Quote:

downloaded and installed wrong complier or too many compliers have been installed ?
Please use 'apt-get' for all Ubuntu package install.
And : You can have as many versions of gcc/g++ as you want, installed at the same time.

Quote:

KSR@ubuntu:~/opt/ns-allinone-2.34/ns-2.34$ ./configure
Wrong. The compiler must be set :
export CC=gcc-4.1 CXX=g++-4.1 && ./configure

Quote:

configure: error: Installation of tcl seems incomplete or can't be found automatically.
Some parts of the install are missing. A correct install starts this way :
cd ns-allinone-2.34/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install
.. Then you will have tcl / tk etc.
And can use that tcl etc. if you want to reconfigure in ns-allinone-2.34/ns-2.34.

Note 1 : You don't have to use /opt/. Default is: /home/<name>/ns-allinone-2.34.
You can use the script "leach-HOME-setup234.sh", post # 11 here ..
http://www.linuxquestions.org/questi...a13-907076/#11
And please replace ns-2.34/trace/cmu-trace.h with the edited file, # 9
http://www.linuxquestions.org/questi...ra13-907076/#9

Note 2 : Ns2 is for a 32bits OS (i686). A 64bits OS : You will get an inferior validate result.

Note 3 : I prefer to use g++-4.1 . The g++-4.3 compiler may work too ?

-

kingrulez 03-12-2013 07:28 PM

Thanks for your reply
 
Hi again,

I have followed your comments, and also followed to edit step-by-step. Still, I am unable to access this complete NS2 installation, getting the following errors, please take a look. Tcl file failed to execute.

Any suggestions or comments please!!

Best Regards,
KSR.



============================================================
* Build tcl8.4.18
============================================================
rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \
errors tclsh tcltest lib.exp Tcl
cd dltest ; make clean
make[1]: Entering directory `/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/dltest'
rm -f *.o config.cache config.log config.status
rm -f lib.exp ../dltest.marker
rm -f *.so
make[1]: Leaving directory `/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/dltest'
rm -rf Makefile config.status config.cache config.log tclConfig.sh \
SCRPtcl.* prototype *.plist Tcl.framework
cd dltest ; make distclean
make[1]: Entering directory `/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/dltest'
rm -f *.o config.cache config.log config.status
rm -f lib.exp ../dltest.marker
rm -f *.so
rm -f Makefile
make[1]: Leaving directory `/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/dltest'
./install: 431: autoconf: not found
creating cache ./config.cache
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-4.3
checking whether the C compiler (gcc-4.3 ) works... yes
checking whether the C compiler (gcc-4.3 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc-4.3 accepts -g... yes
checking how to run the C preprocessor... g++-4.3
checking dirent.h... yes
checking for errno.h... no
checking for float.h... no
checking for values.h... no
checking for limits.h... no
checking for stdlib.h... no
checking for string.h... no
checking for sys/wait.h... no
checking for dlfcn.h... no
checking for unistd.h... no
checking for sys/param.h... no
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 for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
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.32-45-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... using long
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 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 for sys/time.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... 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 st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean 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 ANSI C header files... no
checking for mode_t... no
checking for pid_t... no
checking for size_t... no
checking for uid_t in sys/types.h... no
checking for socklen_t... no
checking for opendir... (cached) yes
checking union wait... no
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... missing
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... yes
checking for langinfo.h... no
checking whether to use nl_langinfo... no
checking for fts... no
checking for sys/ioctl.h... no
checking for sys/filio.h... no
checking system version... (cached) Linux-2.6.32-45-generic
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking whether to enable DTrace support... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating dltest/Makefile
creating tclConfig.sh
gcc-4.3 -c -O2 -pipe -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I. -I/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic -I/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix -DNO_ERRNO_H=1 -DNO_FLOAT_H=1 -DNO_VALUES_H=1 -DNO_LIMITS_H=1 -DNO_STDLIB_H=1 -DNO_STRING_H=1 -DNO_SYS_WAIT_H=1 -DNO_DLFCN_H=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned -Duid_t=int -Dgid_t=int -Dsocklen_t=unsigned -DNO_UNION_WAIT=1 -DGETTOD_NOT_DECLARED=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DTCL_SHLIB_EXT=\".so\" /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c
In file included from /usr/include/stdio.h:34,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tcl.h:159,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:33,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/usr/lib/gcc/x86_64-linux-gnu/4.3.4/include/stddef.h:214: error: duplicate ‘unsigned’
In file included from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:45,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/stdlib.h:29: warning: conflicting types for built-in function ‘calloc’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/stdlib.h:32: warning: conflicting types for built-in function ‘free’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/stdlib.h:34: warning: conflicting types for built-in function ‘malloc’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/stdlib.h:38: warning: conflicting types for built-in function ‘realloc’
In file included from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:28,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:50,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/usr/include/sys/types.h:67: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:72: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:82: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:100: error: two or more data types in declaration specifiers
In file included from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:50,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:34: warning: conflicting types for built-in function ‘memchr’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:36: warning: conflicting types for built-in function ‘memcmp’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:38: warning: conflicting types for built-in function ‘memcpy’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:42: warning: conflicting types for built-in function ‘memmove’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:45: warning: conflicting types for built-in function ‘memset’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:53: warning: conflicting types for built-in function ‘strcspn’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:57: warning: conflicting types for built-in function ‘strlen’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:58: warning: conflicting types for built-in function ‘strncasecmp’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:60: warning: conflicting types for built-in function ‘strncat’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:62: warning: conflicting types for built-in function ‘strncmp’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:64: warning: conflicting types for built-in function ‘strncpy’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:69: warning: conflicting types for built-in function ‘strspn’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c: In function ‘dovec’:
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:1589: warning: passing argument 1 of ‘free’ from incompatible pointer type
make: *** [regcomp.o] Error 1
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see [/COLOR]http://www.scriptics.com

knudfl 03-12-2013 09:20 PM

Please edit posts #1 and #3 to use 'code tags'
http://www.linuxquestions.org/questi....php?do=bbcode
I.e. type [/code] at text end, and [code] at error / code text start.
( Or use the # button in the 'Advanced Editor'.)

Quote:

==============
* Build tcl8.4.18
==============
.
checking how to run the C preprocessor... g++-4.3
Something is really really wrong. With gcc-4.3 ? Or ?
Should be :
checking how to run the C preprocessor... gcc-4.3 -E


Better : 1) sudo apt-get install g++-4.1
2) cd ns-allinone-2.34/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

If tcl8.4.18 fails again, please do :
cd ns-allinone-2.34/tcl8.4.18/unix/ && make distclean && exit
.. Then start with '2)' again.

-

kingrulez 03-13-2013 05:15 AM

Getting the same error on tcl8.4.18 file
 
Hi again,

Thank you very much for your help.

I have done, what you have suggested me in the previous post, still it does not work, getting the errors on tcl8.4.18 file. Could you please check this again. Did i forget to install any patch up files?, please suggest me, where i have done the mistakes or wrong compilations exactly, if have any problems with my installation, I will do it again from the scratch, can u please also suggest me the step-by-step procedures from the beginning. Please take a look again.

s-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c
In file included from /usr/include/stdio.h:34,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tcl.h:159,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:33,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/stddef.h:214: error: duplicate ‘unsigned’
In file included from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:45,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/stdlib.h:29: warning: conflicting types for built-in function ‘calloc’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/stdlib.h:34: warning: conflicting types for built-in function ‘malloc’
In file included from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:28,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:50,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/usr/include/sys/types.h:67: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:72: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:82: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:100: error: two or more data types in declaration specifiers
In file included from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/tclInt.h:50,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcustom.h:30,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regguts.h:38,
from /home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:33:
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:36: warning: conflicting types for built-in function ‘memcmp’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:38: warning: conflicting types for built-in function ‘memcpy’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:42: warning: conflicting types for built-in function ‘memmove’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:45: warning: conflicting types for built-in function ‘memset’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:53: warning: conflicting types for built-in function ‘strcspn’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:57: warning: conflicting types for built-in function ‘strlen’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:58: warning: conflicting types for built-in function ‘strncasecmp’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:60: warning: conflicting types for built-in function ‘strncat’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:62: warning: conflicting types for built-in function ‘strncmp’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:64: warning: conflicting types for built-in function ‘strncpy’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/../compat/string.h:69: warning: conflicting types for built-in function ‘strspn’
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c: In function ‘dovec’:
/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix/../generic/regcomp.c:1589: warning: passing argument 1 of ‘free’ from incompatible pointer type
make: *** [regcomp.o] Error 1
tcl8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see [/COLOR]http://www.scriptics.com

knudfl 03-13-2013 06:44 AM

Please edit all your posts #1 #3 #5 to use code tags :
http://www.linuxquestions.org/questi....php?do=bbcode
I.e. type [/code] at text end, and [code] at code / error text start.

And : Bold and colors are for one or a few words. Please edit to normal text.
(I will read the post when the editing has been done, not very readable for now.)
Also : You can delete all the text not relevant for ns2 :
xgraph errors, { cweb, sgb, GT-ITM, zlib text }.


Quote:

./install: 431: autoconf: not found
All ns2 prerequisites must be installed before you can build any ns2 :
sudo apt-get install g++ make automake autoconf libtool patch libxmu-dev xgraph

-

kingrulez 03-13-2013 09:56 AM

This time getting error on Tcl/unix/Config.log file
 
Thanks for your comments or suggestions.

I think, I am almost close to the successful compilation. Please advise me to clear the following bugs.

checking how to run the C preprocessor... g++-4.1
configure: error: in `/home/somasekharkandukuri/ns-allinone-2.34/tcl8.4.18/unix '.
configure: error: C preprocessor "g++-4.1" fails sanity check
See `config.log' for more details.
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project.

Best Regards,
Somasekhar.

knudfl 03-13-2013 01:44 PM

Quote:

checking how to run the C preprocessor... g++-4.3
Quote:

checking how to run the C preprocessor... g++-4.1
Must be e.g.: checking how to run the C preprocessor... gcc-4.3 -E


I guess you will have to start from scratch. ( Delete everything.)
But you can try an easier way, if it's tcl only : Delete tcl8.4.18/,
and unpack a new tcl : tar xvf tcl8.4.18-src.tar.gz
http://en.sourceforge.jp/projects/sf...18-src.tar.gz/

-

kingrulez 03-13-2013 02:32 PM

Unable to clear that error, getting the same error again
 
Hi,

I have reinstalled it from the scratch, what you were suggested me in the previous post, still getting the same error on Tcl file, even I have removed and reinstalled the g++ compiler, even though facing same errors, could you please suggest me, why i am getting this. Nevertheless, please advise me a step-by-step procedure of the installation.

Best Regards,
KSR.

knudfl 03-13-2013 11:08 PM

# 9 .

There is something fundamentally wrong with your OS / package install:
when the two genuine Ubuntu compilers gcc-4.3 and gcc-4.1
both are attempting to use g++** for c files. Which is not possible !

Possible solutions : Install a new OS, e.g. Ubuntu 10.04, 32 bits.

Or repair your current OS :
Uninstall all gcc / g++ packages if they were installed manually.
( Post #1 says "downloaded and installed" ).
Then reinstall g++, g++-4.1 (and g++-4.3 ) with 'synaptic' or 'sudo apt-get install'.
Or just do a reinstall :
sudo apt-get update && sudo apt-get install --reinstall <package>
.. Where <package> is to be all cpp gcc g++, etc. dependencies.

-

kingrulez 03-18-2013 06:12 PM

Finally done with NS2 installation
 
Thanks for your suggestion.

Yes, it was problem with Ubuntu linux 64-bit OS: it doesn't support Leach NS2 compilation or G++ compilers, i guess.

Now, switched to 32-bit Ubuntu, its running successfully.


Running test wired:
../../ns test-suite-satellite.tcl wired QUIET
Test output agrees with reference output
Running test aloha:
../../ns test-suite-satellite.tcl aloha QUIET
Test output agrees with reference output
Running test aloha.collisions:
../../ns test-suite-satellite.tcl aloha.collisions QUIET
Test output agrees with reference output
Running test mixed.legacy:
../../ns test-suite-satellite.tcl mixed.legacy QUIET
Test output agrees with reference output
All test output agrees with reference output.
Mon Mar 18 16:29:14 PDT 2013
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode


validate overall report: all tests passed
somasekharkandukuri@ubuntu:~/ns-allinone-2.34/ns-2.34$

Best Regards,
KSR.


All times are GMT -5. The time now is 03:27 PM.