Danilo Pecher via cdesktopenv-devel
<cdesktopenv-devel@lists.sourceforge.net> writes:

> The Fedora builds seem to be completely broken, and for the moment I
> haven't got the faintest clue why. Linkage is broken with massive error
> blocks like these.
[...]
> /usr/bin/ld: raima/cmtype.o:/usr/local/src/cdesktopenv-
> code/cde/lib/DtSearch/raima/dbtype.h:410: multiple definition of
> `__SK__'; raima/alloc.o:/usr/local/src/cdesktopenv-
> code/cde/lib/DtSearch/raima/dbtype.h:410: first defined here

Has the build environment been upgraded to GCC 10? If so, that's why: it
defaults to -fno-common, so it doesn't automatically merge multiple
definitions of the same symbol.

This particular error is because the definition of the variable __SK__
in the header file is missing an "extern", so it emits a separate
definition in every file that includes that header. (Although it looks
like nothing uses __SK__ anyway, so it could just be simplified to a
definition of "struct sk".)

-- 
Adam Sampson <a...@offog.org>                         <http://offog.org/>


_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to