Vincent Coen
2014-01-24 11:02:57 UTC
I would like to install GNU Cobol (formally Open Cobol) v2.1 (with rwcs)
which needs the following to build and run:
Recent copy of gcc and its libraries for example, I have v4.7.2 all in
x64 builds but for mainframe ??
GNU MP (libgmp) 4.1.2 or later
BOTH runtime AND development components required.
libgmp is used to implement decimal arithmetic.
GNU Libtool (libltdl)
libltdl is used to implement dynamic CALL statements (but installed
in Linux distros).
Indexed-Sequential file I/O (ISAM) is used
Berkeley DB (libdb) 4.1 or later
BOTH runtime AND development components required.
libdb is used to implement indexed file I/O.
SCREEN I/O is used or extended ACCEPT/DISPLAY is used
Ncurses (ncurses) 5.2 or later
BOTH runtime AND development components required.
** NOTE **
Due to deficiencies in the tools used to prepare
GNU Cobol (autoconf/automake/libtool), it is
NOT generally possible to use path names with
spaces embedded within them (Mainly Cygwin/MingW/Windows ports).
** NOTE **
The default installation path for GNU Cobol is /usr/local.
The installation path may be changed by specifying --prefix=<dir>
as a parameter to the configure.
Further parameters may be specified to affect
include/library search paths.
Execute ./configure --help for further details.
============
Development
============
If you wish to hack the GNU Cobol source code, proceed
as follows.
Before changing/building GNU Cobol, you need to install the
following extra packages with versions equal or greater :
For compiling (when changing flex/bison sources) :
o Bison 2.3
o Flex 2.5.35
If you reconfigure and/or prepare a distribution
o autoconf 2.64
o automake 1.10.1
o libtool 2.2.6
o m4 1.4.12
o gettext 0.17
o texinfo 4.12
o texlive (latest)
If you modify top-level configure.ac, Makefile.am in any directory,
or any of the standard OC tests then you will need to
run "autoreconf -I m4" to regenerate the necessary files.
For rdbms also mysql or mariadb server and client (which includes the C
& C++ include libraries.
Screen IO should be interesting to see what happens on a 3270 terminal :)
Anyone any ideas on this little addon ?
Vincent
which needs the following to build and run:
Recent copy of gcc and its libraries for example, I have v4.7.2 all in
x64 builds but for mainframe ??
GNU MP (libgmp) 4.1.2 or later
BOTH runtime AND development components required.
libgmp is used to implement decimal arithmetic.
GNU Libtool (libltdl)
libltdl is used to implement dynamic CALL statements (but installed
in Linux distros).
Indexed-Sequential file I/O (ISAM) is used
Berkeley DB (libdb) 4.1 or later
BOTH runtime AND development components required.
libdb is used to implement indexed file I/O.
SCREEN I/O is used or extended ACCEPT/DISPLAY is used
Ncurses (ncurses) 5.2 or later
BOTH runtime AND development components required.
** NOTE **
Due to deficiencies in the tools used to prepare
GNU Cobol (autoconf/automake/libtool), it is
NOT generally possible to use path names with
spaces embedded within them (Mainly Cygwin/MingW/Windows ports).
** NOTE **
The default installation path for GNU Cobol is /usr/local.
The installation path may be changed by specifying --prefix=<dir>
as a parameter to the configure.
Further parameters may be specified to affect
include/library search paths.
Execute ./configure --help for further details.
============
Development
============
If you wish to hack the GNU Cobol source code, proceed
as follows.
Before changing/building GNU Cobol, you need to install the
following extra packages with versions equal or greater :
For compiling (when changing flex/bison sources) :
o Bison 2.3
o Flex 2.5.35
If you reconfigure and/or prepare a distribution
o autoconf 2.64
o automake 1.10.1
o libtool 2.2.6
o m4 1.4.12
o gettext 0.17
o texinfo 4.12
o texlive (latest)
If you modify top-level configure.ac, Makefile.am in any directory,
or any of the standard OC tests then you will need to
run "autoreconf -I m4" to regenerate the necessary files.
For rdbms also mysql or mariadb server and client (which includes the C
& C++ include libraries.
Screen IO should be interesting to see what happens on a 3270 terminal :)
Anyone any ideas on this little addon ?
Vincent
The proc to compile a GCC program is GCC.PROCLIB(GCCCL).
That executes a program called "GCC". You may need to
change this to GCC370. Or go to GCC.LINKLIB and
rename GCC to GCC390 and rename GCC370 to GCC.
This is because the default GCC needs a 31-bit environment
as provided by z/OS or MVS/380.
I consider C to be a universal language now, so you
should know how to handle a C source file. :-)
BFN. Paul.
That executes a program called "GCC". You may need to
change this to GCC370. Or go to GCC.LINKLIB and
rename GCC to GCC390 and rename GCC370 to GCC.
This is because the default GCC needs a 31-bit environment
as provided by z/OS or MVS/380.
I consider C to be a universal language now, so you
should know how to handle a C source file. :-)
BFN. Paul.