[Iftop-users] mac os x 10.2.6 compile?

Chris Lightfoot chris at ex-parrot.com
Sat, 23 Aug 2003 19:29:38 +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.
> 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?

Please could you try applying the following patch and
re-running configure?

diff -u -r1.1 pthread.c
--- config/pthread.c    2002/11/04 12:27:35     1.1
+++ config/pthread.c    2003/08/23 18:29:11
@@ -24,7 +24,7 @@
     pthread_cond_signal(&cond);
     pthread_mutex_unlock(&mtx);
     while (1)
-        pause();
+        pthread_testcancel();
 }
 



-- 
``Pirates only run for two things: money and public office.''
  (`Yosemite Sam')