gcc-10 will be available in Fedora 32. Compiling htop using gcc-10 fails with the following messages
/usr/bin/ld: ClockMeter.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:159: multiple definition of `backtraceArray'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:159: first defined here
/usr/bin/ld: ClockMeter.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:153: multiple definition of `CRT_termType'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:153: first defined here
/usr/bin/ld: ClockMeter.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: multiple definition of `CRT_colors'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: first defined here
/usr/bin/ld: ColorsPanel.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: multiple definition of `CRT_colors'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: first defined here
/usr/bin/ld: ColorsPanel.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:159: multiple definition of `backtraceArray'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:159: first defined here
/usr/bin/ld: ColorsPanel.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:153: multiple definition of `CRT_termType'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:153: first defined here
/usr/bin/ld: ColumnsPanel.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: multiple definition of `CRT_colors'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: first defined here
/usr/bin/ld: ColumnsPanel.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:159: multiple definition of `backtraceArray'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:159: first defined here
/usr/bin/ld: ColumnsPanel.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:153: multiple definition of `CRT_termType'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:153: first defined here
/usr/bin/ld: CPUMeter.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: multiple definition of `CRT_colors'; CheckItem.o:/builddir/build/BUILD/htop-2.2.0/CRT.h:143: first defined here
gcc-10 will be available in Fedora 32. Compiling htop using gcc-10 fails with the following messages
Full build log here - https://kojipkgs.fedoraproject.org//work/tasks/9379/41319379/build.log
How can I address this? Thanks.