On 2024-11-21 19:01, G. Branden Robinson wrote:
Inspecting src/devices/grodvi/dvi.cpp, I saw that it had:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
...but further checking revealed that src/include/driver.h did not.
However, adding it didn't solve the problem.
You shouldn't need to put "#include <config.h>" at the start of every
source file. It needs to be included first at the start of every
compilation unit; that's good enough.
I see that some Groff .h files include config.h:
src/roff/troff/hvunits.h:20:#include <config.h>
src/preproc/pic/pic.h:22:#include <config.h>
src/include/lib.h:23:#include <config.h>
src/include/ptable.h:20:#include <config.h>
src/include/itable.h:20:#include <config.h>
src/include/stringclass.h:20:#include <config.h>
Not sure why Groff does that. The .cpp or .c file should include
config.h first, and .h files should therefore not need to include config.h.
This isn't your main problem, though. It's something to do with Gnulib
and signbit. What C compiler are you using? What commmand do you use to
configure Groff? (You may need a C++ expert like Bruno to help out here....)