File:  [local] / rpl / README
Revision 1.16: download - view: text, annotated - select for diffs - revision graph
Tue Jun 28 11:18:42 2011 UTC (12 years, 10 months ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Changement du README.

    1: ================================================================================
    2:     RPL/2 (R)
    3: ================================================================================
    4: 
    5: --------------------------------------------------------------------------------
    6:     WARNING :
    7: 
    8:     LESSTIF IS BROKEN AND CORRUPTS HEAP. PLEASE, DO NOT USE LESSTIF INSTEAD
    9:     REGULAR MOTIF LIBRARIES!
   10: 
   11:     I SHALL NOT ACCEPT ANY BUG REPORT FROM USERS THAT HAVE BUILD RPL/2 WITH
   12:     LESSTIF LIBRAIRIES SINCE OPENMOTIF IS AVAILABLE.
   13: 
   14:     DO NOT USE 'make install-strip' THAT BREAKS RPL/2.
   15: 
   16:     NOTE :
   17: 
   18:     IF RPL/2 ABORTS WITH BUS ERROR, PLEASE TRY TO REBUILD OPENSSL (tools)
   19:     WITH no-asm OPTION. OPENSSL IS BROKEN ON SPARC ARCHITECTURE. MAYBE ON SOME
   20:     OTHERS.
   21: --------------------------------------------------------------------------------
   22: 
   23:     RPL/2 signifies Reverse Polish Lisp/2. This language is obvious derivated
   24: from the first RPL written by Hewlett-Packard for its 28S calculator. Thus,
   25: this language is a half-compiled high level language which can perform
   26: symbolic and scientific computations.
   27: 
   28: 
   29:   * RPL/2 requires :
   30:     - nawk or gawk;
   31:     - libtool 1.5 or newer. To build RPL/2 on Mac OSX, you should have to
   32:     add libtool m4 path in tools/file-*/configure.ac and
   33:     tools/file-*/Makefile.am;
   34:     - gcc-4.4 or newer;
   35:     - g++-4.4 or newer;
   36:     - gfortran-4.4 or newer.
   37: 
   38:     RPL/2 build process invoques automake and autoconf.
   39: 
   40:   * OpenSSL issue :
   41: 
   42:     OpenSSL does not use any configure script. If build process aborts on
   43: error related to OpenSSL, you shall try to build OpenSSL before running
   44: 'make'. On some system, OpenSSL configure script is unable to set compiler
   45: flags.
   46: 
   47:   * RPL/2 is known to run on :
   48: 
   49:     - Linux (kernel 2.6.26 and beyond). Test distribution is Debian.
   50:     - Solaris 8 and beyond.
   51:         It can be built out of the box on Solaris in a 32bits userland. For a
   52:         64bits executable, you have to modify some generated makefiles or
   53:         specify some options. See 64bits on Solaris.
   54:     - FreeBSD 7.x. I have installed a FreeBSD 7.0, upgraded to 7.2
   55:         and RPL/2 ran without any trouble. RPL/2 does not run on early
   56:         FreeBSD 8.0 because sig_info_t struct is not filled. This bug is now
   57:         fixed. Someone has reported that FreeBSD 7.2 did not filled this
   58:         struct too...
   59:     - NetBSD 5.0 and beyond.
   60:     - OpenBSD 4.8 and beyond.
   61:     - Windows with Cygwin (>= 1.7.5).
   62:     - OS/2 and eComStation with EMX (>= 0.9d). You probably have to
   63:         recreate configure script and makefiles with aclocal, autoconf and
   64:         automake.
   65:         ========================================================================
   66:         WARNING : eCS DEFINES TMP VARIABLE THAT OVERWRITES PATHS
   67:         IN FOPEN() SYSTEM CALL. /TMP/xxx IS REPLACED BY /%TMP%/xxx.
   68:         THIS BUG ONLY OCCURS WHEN RPL/2 IS CALLED FROM OS/2 OR 4OS2 SHELL.
   69:         WORKAROUND : DEFINE RPL_TMP_PATH WITH A DRIVE LETTER LIKE
   70: 
   71:             SET RPL_TMP_PATH=C:/tmp
   72: 
   73:         OR CALL RPL/2 FROM A BOURNE SHELL.
   74:         ========================================================================
   75:     - Mac OS X.
   76: 
   77:   * RPL/2 should run on :
   78: 
   79:     - AIX
   80:     - HP-UX (10.20 and beyond), but not tested for a long time.
   81:     - NetBSD 4.0 and beyond with restriction due to sigpending bug.
   82: 
   83:     Any information about RPL/2 on these last operating systems are welcome.
   84: 
   85:   * RPL/2 is not supported on :
   86: 
   87:     - OpenVMS (work in progress) on Alpha and Integrity due to some bugs in GNV.
   88:         RPL/2 never works on OpenVMS VAX because GNV is too old on this
   89:         architecture.
   90:     - Hurd because sig_info_t is not filled.
   91: 
   92:   * RPL/2 shall never be supported on :
   93: 
   94:     - Windows (all versions) without Cygwin.
   95:     - Mac OS preX.
   96: 
   97:     Tools directory contains some libraries that are normally provided by
   98:     all Posix systems. These libraries are built during build process
   99:     and RPL/2 is statically linked with them because I have seen that on
  100:     several systems, some Posix libraries have strange 'features'...
  101: 
  102:     On all systems, you must install GNU make and you should install
  103:     gcc/g++/gfortran (minimal release : 4.2.0). It is possible to build
  104:     RPL/2 with some other compilers (for example cc and f95 from SunStudio,
  105:     or cc and f95 from Digital^WCompaq^WHP) but I do not test all potential
  106:     combinaisons.
  107: 
  108:   * 64 bits on Solaris (are you sure that you need 64bits wide RPL/2 ?)
  109: 
  110:     You have to configure RPL/2 with some user defined variables.
  111: 
  112:     CFLAGS="$CFLAGS -m64" CXXFLAGS="$CXXFLAGS -m64" FCFLAGS="$FCFLAGS -m64" \
  113:             FFLAGS="$FFLAGS -m64" LDFLAGS="$LDFLAGS -m64" ./configure (options)
  114: 
  115:     If you want to use mysql or postgresql support, you should obtain 64bits
  116:     binary executables, libraries and daemons. PostgreSQL 8.3.5 does not compile
  117:     on Solaris 10 in 64bits mode with gcc/GNU ld (due to a strange bug, ld
  118:     tries to build a 32bits wide library with 64bits objects even if -m64 is
  119:     specified on command line...). I have not tried mysql.
  120: 
  121:     If you want to use rplc, you have to use GNU ld, not Solaris ld, due to
  122:     another bug that avoid symbol exportation. You have to check that rpl
  123:     is linked with libmtmalloc and not with libmalloc from libc because there
  124:     is another bug in Solaris' libc : free() can enter in a deadlock
  125:     (internal locked mutex).
  126: 
  127:     Of course, all 64bits libraries have to be accessible by LD_LIBRARY_PATH.
  128: 
  129: tchaikovski:[/usr/shared-apps/bin] > file rpl
  130: rpl: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked,
  131:      not stripped
  132: 
  133:     Very easy^Wnice, isn't it ?
  134: 
  135:     J. Bertrand <joel.bertrand@systella.fr>

CVSweb interface <joel.bertrand@systella.fr>