Menu

GnuCOBOL in FreeDOS/MS-DOS ...

GnuCOBOL
2022-03-14
39 minutes ago
<< < 1 2 3 4 5 .. 18 > >> (Page 3 of 18)
  • Everaldo Bernardo Cunha

    Well, I extracted files via Debian and it created all the correct form ... but appears other error, see below:

    everaldo@vostro-3681:~/HDDs/C/g32dev$ PKG_CONFIG=false ./configure --with-vbisam --enable-shared --disable-static --build=i686-pc-linux-gnu --host=i586-pc-msdosdjgpp --prefix=/home/everaldo/HDDs/C/devel2 CPPFLAGS="-I/home/everaldo/HDDs/C/devel2/include" LDFLAGS="-L/home/everaldo/HDDs/C/devel2/lib" CFLAGS="-Wno-attributes"
    configure: loading site script /home/everaldo/HDDs/C/devel2/share/config.site
    checking for a BSD-compatible install... /dev/env/DJDIR/bin/ginstall -c
    checking whether build environment is sane... yes
    ./configure: line 2986: /dev/env/DJDIR/bin/bash.exe: No such file or directory
    configure: WARNING: 'missing' script is too old or missing
    checking for i586-pc-msdosdjgpp-strip... i586-pc-msdosdjgpp-strip
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for make... make
    checking whether make supports order-only prerequisites... yes
    checking whether CFLAGS -O can be modified... yes
    checking for i586-pc-msdosdjgpp-gcc... i586-pc-msdosdjgpp-gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... .exe
    checking whether we are cross compiling... yes
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether i586-pc-msdosdjgpp-gcc accepts -g... yes
    checking for i586-pc-msdosdjgpp-gcc option to accept ISO C89... none needed
    checking whether i586-pc-msdosdjgpp-gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of i586-pc-msdosdjgpp-gcc... none
    checking for i586-pc-msdosdjgpp-gcc option to accept ISO C99... none needed
    checking for i586-pc-msdosdjgpp-gcc option to accept ISO Standard C... (cached) none needed
    checking how to run the C preprocessor... i586-pc-msdosdjgpp-gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for i586-pc-msdosdjgpp-windres... no
    checking for windres... no
    checking for i586-pc-msdosdjgpp-ar... i586-pc-msdosdjgpp-ar
    checking the archiver (i586-pc-msdosdjgpp-ar) interface... ar
    configure: error: cannot run /dev/env/DJDIR/bin/bash.exe build_aux/config.sub
    everaldo@vostro-3681:~/HDDs/C/g32dev$ 
    
     

    Last edit: Everaldo Bernardo Cunha 2022-04-07
  • Everaldo Bernardo Cunha

    You mentioned mounting ... is it necessary to mount the directory "../devel2" as FAT32 inside linux????

     
    • Simon Sobisch

      Simon Sobisch - 2022-04-08

      That depends on your setup of FreeDOS, I've used virtual drives and needed a mounting.
      I guess that you have a setup where FreeDOS "mounts" a directory from your host as "drive", is this the case?

      But to your issue: I guess that devel2/bin is in your PATH on the Linux side and potentially contains shell binaries like "sh" or "bash", or "make" - in this case I'd suggest to at leat temporary move them from there.

       
  • Everaldo Bernardo Cunha

    Simon is exactly it, a directory as host "home/everaldo/HDDs/C/" ... How should we proceed in this case, then?

     
    • Simon Sobisch

      Simon Sobisch - 2022-04-08

      You use it exactly like you did - and check that there's no shell/make in its devel2 subdirectory (at least for the purpose of setting up the cross compilation).

      What you do should be relative easy, maybe you can get in contact with someone that has experience with cross-compiling and/or djgpp to help you with this special setup of yours?
      If nothing helps we may could setup a remote session (Simon doing, whomever looking) but that would be more effort for me so we'd need to find an agreement based on a 30 minute rate (in EUR or USD). If you need that and want to go this route contact me via mail (found in the changelogs) or "send message".

       
  • Everaldo Bernardo Cunha

    Simon, I don't have enough money to hire your services... I've been working with computers since 1993 and I know a lot about ms-dos, windows and linux. I appreciate your help and, if it's not asking too much, I ask you to continue helping me solve this little "dilemma". I've already managed to generate .EXE that run inside FreeDOS, with djgpp installed on my Debian ... but I'll understand if you can't help me little by little ... I look forward to hearing from you!

     
    • Simon Sobisch

      Simon Sobisch - 2022-04-13

      We can go on with that when you want to. The last point was about checking the devel2 directories for a shell and possibly rename those during the initial setup of the cross compile.

      As the list of the steps is getting long already I suggest you to create a step by step note how to do this setup (ideally starting with "0 installation and configuration of FreeDOS", going on with "setup DOS cross-compiler", "3 prepare updated DJGPP environment 'devel2'", ... ).
      This would allow others to follow your path, know something more about your setup which may help and could check for possible "gotchas". Note: I'm away for two weeks so feel free to take some time to do this and don't expect answers too fast.

       
  • Everaldo Bernardo Cunha

    Gnu COBOL on FreeDOS platform within DOSBOX debian.

    Installing FreeDOS in a Debian 11 LXDE or LXQt 64-bit folder:

    First, download FreeDOS from the internet, FreeDOS 1.3 FullUSB, http://freedos.org/download/ ...

    1 - Create the following folders in your HOME:

    \home\user\HDDs\C
    \home\user\HDDs\E
    \home\user\HDDs\A

    NOTE: change the word "user" to your username...

    2 - Extract the contents of FreeDOS, resulting in FD13FULL.img. Having this file, mount it and copy all the contents to the \home\user\HDDs\E folder on your Debian;

    3 - Now, download DOSBOX-Staging from the following website:
    https://github.com/dosbox-staging/dosbox-staging/releases/download/v0.78.1/dosbox-staging-linux-v0.78.1.tar.xz

    Extract the file into your HOME folder and rename it to "dosbox-staging" and copy that folder to /home/user/.local/share/

    4 - Edit the ".profile" file putting the following line at the end of it:

    export PATH="$PATH:/home/user/.local/share/dosbox-staging"

    5 - Edit the ".bashrc" file placing the same content reported above, at the end of this file.

    Restart Debian and after reboot open a terminal and type:

    $ dosbox

    Now let's configure FreeDOS 1.3 in DOSBox.

    1 - After initializing dosbox, file dosbox-staging.conf is created, see the full path below:

    /home/user/.config/dosbox/dosbox-staging.conf

    Open the file above with a simple text editor, as you already did in the other steps, it could be "gedit"...

    2 - Modify the file options as follows (only the mentioned options):

    [sdl]
    windowresolution = l
    output = openglnb

    [dosbox]
    memsize = 512
    vmemsize = 16
    vesa_modes = all

    [cpu]
    core = auto
    cputype = auto
    cycles = max
    cycleup = 10
    cycledown = 20

    [mixer]
    nosound = false
    rate = 48000
    blocksize = 2048
    prebuffer = 100
    negotiate = true

    [autoexec]

    mount e "/home/user/HDDs/E"
    mount c "/home/user/HDDs/C" -freesize 2048
    C:
    C:\FDAUTO.BAT

    Now, save the file and run dosbox as described above. FreeDOS will be installed to /home/user/HDDs/C, from /home/user/HDDs/E, where you extracted FD13FULL.img ...

    Inside DOSBox, do the following:

    1 - Go to the installer folder by typing:

    C:\E:
    E:\setup

    2 - Choose the following option when presented:

    Full installation including applications and games

    Wait for the installation to finish and when it completes, run DOSBox again.

    FreeDOS 1.3 will already be installed in the folder in question.

    Now,we need to install the DJGPP in the FreeDOS. You do the following:

    ensure you have "lots of" enough disk space (one GB would be more than enough, but of course this also depends on your configuration)

    mkdir C:\DEVEL2 && cd C:\DEVEL2 && edit use_me.bat as follows
    

    SET DJGPP=C:\DEVEL2\DJGPP.ENV
    SET PATH=C:\DEVEL2\BIN;%PATH%

    download a lot of files from your nearest mirror (I assume this to be http://mirrors.meowr.net/djgpp/ ) or create the file "down.sh":

    #!/bin/bash
    
    
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/acnf213b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/acnf259b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/ada1030b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/amak194b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/bann10b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/barc098br2.zip -O barc098b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/bc1071b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/bnu2351b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/bool022b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/bsh204b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/bsh4117br4.zip -O bsh4117b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/bsn241br2.zip -O bsn241br.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/byacc19br2.zip -O byacc19b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/bz2-108b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/cdecl25b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/clear10b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/clzp112b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/cpio242b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/csc154b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/csdpmi5b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/csdpmi7b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/cvs111b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/cxr15db.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/dcrw853br2.zip -O dcrw853b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/derof16b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/dfe9532b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/dfst128b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/dif37b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2/djdev205.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/djgpptsr.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/dlg09ab.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/dlm20b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/dlx291.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/dosck11br2.zip -O dosck11b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/dxe2_011.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/em2602ab.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/ens162b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/epz100b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/expat20br2.zip -O expat20b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/ezvga14.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/fftw312br2.zip -O fftw312b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/fil41br3.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/file334b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/flx254br2.zip -O flx254br.zip
    wget -c wget -c http://mirrors.meowr.net/djgpp/v2gnu/fnd4233br5.zip -O fnd4233b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/fpth314b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/gccsjis.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gcc1030b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gdb7121b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gdb72br4.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gdb771b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gdb801b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gdbm113b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gdbm183br2.zip -O gdbm183b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gfor1030b.zip -O gfor1030.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/glib126b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/glo561b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gmp612b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gmp620b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gmp621b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gpc346b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gpp346b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gpp474b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gpp1030b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gprf304b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/grap120b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/grep228b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gro1223b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/grx249br2.zip -O grx249br.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gst175b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gtx1981b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gtxt201b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gwk500b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/gzip110b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/h2m14711.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/idu32b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/ind2210br2.zip -O ind2210b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/inf028b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/isl024b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/isp3301br2.zip -O isp3301b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/jas1901br2.zip -O jas1901b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jbig21br2.zip -O jbig21br.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jkthpack.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jlggenp2.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jonipx.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jpeg9db.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jptui42b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/jsn2131b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/l290d10b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lbdlx100.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lcms212b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/lcset10b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lib3d019.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/libt15b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/licv115b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/licv116b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/lidn138b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/llocl02b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lmb051b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/lme117b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lmpg051br2.zip -O lmpg051b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/lout328b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lp1114br2.zip -O lp1114br.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/ls080b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/lss530b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/lssg358b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lua522b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/luns098b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/lus0910b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/lw03b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/lzop096b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/m4-1418b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/m64lib01.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/mak43br2.zip -O mak43b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/marst27br2.zip -O marst27b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/mfwpe11b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/mgis055br2.zip -O mgis055b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/misc13b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/mkkbd3.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/mktmp17br3.zip -O mktmp17b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/mpc110b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/mpc121b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/mpfr410b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/mss121.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/mttws121.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/npbm916b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/nsname10.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/ntlfn08b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/o2bfd01b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/objc1030.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/p2c120b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/pat275br2.zip -O pat275br.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/pcr1031b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/pcre842b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/pdmlwp03.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/perl588b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/pico396b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/pkgc015b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/pmcom10.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/pmode13b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/png1637b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/popt12b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/psut117b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/pth207b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/rcode35b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/rcs5713b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/rdln80b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/repeat10.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/rhid15ab.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/rsxdj151.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/sed48b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/shar42cb.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/shl2011br3.zip -O shl2011b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/shtl208b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/smldbl12.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/ssl101ub.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/ssl102ub.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/svas011b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/svgalibb.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/t2h164b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/tar112abr2.zip -O tar112ab.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/tiff420b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/tr2lt22b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/trse110b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/trsi110b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/tv210b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/txi413br3.zip -O txi413br.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/txt20br3.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/unit180b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/urtf219b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/vera19b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/vsd104fb.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/wat3211b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2gnu/whic220br2.zip -O whic220b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2misc/wmemu21b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/xdlt112b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/xml299b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/xst1133b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2apps/xz-525b.zip
    wget -c http://mirrors.meowr.net/djgpp/v2tk/zlb1212b.zip
    

    then unzip everything (in order of their dates, enabling you to overwrite existing files), because of size issues and for better overview you'll likely want to del the ones you've unpacked and you'll create a "make.bat" in this folder and add:

    echo:off
    echo "Start of the extraction to C:\DEVEL2 ... wait ... "
    
    unzip -d c:\devel2 c:\install\acnf213b.zip
    unzip -d c:\devel2 c:\install\acnf259b.zip
    unzip -d c:\devel2 c:\install\ada1030b.zip
    unzip -d c:\devel2 c:\install\amak194b.zip
    unzip -d c:\devel2 c:\install\bann10b.zip
    unzip -d c:\devel2 c:\install\barc098b.zip
    unzip -d c:\devel2 c:\install\bc1071b.zip
    unzip -d c:\devel2 c:\install\bnu2351b.zip
    unzip -d c:\devel2 c:\install\bool022b.zip
    unzip -d c:\devel2 c:\install\bsh204b.zip
    unzip -d c:\devel2 c:\install\bsh4117b.zip
    unzip -d c:\devel2 c:\install\bsn241br.zip
    unzip -d c:\devel2 c:\install\byacc19b.zip
    unzip -d c:\devel2 c:\install\bz2-108b.zip
    unzip -d c:\devel2 c:\install\cdecl25.zip
    unzip -d c:\devel2 c:\install\clear10b.zip
    unzip -d c:\devel2 c:\install\clzp112b.zip
    unzip -d c:\devel2 c:\install\cpio242b.zip
    unzip -d c:\devel2 c:\install\csc154b.zip
    unzip -d c:\devel2 c:\install\csdpmi5b.zip
    unzip -d c:\devel2 c:\install\csdpmi7b.zip
    unzip -d c:\devel2 c:\install\cvs111b.zip
    unzip -d c:\devel2 c:\install\cxr15db.zip
    unzip -d c:\devel2 c:\install\dcrw853b.zip
    unzip -d c:\devel2 c:\install\derof16b.zip
    unzip -d c:\devel2 c:\install\dfe9532b.zip
    unzip -d c:\devel2 c:\install\dfst128b.zip
    unzip -d c:\devel2 c:\install\dif37b.zip
    unzip -d c:\devel2 c:\install\djdev205.zip
    unzip -d c:\devel2 c:\install\djgpptsr.zip
    unzip -d c:\devel2 c:\install\dlg09ab.zip
    unzip -d c:\devel2 c:\install\dlm20b.zip
    unzip -d c:\devel2 c:\install\dlx291.zip
    unzip -d c:\devel2 c:\install\dosck11b.zip
    unzip -d c:\devel2 c:\install\dxe2_011.zip
    unzip -d c:\devel2 c:\install\em2602ab.zip
    unzip -d c:\devel2 c:\install\ens162b.zip
    unzip -d c:\devel2 c:\install\epz100b.zip
    unzip -d c:\devel2 c:\install\expat20b.zip
    unzip -d c:\devel2 c:\install\ezvga14.zip
    unzip -d c:\devel2 c:\install\fftw312b.zip
    unzip -d c:\devel2 c:\install\fil41br3.zip
    unzip -d c:\devel2 c:\install\file334b.zip
    unzip -d c:\devel2 c:\install\flx254br.zip
    unzip -d c:\devel2 c:\install\fnd4233b.zip
    unzip -d c:\devel2 c:\install\fpth314b.zip
    unzip -d c:\devel2 c:\install\gccsjis.zip
    unzip -d c:\devel2 c:\install\gcc1030b.zip
    unzip -d c:\devel2 c:\install\gdb7121b.zip
    unzip -d c:\devel2 c:\install\gdb72br4.zip
    unzip -d c:\devel2 c:\install\gdb771b.zip
    unzip -d c:\devel2 c:\install\gdb801b.zip
    unzip -d c:\devel2 c:\install\gdbm113b.zip
    unzip -d c:\devel2 c:\install\gdbm183b.zip
    unzip -d c:\devel2 c:\install\gfor1030.zip
    unzip -d c:\devel2 c:\install\glib126b.zip
    unzip -d c:\devel2 c:\install\glo561b.zip
    unzip -d c:\devel2 c:\install\gmp612b.zip
    unzip -d c:\devel2 c:\install\gmp620b.zip
    unzip -d c:\devel2 c:\install\gmp621b.zip
    unzip -d c:\devel2 c:\install\gpc346b.zip
    unzip -d c:\devel2 c:\install\gpp346b.zip
    unzip -d c:\devel2 c:\install\gpp474b.zip
    unzip -d c:\devel2 c:\install\gpp1030b.zip
    unzip -d c:\devel2 c:\install\gprf304b.zip
    unzip -d c:\devel2 c:\install\grap120b.zip
    unzip -d c:\devel2 c:\install\grep228b.zip
    unzip -d c:\devel2 c:\install\gro1223b.zip
    unzip -d c:\devel2 c:\install\grx249br.zip
    unzip -d c:\devel2 c:\install\gst175b.zip
    unzip -d c:\devel2 c:\install\gtx1981b.zip
    unzip -d c:\devel2 c:\install\gtxt201b.zip
    unzip -d c:\devel2 c:\install\gwk500b.zip
    unzip -d c:\devel2 c:\install\gzip110b.zip
    unzip -d c:\devel2 c:\install\h2m14711.zip
    unzip -d c:\devel2 c:\install\idu32b.zip
    unzip -d c:\devel2 c:\install\ind2210b.zip
    unzip -d c:\devel2 c:\install\inf028b.zip
    unzip -d c:\devel2 c:\install\isl024b.zip
    unzip -d c:\devel2 c:\install\isp3301b.zip
    unzip -d c:\devel2 c:\install\jas1901b.zip
    unzip -d c:\devel2 c:\install\jbig21br.zip
    unzip -d c:\devel2 c:\install\jkthpack.zip
    unzip -d c:\devel2 c:\install\jlggenp2.zip
    unzip -d c:\devel2 c:\install\jonipx.zip
    unzip -d c:\devel2 c:\install\jpeg9db.zip
    unzip -d c:\devel2 c:\install\jptui42b.zip
    unzip -d c:\devel2 c:\install\jsn2131b.zip
    unzip -d c:\devel2 c:\install\l290d10b.zip
    unzip -d c:\devel2 c:\install\lbdlx100.zip
    unzip -d c:\devel2 c:\install\lcms212b.zip
    unzip -d c:\devel2 c:\install\lcset10b.zip
    unzip -d c:\devel2 c:\install\lib3d019.zip
    unzip -d c:\devel2 c:\install\libt15b.zip
    unzip -d c:\devel2 c:\install\licv115b.zip
    unzip -d c:\devel2 c:\install\licv116b.zip
    unzip -d c:\devel2 c:\install\lidn138b.zip
    unzip -d c:\devel2 c:\install\llocl02b.zip
    unzip -d c:\devel2 c:\install\lmb051b.zip
    unzip -d c:\devel2 c:\install\lme117b.zip
    unzip -d c:\devel2 c:\install\lmpg051b.zip
    unzip -d c:\devel2 c:\install\lout328b.zip
    unzip -d c:\devel2 c:\install\lp1114br.zip
    unzip -d c:\devel2 c:\install\ls080b.zip
    unzip -d c:\devel2 c:\install\lss530b.zip
    unzip -d c:\devel2 c:\install\lssg358b.zip
    unzip -d c:\devel2 c:\install\lua522b.zip
    unzip -d c:\devel2 c:\install\luns098b.zip
    unzip -d c:\devel2 c:\install\lus0910b.zip
    unzip -d c:\devel2 c:\install\lw03b.zip
    unzip -d c:\devel2 c:\install\lzop096b.zip
    unzip -d c:\devel2 c:\install\m4-1418b.zip
    unzip -d c:\devel2 c:\install\m64lib01.zip
    unzip -d c:\devel2 c:\install\mak43b.zip
    unzip -d c:\devel2 c:\install\mak381s.zip
    unzip -d c:\devel2 c:\install\mak381b.zip
    unzip -d c:\devel2 c:\install\marst27b.zip
    unzip -d c:\devel2 c:\install\mfwpe11b.zip
    unzip -d c:\devel2 c:\install\mgis055b.zip
    unzip -d c:\devel2 c:\install\misc13b.zip
    unzip -d c:\devel2 c:\install\mkkbd3.zip
    unzip -d c:\devel2 c:\install\mktmp17b.zip
    unzip -d c:\devel2 c:\install\mpc110b.zip
    unzip -d c:\devel2 c:\install\mpc121b.zip
    unzip -d c:\devel2 c:\install\mpfr410b.zip
    unzip -d c:\devel2 c:\install\mss121.zip
    unzip -d c:\devel2 c:\install\mttws121.zip
    unzip -d c:\devel2 c:\install\npbm916b.zip
    unzip -d c:\devel2 c:\install\nsname10.zip
    unzip -d c:\devel2 c:\install\ntlfn08b.zip
    unzip -d c:\devel2 c:\install\o2bfd01b.zip
    unzip -d c:\devel2 c:\install\objc1030.zip
    unzip -d c:\devel2 c:\install\p2c120b.zip
    unzip -d c:\devel2 c:\install\pat275br.zip
    unzip -d c:\devel2 c:\install\pcr1031b.zip
    unzip -d c:\devel2 c:\install\pcre842b.zip
    unzip -d c:\devel2 c:\install\pdmlwp03.zip
    unzip -d c:\devel2 c:\install\perl588b.zip
    unzip -d c:\devel2 c:\install\pico396b.zip
    unzip -d c:\devel2 c:\install\pkgc015b.zip
    unzip -d c:\devel2 c:\install\pmcom10.zip
    unzip -d c:\devel2 c:\install\pmode13b.zip
    unzip -d c:\devel2 c:\install\png1637b.zip
    unzip -d c:\devel2 c:\install\popt12b.zip
    unzip -d c:\devel2 c:\install\psut117b.zip
    unzip -d c:\devel2 c:\install\pth207b.zip
    unzip -d c:\devel2 c:\install\rcode35b.zip
    unzip -d c:\devel2 c:\install\rcs5713b.zip
    unzip -d c:\devel2 c:\install\rdln80b.zip
    unzip -d c:\devel2 c:\install\repeat10.zip
    unzip -d c:\devel2 c:\install\rhid15ab.zip
    unzip -d c:\devel2 c:\install\rsxdj151.zip
    unzip -d c:\devel2 c:\install\sed48b.zip
    unzip -d c:\devel2 c:\install\shar42cb.zip
    unzip -d c:\devel2 c:\install\shl2011b.zip
    unzip -d c:\devel2 c:\install\shtl208b.zip
    unzip -d c:\devel2 c:\install\smldbl12.zip
    unzip -d c:\devel2 c:\install\ssl101ub.zip
    unzip -d c:\devel2 c:\install\ssl102ub.zip
    unzip -d c:\devel2 c:\install\svas011b.zip
    unzip -d c:\devel2 c:\install\svgalibb.zip
    unzip -d c:\devel2 c:\install\t2h164b.zip
    unzip -d c:\devel2 c:\install\tar112ab.zip
    unzip -d c:\devel2 c:\install\tiff420b.zip
    unzip -d c:\devel2 c:\install\tr2lt22b.zip
    unzip -d c:\devel2 c:\install\trse110b.zip
    unzip -d c:\devel2 c:\install\trsi110b.zip
    unzip -d c:\devel2 c:\install\tv210b.zip
    unzip -d c:\devel2 c:\install\txi413br3.zip
    unzip -d c:\devel2 c:\install\txt20br3.zip
    unzip -d c:\devel2 c:\install\unit180b.zip
    unzip -d c:\devel2 c:\install\urtf219b.zip
    unzip -d c:\devel2 c:\install\vera19b.zip
    unzip -d c:\devel2 c:\install\vsd104fb.zip
    unzip -d c:\devel2 c:\install\wat3211b.zip
    unzip -d c:\devel2 c:\install\whic220b.zip
    unzip -d c:\devel2 c:\install\wmemu21b.zip
    unzip -d c:\devel2 c:\install\xdlt112b.zip
    unzip -d c:\devel2 c:\install\xml299b.zip
    unzip -d c:\devel2 c:\install\xst1133b.zip
    unzip -d c:\devel2 c:\install\xz-525b.zip
    unzip -d c:\devel2 c:\install\zlb1212b.zip
    
    echo "The end of the extraction of the files ... "
    

    get GnuCOBOL (because I had issues with https here also on http) and patch some files for FAT32 as follows

    wget sf-mensch.users.sourceforge.net/files/dos/gc32-dev.tgz
    gzip -d gc32-dev.tgz && tar -xvf gc32-dev.tar
    move gnucobol* C:\gc32dev
    cd C:\gc32dev
    wget sf-mensch.users.sourceforge.net/files/dos/autoc.zip
    unzip autoc.zip
    cd libcob
    wget sf-mensch.users.sourceforge.net/files/cJSON/cJSON.c
    wget sf-mensch.users.sourceforge.net/files/cJSON/cJSON.h
    

    Also: DJGPP suggests to cross-compile more complex projects instead of getting all those pieces together in a much slower environment. If you cross-compile you can still use libgmp from that distribution on both the building machine and FreeDOS (only the binaries from the package needed then) and binutils+GCC (+potentially GDB) on FreeDOS + then copy the GnuCOBOL build from your cross-compiling environment - no need for most of the downloads of all the tools and bash on FreeDOS.

    Then access FreeDOS, go to the C:\INSTALL folder where you will put the zipped files and run the "make.bat" file inside this folder:

    C:\INSTALL>make.bat

    Now, we need to install DJGPP on Debian for cross-compilation, download and follow the instructions from the following website:

    https://github.com/andrewwutw/build-djgpp

    Every time you compile within debian, open a terminal in the folder where you put cross-compile "/home/user/HDDs/C/gc32dev/", and run the command:

    $ . /usr/local/djgpp/setenv
    

    Create a bash file in the folder "/home/user/HDDs/C/g32dev/" with the name of "build.sh". Give it write permission and inside put the following:

    #!/bin/bash
    
    ./configure --with-math=gmp --with-json=local --with-curses=pdcurses --with-xml2 --with-db --enable-shared --disable-static --build=i686-pc-linux-gnu --host=i586-pc-msdosdjgpp --prefix=$HOME/HDDs/C/devel2 CC=/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc CPPFLAGS="-I$HOME/HDDs/C/devel2/include" LDFLAGS="-L$HOME/HDDs/C/devel2/lib" CFLAGS="-Wno-attributes" PKG_CONFIG=false
    

    Save and give execute permission:

    $ chmod +x build.sh
    

    Every time you are going to create GNUCobol for FreeDOS, enter the folder "/home/user/HDDs/C/g32dev/" and run the file described above in a terminal... now, if it shows errors or the EXEs are not generated for FreeDOS, post here what happened and attach the "config.log" file so you can get further help. Remembering, instead of "user" put your username in Debian, ok!

     

    Related

    Discussion: GnuCOBOL in FreeDOS/MS-DOS ...


    Last edit: Everaldo Bernardo Cunha 2023-11-19
  • Everaldo Bernardo Cunha

    Simon, again I tried to generate the GNUCobol for FreeDOS, but I don't know to resolve the problems generated with the proceed ... Do you can help me???? I'll await your contact .... the attachment the logs ...

    P.S.: "CONFIG-FreeDOS.LOG is referent to the executions in the FreeDOS DOSbox, ok!!!!

     

    Last edit: Everaldo Bernardo Cunha 2022-04-29
    • Simon Sobisch

      Simon Sobisch - 2022-04-29

      The configure run in your dos environment looks actually quite promising. It reached the end of configure and just has an issue with the long filename that you can adjust in the generated "config.status" script.

      Note: When checking the log file I've found an old issue with configure (which I'll try to fix tomorrow); for now I suggest to edit the configure script removing the following lines:

      -if test "$COB_USES_GCC" = "yes"; then
      -   if test "x$CFLAGS" != "x"; then
      -       CFLAGS="$CFLAGS -pipe"
      -   else
      -       CFLAGS="-pipe"
      -   fi
      -fi
      

      After changing the configure script you likely want to run it again.

      You'll then need to find out how the file config.status looks for can be read (I guess some shortened name will work, the command ls -l ../gc32dev/tests should help to see the name), then edit config.status to this other name, then rerun the script again ./config.status - if that passes go on with make.

      As noted before to build there you'll likely need to edit libcob/exception*def to match a shortened name; but that's something to see when make returns errors (if it does: and you can't fix that: run with make -C cobc to also try building this before posting the results).
      And of course: take notes about your process and configuration on the way.

      For the cross-compile option we already got further before, currently it bails out with

      error: neither GMP nor MPIR library are found, but one of those is mandatory

      and when checking config.log we can see the reason:

      configure:15749: /usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -c -Wno-attributes -I/dev/c/devel2/include conftest.c >&5
      conftest.c:94:10: fatal error: gmp.h: No such file or directory
         94 | #include <gmp.h>
            |          ^~~~~~~
      

      so either /dev/c/devel2/include does not exist / cannot be accessed from the cross compiling environment, or there is no gmp.h file in there.

       
  • Everaldo Bernardo Cunha

    Simon, again I did the proceed, but the result not was good ... config.status doesn't find one file ... in attachment the log

     
    • Simon Sobisch

      Simon Sobisch - 2022-05-02

      You've adjusted the -pipe, that's OK. For the build within the DOS environment you need to adjust the path in config.status for "tests/run_prog_manual.sh.in" to whatever can be used there (possibly some ~ variant), then only re-execute ./config.status.

       
  • Everaldo Bernardo Cunha

    Simon, I set every entry of "run_prog_manual.sh" to an 8 character name "run_prog.sh", but when "config.status" is executed, instead of finding the name I put, it looks for another name "run_prog .sh.in" ... I then renamed it to that name and the "config.status" keeps saying it couldn't find the file!!!! Can you help me with this problem????

     
    • Simon Sobisch

      Simon Sobisch - 2022-05-03

      Not from where I seat, but if this is the only issue then just ignore that part for now and go on with the next files manually, then issue make:

      ./config.status config.h
      ./config.status tests/atconfig
      ./config.status po/POTFILES
      ./config.status po/Makefile
      
       

      Last edit: Simon Sobisch 2022-05-03
  • Everaldo Bernardo Cunha

    I did the proceed and how result appear a errors ... see the log in attachment ...

     

    Last edit: Everaldo Bernardo Cunha 2022-05-03
    • Simon Sobisch

      Simon Sobisch - 2022-05-04

      Not sure, is it getting better after doing the missing part:

      ./config.status tests/atconfig
      ./config.status depfiles
      ./config.status libtool
      ./config.status po-directories
      ./config.status chmod
      

      I've missed those in my list before.

      If the same error occurs on make please retry with make -k once, then do a make -k again and post the log from the second invocation.

       
  • Everaldo Bernardo Cunha

    Ok, in attachment the log file ...

     
    • Simon Sobisch

      Simon Sobisch - 2022-05-05

      That actually looks quite good. It is not clear from the log file (you may want to just run make -C libcob and post the output directly here), but I guess you now trip over the issue with the long name of the exception.def files I've seen before when running the cross-compile on my side.

      To go on with that you need to rename those and adjust one file in libcob, that was what I've did and posted for that before:

      cd libcob
      copy except1~.def exception.def
      move except2~.def exc-io.def
      

      ... then change exception.def to now use "exc-io" instead of "exception-io".

      I'm now rally eager to see when we'll have conquered that and also eager to see your resulting "recipe" how to go through this process without all the extra steps in between (and we possibly will be able to write a script to do these steps for any future build).

       
  • Everaldo Bernardo Cunha

    I tried again the process ... in attachment, more one log file, ok!

     
    • Simon Sobisch

      Simon Sobisch - 2022-05-06

      Sigh. A log file is always "the last resort", mainly useful for big files like config.log or testsuite log, for everything else a plain code markdown is much better (all details can be found in the help circle of the editor. Reasons for log output instead of a file: this is also shown when reading via mail (which I commonly do, others, too), people can find references via search, screen readers don't need to switch to another file...

      Concerning the log content: that "not finding libtool" looks weird, isn't the libtool wrapper there?

      From dos prompt (omit the first character below when entering the commands):

      > dir c:\gc32bui\lib\libtool
      > dir c:\gc32bui\lib\..\libtool
      > bash
      $ ls -l c:/gc32bui/lib/libtool
      $ ls -l c:/gc32bui/lib/../libtool
      
       
  • Everaldo Bernardo Cunha

    Good, how I don't know to do a screenshots in ms-dos ambient, I copied the informations ... below write those informations:

    C:\>dir c:\gc32bui\lib\libtool
      Volume in drive C is C_DRIVE
      Volume Serial Number is 0000-1234
    File not found.
    C:\>dir c:\gc32bui\lib\..\libtool
      Volume in drive C is C_DRIVE
      Volume Serial Number is 0000-1234
    File not found.
    C:\>bash -l c:/gc32bui/lib/libtool
    ls: c:/gc32bui/lib/libtool: No such file or directory (ENOENT)
    ls: c:/gc32bui/lib/../libtool: No such file or directory (ENOENT)
    C:\>bash -l c:/gc32bui/lib/../libtool
    ls: c:/gc32bui/lib/libtool: No such file or directory (ENOENT)
    ls: c:/gc32bui/lib/../libtool: No such file or directory (ENOENT)
    C:\>
    
     
  • Everaldo Bernardo Cunha

    Simon, I found a directory "libtool" in "C:\devel2", but I don't know if it's the same directory in question ... there is too a file with that name and without extension. I did a test executing the command "make", but it not found the folder added to the local indicated, Do you can to help me?

     
    • Simon Sobisch

      Simon Sobisch - 2022-05-10

      It searches for a file that is created during configure. Did you run ./config.status libtool already?

       
  • Everaldo Bernardo Cunha

    Now I ran ... it's generated a new file without extension ... but when I execute the "make" command appear errors. The "make" doesn't find the "libtool" file. In attachment I send the log file, ok!

     

    Last edit: Everaldo Bernardo Cunha 2022-05-11
  • Everaldo Bernardo Cunha

    I investigated the file "libtool" and it is a configuration file ... maybe the file doesn't have the permission to make the job in question. I am sending in attachment that file, ok!

     
    😕
    1
<< < 1 2 3 4 5 .. 18 > >> (Page 3 of 18)

Log in to post a comment.