Bug 1750694

Summary: unzip: Please build in C89 mode
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: unzipAssignee: Jakub Martisko <jamartis>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kdudka, pstodulk, vvitek
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: unzip-6.0-58.fc38 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-09 16:47:19 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:
Bug Depends On:    
Bug Blocks: 2137516    
Attachments:
Description Flags
unzip.patch
none
Build with -std=gnu89 none

Description Florian Weimer 2019-09-10 09:30:52 UTC
Created attachment 1613525 [details]
unzip.patch

A future version of GCC will default to C99 and reject implicit function declarations. The custom unix/configure script is not able to deal with this and produces incorrect results due to missing function declarations.

A start of patch showing the changes required is attached, but further tweaks are needed.

Comment 1 Florian Weimer 2022-10-19 09:03:02 UTC
Porting to C99 is too risky for other targets. I recommend building in C89 mode instead.

Comment 2 Florian Weimer 2022-10-19 09:05:20 UTC
Created attachment 1918984 [details]
Build with -std=gnu89

Switch GCC to C89 mode.

I verified that this does not trigger any implicitness errors (which are expected to be turned on in GCC 14).

Comment 3 Fedora Update System 2022-11-09 16:44:58 UTC
FEDORA-2022-335841c79d has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-335841c79d

Comment 4 Fedora Update System 2022-11-09 16:47:19 UTC
FEDORA-2022-335841c79d has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.