Package Details: open-cobol 3.2.1-4

Git Clone URL: https://aur.archlinux.org/open-cobol.git (read-only, click to copy)
Package Base: open-cobol
Description: COBOL compiler
Upstream URL: https://www.gnu.org/software/gnucobol/
Keywords: COBOL compiler
Licenses: GPL
Submitter: kpcyrd
Maintainer: eklausmeier
Last Packager: eklausmeier
Votes: 2
Popularity: 0.005235
First Submitted: 2018-04-11 21:57 (UTC)
Last Updated: 2024-07-01 17:21 (UTC)

Latest Comments

eklausmeier commented on 2024-07-01 16:42 (UTC)

@hughesjs: I have patched common.c, which missed a least on #include.

eklausmeier commented on 2024-07-01 14:23 (UTC) (edited on 2024-07-01 14:44 (UTC) by eklausmeier)

This is just an update to your issue, not a solution.

I can confirm the issue in building:

...
mv -f .deps/strings.Tpo .deps/strings.Plo
common.c: In function ‘print_info_detailed’:
common.c:9714:17: error: implicit declaration of function ‘xmlCleanupParser’ [-Wimplicit-function-declaration]
 9714 |                 xmlCleanupParser ();
      |                 ^~~~~~~~~~~~~~~~
...
==> ERROR: A failure occurred in build().

I checked when I last compiled the exact same version:

$ ls -l /var/cache/aur/open-cobol-3.2.1-*
-rw-r--r-- 1 klm klm 1193933 Mar 21  2023 /var/cache/aur/open-cobol-3.2.1-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 klm klm 1193955 Jan 29  2023 /var/cache/aur/open-cobol-3.2.1-1-x86_64.pkg.tar.zst.0
-rw-r--r-- 1 klm klm 1250739 Jul 30  2023 /var/cache/aur/open-cobol-3.2.1-2-x86_64.pkg.tar.zst

So, for me it looks that it is not a COBOL source code issue, but an issue with the surrounding libraries, which might have changed over the last year.

cobc uses libxml2:

$ ldd /bin/cobc
        linux-vdso.so.1 (0x00007dd2c3e95000)
        libcob.so.4 => /usr/lib/libcob.so.4 (0x00007dd2c3c7b000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007dd2c3a8f000)
        libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007dd2c39e9000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007dd2c389f000)
        libjson-c.so.5 => /usr/lib/libjson-c.so.5 (0x00007dd2c388c000)
        libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007dd2c381d000)
        libdb-6.2.so => /usr/lib/libdb-6.2.so (0x00007dd2c3620000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007dd2c3e97000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007dd2c3607000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007dd2c35d4000)
        libicuuc.so.75 => /usr/lib/libicuuc.so.75 (0x00007dd2c33da000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007dd2c32ef000)
        libicudata.so.75 => /usr/lib/libicudata.so.75 (0x00007dd2c1400000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007dd2c1000000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007dd2c32c0000)

This library was repeatedly updated:

$ grep -ai libxml2 /var/log/pacman.log
[2023-07-10T21:44:41+0200] [ALPM] upgraded libxml2 (2.10.4-6 -> 2.11.4-1)
[2023-08-10T22:16:41+0200] [ALPM] upgraded libxml2 (2.11.4-1 -> 2.11.5-1)
[2023-08-10T22:16:50+0200] [ALPM] upgraded perl-alien-libxml2 (0.19-1 -> 0.19-2)
[2023-11-21T23:23:32+0100] [ALPM] upgraded libxml2 (2.11.5-1 -> 2.12.0-1)
[2023-11-26T22:15:43+0100] [ALPM] upgraded libxml2 (2.12.0-1 -> 2.12.1-1)
[2023-12-06T21:15:23+0100] [ALPM] upgraded libxml2 (2.12.1-1 -> 2.12.2-1)
[2023-12-17T22:34:02+0100] [ALPM] upgraded libxml2 (2.12.2-1 -> 2.12.3-1)
[2024-01-22T13:35:57+0100] [ALPM] upgraded libxml2 (2.12.3-1 -> 2.12.4-1)
[2024-02-05T21:52:12+0100] [ALPM] upgraded libxml2 (2.12.4-1 -> 2.12.5-1)
[2024-03-18T22:40:32+0100] [ALPM] upgraded libxml2 (2.12.5-1 -> 2.12.6-1)
[2024-04-27T22:46:11+0200] [ALPM] upgraded libxml2 (2.12.6-1 -> 2.12.6-2)
[2024-05-19T22:57:31+0200] [ALPM] upgraded libxml2 (2.12.6-2 -> 2.12.7-1)
[2024-06-15T23:11:54+0200] [ALPM] upgraded libxml2 (2.12.7-1 -> 2.13.0-1)
[2024-06-16T22:32:18+0200] [ALPM] upgraded libxml2 (2.13.0-1 -> 2.13.0-3)
[2024-06-18T20:53:46+0200] [ALPM] upgraded libxml2 (2.13.0-3 -> 2.13.0-4)
[2024-06-21T22:28:17+0200] [ALPM] upgraded libxml2 (2.13.0-4 -> 2.13.1-1)

I guess I have to investigate this further.

hughesjs commented on 2024-06-30 20:52 (UTC) (edited on 2024-06-30 21:12 (UTC) by hughesjs)

newcob.val.z seems to be failing the integrity check.

Skipping that integrity check and attempting to build yields:

mv -f .deps/cobgetopt.Tpo .deps/cobgetopt.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../lib -I/usr/include/libxml2 -I/usr/include/cjson -DLOCALEDIR=\"/usr/share/locale\" -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/james/.cache/yay/open-cobol/src=/usr/src/debug/open-cobol -flto=auto -pipe -finline-functions -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k -MT call.lo -MD -MP -MF .deps/call.Tpo -c call.c -o call.o >/dev/null 2>&1
common.c: In function ‘print_info_detailed’:
common.c:9714:17: error: implicit declaration of function ‘xmlCleanupParser’ [-Wimplicit-function-declaration]
 9714 |                 xmlCleanupParser ();
      |                 ^~~~~~~~~~~~~~~~

Trying to manually build 3.2 from source yields the same issue.

This seems to be an upstream issue. Building with XML2 support seems to work as a workaround in the meantime. You could probably also mess with the CFLAGS.

eklausmeier commented on 2021-08-17 14:33 (UTC)

Yes, this is GnuCobol.

Community package seems to be dormant. See Bug FS#71821.

svenstaro commented on 2018-08-06 19:13 (UTC)

Isn't this the same as gnu-cobol?