Bug 2107851

Summary: Standard install of GNU Cobol fails to compile programs
Product: [Fedora] Fedora Reporter: Zack Sargent <zackarywsargent>
Component: gnucobolAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 36CC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gnucobol-3.1.2-6.fc36 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-27 02:22:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zack Sargent 2022-07-16 20:13:06 UTC
Description of problem:

There is a misconfiguration between the standard packages for gnucobol.

Version-Release number of selected component (if applicable):

> cobc (GnuCOBOL) 3.1.2.0
> Built     Jan 20 2022 00:00:00  Packaged  Dec 23 2020 12:04:58 UTC
> C version "12.0.1 20220118 (Red Hat 12.0.1-0)"
> loading standard configuration file 'default.conf'
> cobc: error: no input files

How reproducible:

Should be very reproducible.

Download the GNU Cobol compiler and attempt to compile a program.

I was following a guide linked below when this error occurred, though I believe the error is with the packages, not with the guide.

Steps to Reproduce:
1. sudo dnf -y install gnucobol
2. cobc -v # output above
3. vi helloworld.cbl # enter basic program from guide below
4. cobc -x helloworld.cbl # this fails


Actual results:

Error in console:

> $ cobc -x helloworld.cbl
> /usr/bin/ld: cannot open linker script file /builddir/build/BUILD/.package_note-gnucobol-3.1.2-5.fc36.x86_64.ld: No such file or directory
> collect2: error: ld returned 1 exit status


Expected results:

It returns status 0 and compiles the program


Additional info:

The Guide I was following (with example program): 
https://fedoramagazine.org/getting-started-with-cobol-development-on-fedora-linux-33/

Forum post indicating a temporary workaround: 
https://forums.fedoraforum.org/showthread.php?328481-gnucobol-installation-fedora-36&p=1859194

Key excerpt:   
> If you need to compile cobol source you can, if you uninstall gnucobol and libcob, 
> then download and install libcob-3.1.2-4.fc35.x86_64.rpm and 
> gnucobol-3.1.2-4.fc35.x86_64.rpm which will work. Install them together.
> ...
> Don't let the system auto update or the fedora 35 packages will be upgraded. 
> This is only a work around until the maintainers fix it.

Comment 1 Fedora Update System 2022-07-18 16:12:51 UTC
FEDORA-2022-939ecd64ca has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-939ecd64ca

Comment 2 Fedora Update System 2022-07-19 01:11:35 UTC
FEDORA-2022-939ecd64ca has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-939ecd64ca`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-939ecd64ca

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2022-07-27 02:22:33 UTC
FEDORA-2022-939ecd64ca has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.