compile+link Fujitsu Linux



I am evaluating Fujitsu NetCOBOL for Linux.
I am having problems getting CALL/CANCEL to work.
Here are two simple programs, first the main program then the called
program:

IDENTIFICATION DIVISION.
PROGRAM-ID. MYMAIN.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 ACPT PIC X.
PROCEDURE DIVISION.
OPEN-PARA.
DISPLAY "BEGIN MYMAIN".
CALL 'MYSUB1'.
DISPLAY "THE END - ACCEPTING ONE BYTE".
ACCEPT ACPT.
STOP RUN.

IDENTIFICATION DIVISION.
PROGRAM-ID. MYSUB1.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 ACPT PIC X.
PROCEDURE DIVISION.
OPEN-PARA.
DISPLAY "BEGIN MYSUB1 - ACCEPTING ONE BYTE".
ACCEPT ACPT.
EXIT PROGRAM.

The two source programs are saved as MYMAIN.CBL and MYSUB1.CBL.
We want dynamic linkage since our real application consists of dozens
of C programs and hundreds of COBOL programs.

I tried compiling with:
cobol -M -dy -WC,"BINARY(BYTE),DLOAD" -o MYMAIN MYMAIN.CBL
cobol -dy -shared -WC,"BINARY(BYTE)" -o libMYSUB1.so MYSUB1.CBL

when I try to execute I see my first DISPLAY and then it crashes:
BEGIN MYMAIN
cobol-rts:: HALT: JMP0015I-U [PID:0000763D TID:002516C0] CANNOT CALL
PROGRAM 'MY
SUB1'. ./MYMAIN: undefined symbol: MYSUB1 PGM=MYMAIN
Aborted

I am running on Red Hat Enterprise, and Fujitsu support say they will
only support:
* Red Hat Linux 7.2, Locale C
* Red Hat Linux 7.3, Locale C
* Red Hat Linux Advanced Server 2.1, Locale C

I am hoping that someone here has figured out how to compile and line
on less ancient versions of Linux.

---Charlie






.



Relevant Pages

  • Re: compile+link Fujitsu Linux
    ... IDENTIFICATION DIVISION. ... DISPLAY "THE END - ACCEPTING ONE BYTE". ... Red Hat Linux 7.2, Locale C ...
    (comp.lang.cobol)
  • Re: Mail from sender@mail.company.com not sender@company.com
    ... I have configured Sendmail on my Red Hat Linux machine (hostname: ... But what I want is to let it display as ross@xxxxxxxxxxxx ...
    (comp.mail.sendmail)
  • Re: Grub wont boot to linux partion
    ... > display boot.msg ... #title Red Hat Linux ... > It looks like the partition hdc4 is an invalid choice to attempt booting ... highlight the Linux boot option and press the 'e' ...
    (linux.redhat.misc)
  • Re: Grub wont boot to linux partion
    ... >> display boot.msg ... >#title Red Hat Linux ... >> It looks like the partition hdc4 is an invalid choice to attempt booting ... highlight the Linux boot option and press the 'e' ...
    (linux.redhat.misc)
  • Re: compile+link Fujitsu Linux
    ... IDENTIFICATION DIVISION. ... DISPLAY "BEGIN MYMAIN". ... ACCEPT ACPT. ... Red Hat Linux 7.2, Locale C ...
    (comp.lang.cobol)