From deisner at gmail.com Fri Jun 27 17:08:17 2008 From: deisner at gmail.com (David Eisner) Date: Fri, 27 Jun 2008 12:08:17 -0400 Subject: [Iftop-users] Display Problems on Solaris 10 Message-ID: <5ef8ba410806270908w371dbc7u251be9cf0348cb19@mail.gmail.com> [ A tumbleweed blows by ...] Is this project being actively developed? It looks like the last update posted for download was in 2005. In any case, I downloaded iftop from Sunfreeware.com, and I'm having problems with a garbled display. Columns run together and I'll often see "0b0b0b" which I believe should be "0b 0b 0b" in separate columns. You can see what I'm talking about here: http://i158.photobucket.com/albums/t87/deisner/iftop_problem.png I downloaded the 0.17pre3 release and got it to compile, but it didn't help. By the way, here are two patches (to dlcommon.c and ui.c) needed to get iftop to compile on Solaris 10 with gcc 4.3.1. I'm including the compile errors, too, for Googlers: File: dlcommon.c Error: source='dlcommon.c' object='dlcommon.o' libtool=no \ depfile='.deps/dlcommon.Po' tmpdepfile='.deps/dlcommon.TPo' \ depmode=gcc3 /bin/bash ./config/depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c `test -f 'dlcommon.c' || echo './'`dlcommon.c dlcommon.c:467: error: static declaration of 'sigalrm' follows non-static declaration dlcommon.h:35: error: previous declaration of 'sigalrm' was here Patch: ------------8<-------------- --- dlcommon.c.orig Fri Jun 27 11:48:53 2008 +++ dlcommon.c Fri Jun 27 11:49:03 2008 @@ -463,7 +463,7 @@ err("dlphysaddrack: short response ctl.len: %d", ctl.len); } -static void +void sigalrm() { (void) err("sigalrm: TIMEOUT"); ------------>8-------------- File: ui.c Error: (Problem here is that system /usr/include/curses.h gets picked up, rather than ncurses's) 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.o util.o addrs_ioctl.o addrs_dlpi.o dlcommon.o stringmap.o cfgfile.o vector.o -lpcap -lm -lsocket -lncurses ui.o: In function `ui_curses_init': /home/david/build/iftop-0.17pre3/ui.c:752: undefined reference to `initscr32' ui.o: In function `draw_bar_scale': /home/david/build/iftop-0.17pre3/ui.c:269: undefined reference to `acs32map' /home/david/build/iftop-0.17pre3/ui.c:269: undefined reference to `w32addch' /home/david/build/iftop-0.17pre3/ui.c:281: undefined reference to `acs32map' /home/david/build/iftop-0.17pre3/ui.c:281: undefined reference to `w32addch' Patch: ------------8<-------------- --- ui.c.orig Fri Jun 27 11:50:02 2008 +++ ui.c Fri Jun 27 11:50:13 2008 @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include ------------>8-------------- -David -- David Eisner http://cradle.brokenglass.com