Iftop reports an error when compiling in arch environment.
make[2]: Entering directory '/home/iftop'
gcc -g -O2 -o iftop addr_hash.o edline.o hash.o iftop.o ns_hash.o options.o resolver.o screenfilter.o serv_hash.o sorted_list.o threadprof.o ui_common.o ui.o tui.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lm -lcurses
/usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:36: multiple definition of screen_list'; iftop.o:/home/iftop/ui_common.h:36: first defined here /usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:38: multiple definition of peaktotal'; iftop.o:/home/iftop/ui_common.h:38: first defined here
/usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:38: multiple definition of peakrecv'; iftop.o:/home/iftop/ui_common.h:38: first defined here /usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:38: multiple definition of peaksent'; iftop.o:/home/iftop/ui_common.h:38: first defined here
/usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:37: multiple definition of totals'; iftop.o:/home/iftop/ui_common.h:37: first defined here /usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:40: multiple definition of screen_hash'; iftop.o:/home/iftop/ui_common.h:40: first defined here
/usr/sbin/ld: ui_common.o:/home/iftop/ui_common.h:41: multiple definition of service_hash'; iftop.o:/home/iftop/ui_common.h:41: first defined here /usr/sbin/ld: ui.o:/home/iftop/ui_common.h:36: multiple definition of screen_list'; iftop.o:/home/iftop/ui_common.h:36: first defined here
/usr/sbin/ld: ui.o:/home/iftop/ui_common.h:38: multiple definition of peaksent'; iftop.o:/home/iftop/ui_common.h:38: first defined here /usr/sbin/ld: ui.o:/home/iftop/ui_common.h:38: multiple definition of peakrecv'; iftop.o:/home/iftop/ui_common.h:38: first defined here
/usr/sbin/ld: ui.o:/home/iftop/ui_common.h:38: multiple definition of peaktotal'; iftop.o:/home/iftop/ui_common.h:38: first defined here /usr/sbin/ld: ui.o:/home/iftop/ui_common.h:37: multiple definition of totals'; iftop.o:/home/iftop/ui_common.h:37: first defined here
/usr/sbin/ld: ui.o:/home/iftop/ui_common.h:40: multiple definition of screen_hash'; iftop.o:/home/iftop/ui_common.h:40: first defined here /usr/sbin/ld: ui.o:/home/iftop/ui_common.h:41: multiple definition of service_hash'; iftop.o:/home/iftop/ui_common.h:41: first defined here
/usr/sbin/ld: tui.o:/home/iftop/ui_common.h:36: multiple definition of screen_list'; iftop.o:/home/iftop/ui_common.h:36: first defined here /usr/sbin/ld: tui.o:/home/iftop/ui_common.h:37: multiple definition of totals'; iftop.o:/home/iftop/ui_common.h:37: first defined here
/usr/sbin/ld: tui.o:/home/iftop/ui_common.h:38: multiple definition of peaksent'; iftop.o:/home/iftop/ui_common.h:38: first defined here /usr/sbin/ld: tui.o:/home/iftop/ui_common.h:38: multiple definition of peakrecv'; iftop.o:/home/iftop/ui_common.h:38: first defined here
/usr/sbin/ld: tui.o:/home/iftop/ui_common.h:38: multiple definition of peaktotal'; iftop.o:/home/iftop/ui_common.h:38: first defined here /usr/sbin/ld: tui.o:/home/iftop/ui_common.h:40: multiple definition of screen_hash'; iftop.o:/home/iftop/ui_common.h:40: first defined here
/usr/sbin/ld: tui.o:/home/iftop/ui_common.h:41: multiple definition of `service_hash'; iftop.o:/home/iftop/ui_common.h:41: first defined here
error: ld returned 1 exit status