The init(NULL) call is to an ios_base::init function which is only available on Clang. This call is required on Clang to prevent a unit test (streamtestcase) failure.
init(NULL)
ios_base::init
I have added support for GNU g++-14 on MacOS in this Log4cxx PR