[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Compiling NS in SunOS 5.7 Solaris 2.57



are you using gcc or SUN's cc? In later case it might help to compile using gcc.

>Date: Wed, 30 Aug 2000 12:29:13 -0400
>From: Hernandez Edwin <[email protected]>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: [email protected]
>Subject: [ns] Compiling NS in SunOS 5.7 Solaris 2.57
>Content-Transfer-Encoding: 7bit
>
>I downloaded TCL8.3.2 and TK 8.3.2, successfully compiled both, in
>addition otcl and tclcl are compiled.... however tclcl required
>TCL/TK8.0.4.
>Now when I try to re-compile NS in a Ultra-60,
>
>cd ns-2.1b6
>./configure --with-otcl=../otcl-1.0a5 --with-tclcl=../tclcl-1.0b9
>--with-tcl=../tclbox --with-tk=../tkbox --disable-static
>--with-tcl-ver=8.3.2 --with-tk-ver=8.3.2 --enable-gcc
>make
>
>I receive this error message:
>c++ -c -O2 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG
>-mv8 -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_LIBTCLCL1_0B9
>-DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A5 -DHAVE_OTCL_H -DHAVE_LIBTK8_3
>-DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I.
>-I/hlab/edwin/ns-allinone-2.1b6/tclcl-1.0b9
>-I/hlab/edwin/ns-allinone-2.1b6/otcl-1.0a5
>-I/hlab/edwin/ns-allinone-2.1b6/tkbox/include
>-I/hlab/edwin/ns-allinone-2.1b6/tclbox/include -o random.o random.cc
>random.cc: In function `int random()':
>random.cc:45: new declaration `int random()'
>/usr/include/stdlib.h:210: ambiguates old declaration `long int
>random()'
>make: *** [random.o] Error 1
>
>I had NS perfectly working under Linux and I have clean the .o files
>from previous machines, everything compiles except NS.  Any
>suggestions??
>I read some suggestions from people aboug changing config.h  but has
>anyone tried them yet? how about the validation scripts? is NS stable?
>does it provide accurate results?
>
>Edwin Hernandez
>HARRIS Lab
>University of Florida
>

Tarik