gcc ... -o qstat ...
ld: config.o:qstat/display_json.h:24:
multiple definition of `json_printed'; xform.o:qstat/display_json.h:24: first defined here
ld: config.o:qstat/display_json.h:23:
multiple definition of `json_encoding'; xform.o:qstat/display_json.h:23: first defined here
On gcc-10 (and gcc-9 -fno-common) build fails as:
gcc-10 will change the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678.
The error also happens if CFLAGS=-fno-common passed explicitly.
Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/706390