From: Chris Wilson <cwilson@cs.stanford.edu>
Date: Tue, 24 May 94 17:08:21 PDT
Subject: Re: RLIMIT_STACK
Message-Id: <CMM.0.90.4.769824501.cwilson@Xenon.Stanford.EDU>


> > I still  have problems with oynk,  where I'm missing the definition of
> > RLIMIT_STACK.
> > 
> > Am I the only one? Patches available?
> 
> RLIMIT_STACK seems to be defined in <sys/resources.h> on the SPARC and
> DEC MIPS machines I've looked at.  Now "oynk.cc" includes <osfcn.h>,
> which is a g++ include file, which includes <sys/resources.h> on these
> machines.  Apparently the g++ include file <osfcn.h> does not include
> this on your setup.  It may be that your version of g++ is too old; a
> newer version of g++ might include <sys/resources.h> in its <osfcn.h>.
> 
> I also notice that <sys/resources.h> is included in an #ifdef
> conditional on __sparc and __svr4__ (i.e. Solaris on a SPARC), so it
> seems that this same problem was encountered under solaris.  You might
> try including this line for SunOS.

It turns out that scc also uses RLIMIT_STACK (for the same purpose)
and it just includes <sys/resources.h> unconditionally.  Since that
works for scc, oynk should do the same thing.  So you should just
remove the #ifdef before and #endif after the
``#include <sys/resources.h>'' line in "oynk.cc".  Future releases of
SUIF will include this fix.

        --Chris


From: Chris Wilson <cwilson@cs.stanford.edu>
Date: Tue, 24 May 94 14:49:41 PDT
Subject: Re: RLIMIT_STACK
Message-Id: <CMM.0.90.4.769816181.cwilson@Xenon.Stanford.EDU>


> Hi,
> 	I'm compiling Suif on  a Sparc server running  SunOS 4.1.3.  I
> heve had some problems with the  main Makefile and some subdirectories
> where ok with the local Makefile, but didn't compile when the makefile
> was called by the toplevel makefile.

Could you be a little more specific?  What were the exact errors that
you got?

You should check the version numbers of the software you're using to
install SUIF, particularly the versions of gmake and gcc/g++.  The
SUIF README file explains what versions are needed.

> I still  have problems with oynk,  where I'm missing the definition of
> RLIMIT_STACK.
> 
> Am I the only one? Patches available?

RLIMIT_STACK seems to be defined in <sys/resources.h> on the SPARC and
DEC MIPS machines I've looked at.  Now "oynk.cc" includes <osfcn.h>,
which is a g++ include file, which includes <sys/resources.h> on these
machines.  Apparently the g++ include file <osfcn.h> does not include
this on your setup.  It may be that your version of g++ is too old; a
newer version of g++ might include <sys/resources.h> in its <osfcn.h>.

I also notice that <sys/resources.h> is included in an #ifdef
conditional on __sparc and __svr4__ (i.e. Solaris on a SPARC), so it
seems that this same problem was encountered under solaris.  You might
try including this line for SunOS.

> 				Maurizio Vitale
> 
> P.S.  Also, someone  (rfg?)  mentioned that Suif  where  using the '.'
> operator for both pointer and non pointer member access. I wish my gcc
> compiler allowed that. Comments?

It may be that this is only a feature of g++, not gcc.  Or you may
have an older version of gcc.  This is definitely a very recent change
in g++.

        --Chris


From: mav@cc.gatech.edu (Maurizio Vitale)
Date: Tue, 24 May 1994 11:44:12 -0400
Subject: RLIMIT_STACK
Message-Id: <199405241544.LAA02744@gaia.cc.gatech.edu>



Hi,
	I'm compiling Suif on  a Sparc server running  SunOS 4.1.3.  I
heve had some problems with the  main Makefile and some subdirectories
where ok with the local Makefile, but didn't compile when the makefile
was called by the toplevel makefile.

I still  have problems with oynk,  where I'm missing the definition of
RLIMIT_STACK.

Am I the only one? Patches available?

				Maurizio Vitale

P.S.  Also, someone  (rfg?)  mentioned that Suif  where  using the '.'
operator for both pointer and non pointer member access. I wish my gcc
compiler allowed that. Comments?

 _______________
|        _      |\   e-mail: mav@cc.gatech.edu     | How many times can
|  /|/| '_) | ) | |  voice:  (404) 881-6083 (home) | a man turn his head,
| | | |_(_|_|/  | |          (404) 853-9382 (work) | and pretend that he
|_______________| |                                | just doesn't see ?
 \_______________\|  fax:    (404) 853-9378        |  - Bob Dylan