On Tuesday, 21 January 2020 13:35:03 CET Miro Hrončok wrote:
we try to rebuild all Python packages against Python 3.9 and report the
failures. I've seen several similar failures in a row now that can be
in Fedora rawhide with the new gcc version.
ld errors on multiple definitions of ..., for example:
multiple definition of `the_var';
first defined here
This is a known thing in gcc 10:
"Default to -fno-common
A common mistake in C is omitting extern when declaring a global variable in
header file. If the header is included by several files it results in
multiple definitions of the same variable. In previous GCC versions
error is ignored. GCC 10 defaults to -fno-common, which means a linker
error will now be reported. To fix this, use extern in header files when
declaring global variables, and ensure each global is defined in exactly
one C file. As a workaround, legacy C code can be compiled with -fcommon.
int x; // tentative definition - avoid in header files
extern int y; // correct declaration in a header file"
Here are some packages affected:
Before I go and file dozens of bugzillas, do we want to handle this somehow
devel mailing list -- devel(a)lists.fedoraproject.org
To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
How to fix the affected packages? For some I ised extern and it worked but for
other using extern resulted in error like:
/usr/bin/ld: /builddir/build/BUILD/uTox-0.17.1/src/xlib/main.c:590: undefined
reference to `font_small_lineheight'
Lots of undefined reference despite the var being marked as global. All the
packages I have to fix have deadish upstream.
Any help appreciated.