Bug 2179371

Summary: bitcoin-core does not build with C99
Product: [Fedora] Fedora Reporter: Arjun Shankar <ashankar>
Component: bitcoin-coreAssignee: Arjun Shankar <ashankar>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: negativo17
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-17 16:48:29 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: 2141798    

Description Arjun Shankar 2023-03-17 14:22:55 UTC
bitcoin-core comes with a bundled version of Berkeley DB (4.8, quite old and unmaintained).  The configure script for the bundled db-4.8 encounters several "implicit int" and "implicit function declaration" errors when the C fragments in its checks are compiled as C99.  This means that future compilers that do not support implicit ints and implicit function declarations by default will fail to correctly build Fedora's bitcoin-core package.

Related:

https://fedoraproject.org/wiki/Changes/PortingToModernC
https://fedoraproject.org/wiki/Toolchain/PortingToModernC

Comment 1 Arjun Shankar 2023-03-17 16:48:29 UTC
I filed this twice by mistake. Closing one of the duplicates.

*** This bug has been marked as a duplicate of bug 2179373 ***