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

Re: Installation errir : mem-trace.h:36: field 'time' has incomplete type



On Wed, 16 Sep 1998 13:41:57 -0000, "Kevin Curran" wrote: 
>Thanks Gang for logging in and changing .cshrc. Now when I type ./install and the 
>installation gets as far as the error message......
>
>checking for a BSD compatible install... ./install-sh -
>c./config.statusMakefile++ -c -g -DNO_TK -DTCLCL_CLASSINSTVAR  -
>DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM -
>DHAVE_LIBTCLCL1_0B5 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A2 
>-DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -
>DHAVE_TCL_H  -I. -I/usr/openwin/include -I../TclCL -I../otcl -
>I../tkbox/include -I../tclbox/include
>-o scheduler.o scheduler.ccfile included from scheduler.cc:48:
>mem-trace.h:36: field 'time' has incomplete type
>mem-trace.h: In function 'void' * cur_stck(struct MemInfo *):
>mem-trace.h:43: confused by earlier errors, bailing out
>make: *** [scheduler.o] Error 1
>Ns make failed! Exiting ...
>
>Has anyone seen this? (I've searched through the archive...However, I can't seem to find a 
>similar problem). I'm using Solaris 2.4. i also enclose the entire compilation message 
>below.

After bug reports from a couple of people, I believe that mem-trace.h
works under Solaris 2.4 in the current snapshot.  (Although I've not
seen the compile error that you report previously.)

I added this to the ns-problems page:

  <li> <strong>Problem:</strong>mem-trace.h doesn't compile or ns
       fails to link because of errors about getrusage.

       <p>
       <strong>Solution:</strong>
       Ns-2.1b4 and snapshots after 15-Sep-98 should autodetect getrusage.
       Upgrade to those versions.

       <strong>Work-around:</strong>
       Comment out lines in mem-trace.h which reference getrusage and/or sbrk
       until things compile.
       (This will disable memory monitoring but basic ns will still work.)

   -John Heidemann