The Fedora version is based on an earlier Berkeley DB version licensed under the Sleepycat license, and this version is no longer maintained by upstream. Filing this bug here for tracking purposes. An unusually large amount of changes is required in a configure script. And the package currently FTBFS in rawhide due to the --runstatedir=/run change. I'm going to add a redhat-rpm-config tweak for that and use it.
Created attachment 1931608 [details] libdb-1.85-c99.patch
Created attachment 1931609 [details] libdb-c99.patch
Created attachment 1931610 [details] libdb-configure-c99.patch
Created attachment 1931611 [details] libdb-sqlite-c99.patch
Created attachment 2007368 [details] libdb-1.85-c99.patch Additional GCC 14 compatibility fixes.
Created attachment 2007369 [details] libdb-configure-c99.patch Additional GCC 14 compatibility fixes.