Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

compiling htop with gcc-10 fails #986

Open
nonamedotc opened this issue Feb 4, 2020 · 2 comments
Open

compiling htop with gcc-10 fails #986

nonamedotc opened this issue Feb 4, 2020 · 2 comments

Comments

@nonamedotc
Copy link

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.

@uno20001
Copy link

uno20001 commented Feb 4, 2020

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

@nonamedotc
Copy link
Author

@uno20001 Thanks! I can confirm that this works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants