[Iftop-users] mac os x 10.2.6 compile?

Chris Lightfoot chris at ex-parrot.com
Sat, 23 Aug 2003 19:36:44 +0100


On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote:
> Greetings,
> 
> I'm trying to get 0.13 to compile and it gets to here and hangs.
> 
> configure: WARNING: using single-threaded resolver with gethostbyaddr
>   Consider obtaining ARES or a machine with a working gethostbyaddr_r.

[ aside to Paul: Mac OS X, being BSD, has no thread-safe
  way to resolve names. There is no need to act surprised
  at this point. But maybe we should write a
  Netscape-style forking asynchronous resolver? ]

> checking where to find pcap.h... /include
> checking for pcap_open_live in -lpcap... yes
> checking pcap.h usability... yes
> checking pcap.h presence... yes
> checking for pcap.h... yes
> checking for a curses library containing mvchgat... -lcurses
> checking how to compile a working program with POSIX threads...
> 
> Any ideas?

with the patch I just sent, and the following:

diff -u -r1.32 options.c
--- options.c   2003/03/01 01:55:13     1.32
+++ options.c   2003/08/23 18:33:21
@@ -134,7 +134,7 @@
               options.netfiltermask.s_addr = htonl(0xffffffffl);
             }
             else {
-              uint32_t mm = 0xffffffffl;
+              u_int32_t mm = 0xffffffffl;
               mm >>= n;
               options.netfiltermask.s_addr = htonl(~mm);
             }

iftop compiles and runs happily.

-- 
``... Traverse the curve, carrying a spear, in a time less
  than that it takes for a lion to walk its own length.''
  (How To Hunt A Lion: the Peano method)