							January 22, 1993

This file comes to you from:

    pub/contrib/g++/iv-3.1-g++-3.1.tar.Z@interviews.stanford.edu


Here is a set of patches to help you get iv-3.1 working with a free
compiler.  I am using iv-3.1 and libg++-2.2 and gcc-2.3.3 on a Sun ELC
(sun4 SPARC) running SunOS 4.1.2.  Future versions of libg++ and gcc
should continue to work as well as the versions describe here.

This file does not constitute a release, or a permanent migration
version of iv.  In the future, I will provide ONLY diffs against
virgin sources, with the specified fixes applied.

After patching, keep the patches around, because when you get the next
one, you will need to UNDO these patches, or re-extract virgin 3.1.
You will need to apply any fixes that you want, should any be released
for InterViews 3.1, so far, none are available.

Note, these patches should now enable you to compile any interviews
programs you have.  Your programs should now work.

You will need around 34 megabytes to compile g++ and 64 megabytes to
compile and install InterViews.  InterViews takes up around 20
megabytes when installed.  The compiler takes around 12 megabytes when
installed, and libg++ takes around 3.  You might want to get gdb-4.6
(or higher) from prep.ai.mit.edu to debug your InterViews programs.
On quite a few machines you will either need to use gas and GNU ld, or
collect (collect2) from gcc.

To build the compiler and libg++, I use something like:

	PATH="/usr/local/gcc-2.3.3/bin:$PATH"
	./configure --prefix=/usr/local/gcc-2.3.3 sun4
	make -k
	make -k INSTALL_HEADERS=install-fixincludes install

After extracting InterViews 3.1, you will need to patch it:

	patch -p0 <iv-3.1.diffs

In order for make depend to work, you will need to edit the gcc.def
file and let it know where the include directories are.  If you
configure as above, you should be pretty well set.  You will need to
edit local.def (down in iv/src/config/InterViews) if your X11
installation is not in /usr/local/X11R5.  You will need to edit
local.def if you want InterViews installed someplace other than
/usr/local/interviews-3.1-g++-2.3.3.

Then to build InterViews, I:

	make XCONFIGDIR=/usr/local/X11R5/lib/X11/config World

You might need to build tif_fax3.c in iv/src/lib/IV with /bin/cc if
gcc core dumps.

Every demo program should work, including doc.  idraw might be short
on one of it's menus, this is related to a bug in libg++ I think.  Let
me know what works for you and what does not, and what machine you are
using.  Also, if you have CFront, let me know of behavior differences
between a CFront compiled InterViews and a g++ compiled InterViews.


Machines software is known to work on:  (Please help me fill out this list)

	sun4		SunOS 4.1.2


Here is my planning guide:

Phase One	(Completed)
   Get the source files turned into .o files a quickly as possible
   If this means making weird changes to IV, so be it.
Phase Two	(Completed)
   Get things to link
Phase Three	(Completed)
   Verify that the a.out's work.  Bug fix the compiler where necessary.
   Bug fix IV where necessary.  (This so far has not been the case, usually)
   Work-around as necessary.
Phase Four	(Continuing work)
   Reduce the number of #ifdef __GNUC__ in the code, by way of compiler
   enhancement, to an absolute minimum.
Phase Five	(Completed)
   Write the missing library code for libg++ for doc.
Phase Six	(In progress for InterViews, Completed for gcc 2.3.3)
   Verify that author released versions of software work as well as what I
   have.  If not, submit bug fixes and enhancements.


Send any mods, additions, problems or comments to Mike Stump <mrs@cygnus.com>.
