Htop: compiling htop with gcc-10 fails

Created on 4 Feb 2020  路  2Comments  路  Source: hishamhm/htop

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

Full build log here - https://kojipkgs.fedoraproject.org//work/tasks/9379/41319379/build.log

How can I address this? Thanks.

Most helpful comment

There is a pull request (#981) that addresses the issue.

All 2 comments

There is a pull request (#981) that addresses the issue.

@uno20001 Thanks! I can confirm that this works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brendangregg picture brendangregg  路  8Comments

BenBE picture BenBE  路  5Comments

edouard-lopez picture edouard-lopez  路  3Comments

sbibauw picture sbibauw  路  7Comments

danthem picture danthem  路  5Comments