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

Re: Help Install ns2.1b5( is it bug???)



There's a lot of material covering getrusage on Solaris in the
archives. I'm building on Solaris 2.5.1, but since I'm still using gcc
2.7.2.1 it merely complains; it doesn't abort. Gives:

  mem-trace.h: In method `void MemInfo::checkpoint()':
  In file included from scheduler.cc:49:
  mem-trace.h:67: warning: implicit declaration of function `int
  getrusage(...)'

(with snapshot of 2 November.)
You can probably edit <mem-trace.h> to get around this, or fiddle with
compiler options.

You'll need to install perl, too.

L.

On Fri, 5 Nov 1999, R.Dorr wrote:

> Date: Fri, 5 Nov 1999 06:46:50 +0900
> From: R.Dorr <[email protected]>
> To: ns-users <[email protected]>
> Subject: Help Install ns2.1b5( is it bug???)
> 
> Hi...
> I use Solaris 2.5.1 and gcc 2.95, ns 2.1b5
> 
> ./install
> 
> ---- snip-------------
> some error...
> ----- snip ------------
> checking for tcl.h... -I../tclbox/include
> checking for libtcl8.0... -R../tclbox/lib -L../tclbox/lib -ltcl8.0
> checking for init.tcl... ../tclbox/lib/tcl8.0
> checking for tclsh8.0.4... (cached)
> /home/guru0109/tmp/ns-allinone-2.1b5/tclbox/
> bin/tclsh8.0
> checking for tk.h... -I../tkbox/include
> checking for libtk8.0... -R../tkbox/lib -L../tkbox/lib -ltk8.0
> checking for tk.tcl... ../tkbox/lib/tk8.0
> checking for otcl.h... -I../otcl-1.0a4
> checking for libotcl1.0a4... -R../otcl-1.0a4 -L../otcl-1.0a4 -lotcl
> checking for tclcl.h... -I../tclcl-1.0b8
> checking for libtclcl1.0b8... -R../tclcl-1.0b8 -L../tclcl-1.0b8 -ltclcl
> checking for tcl2c++... ../tclcl-1.0b8
> checking for X11 header files
> checking for X11 library archive
> checking for XOpenDisplay in -lX11... (cached) no
> checking for libXext.a
> checking for libtcldbg... no
> checking dmalloc... not requested with --with-dmalloc
> checking for perl... no
> checking for perl5... no
>     perl version 5.002 not found
> configure: warning: Perl5 not found; test scripts will not run succesfully.
> checking for getrusage... (cached) yes
> checking for sbrk... (cached) yes
> checking for strtoq... (cached) no
> checking for strtoll... (cached) yes
> Explicitly disabling static compilation
> checking for main in -ldl... (cached) yes
> checking for a BSD compatible install... ./install-sh -c
> creating ./config.status
> creating Makefile
> creating tcl/lib/ns-autoconf.tcl
> creating indep-utils/webtrace-conv/ucb/Makefile
> creating indep-utils/webtrace-conv/dec/Makefile
> creating indep-utils/webtrace-conv/nlanr/Makefile
> creating indep-utils/webtrace-conv/epa/Makefile
> creating indep-utils/cmu-scen-gen/setdest/Makefile
> c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -mv8 -msupersparc -D_
> _svr
> 4__ -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE
> _OTC
> L_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADE
> RS=1
>  -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LI
> BTK8
> _0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1
> _0B8
> =1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOLL=1 -DHAVE_LIBDL=1 -I. -I/u
> sr/o
> penwin/include  -I../tclcl-1.0b8 -I../otcl-1.0a4 -I../tkbox/include -I../tcl
> box/
> include -o scheduler.o scheduler.cc
> In file included from scheduler.cc:49:
> mem-trace.h: In method `void MemInfo::checkpoint()':
> mem-trace.h:67: implicit declaration of function `int getrusage(...)'
> *** Error code 1
> make: Fatal error: Command failed for target `scheduler.o'
> Ns make failed! Exiting ...
> [tenet3:/home/guru0109/tmp/ns-allinone-2.1b5]#
> 
> 
> hmm... i can't find any infomation about this error...
> 
> Any Advice Plz...
> 
> Thx in advance.
> 
> 
> ______________________________________________________
> 
> Choi Young Soo
> e-m@ail   : mailto:[email protected]
> icq       : 43998959
> myh0me    : http://palgong.knu.ac.kr/~guru0109
> TeNet Lab : http://tenet.knu.ac.kr/
> 
> 
> 
> 

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>