In order to start contributing we have downloaded GNU COBOL from source and compiled it on a clean OpenSuse 15.6 machine.
We know there is a SVN that is continuously being updated
What scripts do we have/can we run to keep this version fully up to date?
Is there a method in place to keep our modified version in parallel with the official version until our changes are incorporated into it?
Is there an easy way to have versions with BDB VBISAM NCURSES and NCURSESW etc. running simultaneously, i.e. different versions of cobc and different runtimes?
cobc (GnuCOBOL) 3.3-dev.0
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
Built Sep 12 2024 05:43:49
Packaged Sep 12 2024 03:42:46 UTC
C version "7.5.0"
Is this the correct build for migrating from MF to GNUCOBOL ?
There is a repository for SuSE maintained by ellessar which seems quite up to date. Can we build on this repository ?
How do I know exactly what SVN number I am on?
Thanks
Note:
It would be interesting to update the README because until you discover that the script made by Simon is the easy way to install, it takes you a while to fight with the application.
Last edit: Simon Sobisch 2 days ago
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All good questions. I know you can run different versions on the same box See FAQ section : 3.2 What are the configure options available for building GnuCOBOL?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
get svn version via svn (so you can update any time later)
create additional build parts (you need more of the standard dependencies, see HACKING)
create multiple build environments using that source
don't install but use a "pre install" environment
$>svncheckouthttps://svn.code.sf.net/p/gnucobol/code/branches/gnucobol-3.x
$>cdgnucobol-3.x
$>./autogen.sh# use "./autogen.sh install" if you get version mismatch during make
$>mkdirbuild
$>pushd$_
$>../configure--enable-debug-with-db
$>make-j$(nproc)
$>popd
$>mkdirbuild_optim
$>pushd$_
$>../configure-with-dbCC="gcc -mtune=native -march=native"
$>make-j$(nproc)
$>popd
$>mkdirbuild_isam
$>pushd$_
$>../configure--enable-debug-with-vbisam
$>make-j$(nproc)
$>popd
$>mkdirbuild_ncurses
$>pushd$_
$>../configure--enable-debug-with-curses=ncursesCURSES_LIBS="-L/path/to/libncurses -lncurses"CURSES_CFLAGS="-I/path/to/ncurses.h"
$>make-j$(nproc)
$>popd
$>build/pre-inst-env# you now use that until...
$>exit# you leave the shell session
$>svninfo# full info check out
$>svnstatus# full info on current changes
$>svnversion# revision and "modified" info
$>svnupdate# to get the current updates with keeping local changes
$>make-Cbuild-j$(nproc)
$>make-Cbuild_optim-j$(nproc)
$>make-Cbuild_isam-j$(nproc)
$>make-Cbuild_isam-j$(nproc)
Note: I don't know of a distro that distributes ncursesw and has ncurses as well and not as a symlink to the former - if you really want that you likely have to build it on your own and therefore pass the information as noted above.
👍
2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Another question, if it's not a bother, since I haven't programmed in C for over 30 years, I used to use ctrace for debugging, now I think GDB is being used.
What debugging is more interesting for studying how to trace GNUCOBOL code?
What do you use?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sign up on the forge, then post a note in the Contributions channel to get started.
Cheers,
Brian
Last edit: Brian Tiffin 2012-09-25
To Simon or Brian
In order to start contributing we have downloaded GNU COBOL from source and compiled it on a clean OpenSuse 15.6 machine.
We know there is a SVN that is continuously being updated
What scripts do we have/can we run to keep this version fully up to date?
Is there a method in place to keep our modified version in parallel with the official version until our changes are incorporated into it?
Is there an easy way to have versions with BDB VBISAM NCURSES and NCURSESW etc. running simultaneously, i.e. different versions of cobc and different runtimes?
The cobc -i dump is:
cobc -V
Is this the correct build for migrating from MF to GNUCOBOL ?
There is a repository for SuSE maintained by ellessar which seems quite up to date. Can we build on this repository ?
How do I know exactly what SVN number I am on?
Thanks
Note:
It would be interesting to update the README because until you discover that the script made by Simon is the easy way to install, it takes you a while to fight with the application.
Last edit: Simon Sobisch 2 days ago
All good questions. I know you can run different versions on the same box See FAQ section : 3.2 What are the configure options available for building GnuCOBOL?
The whole process you've described gets down to:
Note: I don't know of a distro that distributes ncursesw and has ncurses as well and not as a symlink to the former - if you really want that you likely have to build it on your own and therefore pass the information as noted above.
Thanks Simon, as always clear and informative
Another question, if it's not a bother, since I haven't programmed in C for over 30 years, I used to use ctrace for debugging, now I think GDB is being used.
What debugging is more interesting for studying how to trace GNUCOBOL code?
What do you use?