Brian - 2014-07-08

hi guys,

I'd appreciate your help again and as requested by Simon I'm creating this topic for a better knowledge base.
I'm currently using Ubuntu 64bit with GNU Cobol 2.0, see below:

cobc (GNU Cobol) 2.0.0
Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Keisuke Nishida
Copyright (C) 2006-2012 Roger While
Copyright (C) 2009,2010,2012,2014 Simon Sobisch
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Built     Jul 04 2014 10:36:45
Packaged  Jan 20 2014 07:40:53 UTC
C version "4.8.2"

Build information
Build environment        : x86_64-unknown-linux-gnu
CC                       : gcc -std=gnu99
CPPFLAGS                 : 
CFLAGS                   : -g -O2 -pipe -finline-functions -fsigned-char
                           -Wall -Wwrite-strings -Wmissing-prototypes
                           -Wno-format-y2k
LD                       : /usr/bin/ld -m elf_x86_64
LDFLAGS                  : -Wl,-z,relro,-z,now,-O1

GNU Cobol information
COB_CC                   : gcc -std=gnu99
COB_CFLAGS               : -I/usr/local/include -pipe
COB_LDFLAGS              : 
COB_LIBS                 : -L/usr/local/lib -lcob -lm -lgmp -lncurses
                           -ldb -ldl
COB_CONFIG_DIR           : /usr/local/share/gnu-cobol/config
COB_COPY_DIR             : /usr/local/share/gnu-cobol/copy
COB_MODULE_EXT           : so
COB_EXEEXT               : 
Variable format          : 0
BINARY-C-LONG            : 8 bytes
Sequential handler       : Internal
ISAM handler             : BDB

I tried to use the -Xref parameter recently but it didn't work for whatever reason
So I'm calling it as usual with ./cobxref but get the following response:

./cobxref: error while loading shared libraries: libcob.so.1: wrong ELF class: ELFCLASS64

Alright this obviously has to do with me having a 64bit installation of gnu-cobol and a needed 32bit library for cobxref. I already installed the i386 package for ubuntu for the other requirements of cobxref.

My questions:
(1) Is there a possibility to get cobxref working with the 64bit library?
(2) The cobxref.cbl currently online at SF does not compile. Is the updated version released soon?

cobxref.cbl: In section 'ba000-Process-WS':
cobxref.cbl: In paragraph 'ba020-GetAWord':
cobxref.cbl: 1428: Error: Invalid MOVE statement

.c version of cobxref gives me some errors too.

(3) I already stated this in one of my recent threads and re-posted it on someone else's thread
is there a possibility to check whether the output of cobc -P not showing comments is a bug or intended?

best wishes,
Brian

 

Related

Discussion: State of the project


Last edit: Simon Sobisch 2014-07-11