home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / intervws / contrib / g++ / README-3.1 < prev    next >
Encoding:
Text File  |  1993-01-21  |  3.6 KB  |  93 lines

  1.                             January 22, 1993
  2.  
  3. This file comes to you from:
  4.  
  5.     pub/contrib/g++/iv-3.1-g++-3.1.tar.Z@interviews.stanford.edu
  6.  
  7.  
  8. Here is a set of patches to help you get iv-3.1 working with a free
  9. compiler.  I am using iv-3.1 and libg++-2.2 and gcc-2.3.3 on a Sun ELC
  10. (sun4 SPARC) running SunOS 4.1.2.  Future versions of libg++ and gcc
  11. should continue to work as well as the versions describe here.
  12.  
  13. This file does not constitute a release, or a permanent migration
  14. version of iv.  In the future, I will provide ONLY diffs against
  15. virgin sources, with the specified fixes applied.
  16.  
  17. After patching, keep the patches around, because when you get the next
  18. one, you will need to UNDO these patches, or re-extract virgin 3.1.
  19. You will need to apply any fixes that you want, should any be released
  20. for InterViews 3.1, so far, none are available.
  21.  
  22. Note, these patches should now enable you to compile any interviews
  23. programs you have.  Your programs should now work.
  24.  
  25. You will need around 34 megabytes to compile g++ and 64 megabytes to
  26. compile and install InterViews.  InterViews takes up around 20
  27. megabytes when installed.  The compiler takes around 12 megabytes when
  28. installed, and libg++ takes around 3.  You might want to get gdb-4.6
  29. (or higher) from prep.ai.mit.edu to debug your InterViews programs.
  30. On quite a few machines you will either need to use gas and GNU ld, or
  31. collect (collect2) from gcc.
  32.  
  33. To build the compiler and libg++, I use something like:
  34.  
  35.     PATH="/usr/local/gcc-2.3.3/bin:$PATH"
  36.     ./configure --prefix=/usr/local/gcc-2.3.3 sun4
  37.     make -k
  38.     make -k INSTALL_HEADERS=install-fixincludes install
  39.  
  40. After extracting InterViews 3.1, you will need to patch it:
  41.  
  42.     patch -p0 <iv-3.1.diffs
  43.  
  44. In order for make depend to work, you will need to edit the gcc.def
  45. file and let it know where the include directories are.  If you
  46. configure as above, you should be pretty well set.  You will need to
  47. edit local.def (down in iv/src/config/InterViews) if your X11
  48. installation is not in /usr/local/X11R5.  You will need to edit
  49. local.def if you want InterViews installed someplace other than
  50. /usr/local/interviews-3.1-g++-2.3.3.
  51.  
  52. Then to build InterViews, I:
  53.  
  54.     make XCONFIGDIR=/usr/local/X11R5/lib/X11/config World
  55.  
  56. You might need to build tif_fax3.c in iv/src/lib/IV with /bin/cc if
  57. gcc core dumps.
  58.  
  59. Every demo program should work, including doc.  idraw might be short
  60. on one of it's menus, this is related to a bug in libg++ I think.  Let
  61. me know what works for you and what does not, and what machine you are
  62. using.  Also, if you have CFront, let me know of behavior differences
  63. between a CFront compiled InterViews and a g++ compiled InterViews.
  64.  
  65.  
  66. Machines software is known to work on:  (Please help me fill out this list)
  67.  
  68.     sun4        SunOS 4.1.2
  69.  
  70.  
  71. Here is my planning guide:
  72.  
  73. Phase One    (Completed)
  74.    Get the source files turned into .o files a quickly as possible
  75.    If this means making weird changes to IV, so be it.
  76. Phase Two    (Completed)
  77.    Get things to link
  78. Phase Three    (Completed)
  79.    Verify that the a.out's work.  Bug fix the compiler where necessary.
  80.    Bug fix IV where necessary.  (This so far has not been the case, usually)
  81.    Work-around as necessary.
  82. Phase Four    (Continuing work)
  83.    Reduce the number of #ifdef __GNUC__ in the code, by way of compiler
  84.    enhancement, to an absolute minimum.
  85. Phase Five    (Completed)
  86.    Write the missing library code for libg++ for doc.
  87. Phase Six    (In progress for InterViews, Completed for gcc 2.3.3)
  88.    Verify that author released versions of software work as well as what I
  89.    have.  If not, submit bug fixes and enhancements.
  90.  
  91.  
  92. Send any mods, additions, problems or comments to Mike Stump <mrs@cygnus.com>.
  93.