[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GnuCOBOL-users] Strange syntax error
From: |
Leslie Turriff |
Subject: |
[GnuCOBOL-users] Strange syntax error |
Date: |
Tue, 15 May 2018 09:13:07 -0500 |
User-agent: |
KMail/1.9.10 (enterprise35 0.20100827.1168748) |
Hi,
It's been a while since I tinkered with GnuCOBOL (back when it was
OpenCOBOL,
actually), so I might be missing something really simple here.
I'm trying to install the cobcurses package on my OpenSuSE Linux x86_64
system, and getting these errors. The source code looks simple enough, so
I'm not sure what's causing them.
Source code:
~/Downloads/Packages/Non-RPMs/Linux/cobcurses/src
$ head -n24 lib/libcobcurses.cob |cat -n
1 *>*****************************************************************
2 *>
3 *> LIBCOBCURSES : CODE FOR SHARED LIBRARY
4 *>
5 *> Warren W. Gay VE3WWG
6 *>
7 *>*****************************************************************
8
9 *>*****************************************************************
10 *> INITIALIZATION ROUTINE "libcobcurses" :
11 *>*****************************************************************
12
13 IDENTIFICATION DIVISION.
14 PROGRAM-ID. libcobcurses.
15
16 DATA DIVISION.
17 WORKING-STORAGE SECTION.
18
19 01 NC-COBCURSES-EXIT.
20 10 NC-INSTALL-FLAG PIC 9999 COMP-5 VALUE 0.
21 01 NC-EXIT-PROC USAGE IS PROGRAM-POINTER.
22 01 WS-COBCURSES-NORECOVERY-VALUE PIC X VALUE 'N'.
23
24 LINKAGE SECTION.
The make process does this:
cobc -b -Wall -Wno-call-params -std=cobol85 -I../copybk -free
libcobcurses.cob cobcurses.o terminal.o term_curses.o term_curses_con
v.o term_curses_menu.o cc_menu.o environ.o misc.o dynstr.o pathname.o fcomp2.o
ecomp1.o ecomp2.o expon.o ecvt.o units.o eunits.o enu
mber.o cobmenu.o cobtrace.o -L/usr/local/lib64 -lncurses
and produces error messages like these. Most of them appear to be cascade
errors caused by the first on on line 20. The COBCURSG.cbl copybook is quite
large, and the compiler gives up after a while and the make fails.
libcobcurses.cob:20: error: syntax error, unexpected Identifier, expecting
EXTERNAL or EXTERNAL-FORM or GLOBAL or IDENTIFIED
libcobcurses.cob:21: error: syntax error, unexpected Identifier
../copybk/COBCURSG.cbl:12: error: syntax error, unexpected Identifier,
expecting EXTERNAL or EXTERNAL-FORM or GLOBAL or IDENTIFIED
I can't see what's causing this. I'm attaching the complete program
and
copybook sources and the make log in hopes you can see what's wrong.
Leslie
libcobcurses.cob
Description: Text document
COBCURSG.cbl
Description: Text document
make.log
Description: Text Data
- [GnuCOBOL-users] Strange syntax error,
Leslie Turriff <=