Hello,
Starting from the upcoming GCC release 10, the default of -fcommon option will change to -fno-common:
In C, global variables with multiple tentative definitions will result in linker errors. Global variable accesses are also more efficient on various targets.
The latest dump fails to build with -fno-common option. I'm attaching a build log.
Thanks for fixing it.
Best regards,
Kristyna Streitova
looks like you forgot to actually attach the log ;). it seems this came from:
https://bugzilla.opensuse.org/1160263
but the log there also shows the build passing.
forcing a local build with -fno-common shows many linktime errors like:
ld: ../common/.libs/libcommon.a(transformation_bzlib.o):.../dump/common/../compat/include/protocols/dumprestore.h:84: multiple definition of 'u_data'; itime.o:.../dump/../compat/include/protocols/dumprestore.h:84: first defined here
the codebase is a mess and not worth my time to untangle, so i just added -fcommon to the configure script's CFLAGS
i'll leave this open in case someone someday feels like cleaning up this pile