With GCC 12 and Boost 1.81 (from depends) having multiple warnings:
In file included from /home/hebasto/bitcoin/depends/x86_64-pc-linux-gnu/include/boost/config.hpp:48:
/home/hebasto/bitcoin/depends/x86_64-pc-linux-gnu/include/boost/config/stdlib/libstdcpp3.hpp:397:9: warning: 'BOOST_NO_CXX98_FUNCTION_BASE' macro redefined [-Wmacro-redefined]
#define BOOST_NO_CXX98_FUNCTION_BASE
^
<command line>:8:9: note: previous definition is here
#define BOOST_NO_CXX98_FUNCTION_BASE 1
^
1 warning generated.
This PR fixes those warnings.
Defining of the BOOST_NO_CXX98_FUNCTION_BASE macro was introduced in #25436, but since https://github.com/boostorg/config/pull/430, it is required to check it before adding.