Bug 2179373

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

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

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

Comment 1 Arjun Shankar 2023-03-17 16:48:29 UTC
*** Bug 2179371 has been marked as a duplicate of this bug. ***