The bus.h header file redirects DBG* macros to the bus but that won't be available unless libcharon is initialized.