From: Tom v. d. G. <tom...@xs...> - 2009-09-22 11:16:22
|
Hi Elias, I was trying to compile spyAgent on Linux (Debian 4.0). Besides manually installing libev and the inclulded libpcap-0.8.1 it also required net/bpf.h as per include in commands.c. This file is not installed by default on Debian 4.0. Usually it's sufficient for libpcap to make a symbolic link from net/bpf.h -> pcap-bpf.h but in spyAgent it's missing the definition of BIOCIMMEDIATE which, for some reason, is not in the pcap-bpf.h. In this case I copied a bpf.h from another system to the target machine, which was sufficient to fix this issue. This dependency is most likely introduced in the 'recent' switch from poll -> libev Would it be a good idea to either: - check bpf.h in the confgure phase for the declaration of BIOCIMMEDIATE type - or include a fallback declaration - or remove the dependency - is there another (better) option? It might also be a good idea to include libev in the source, just like libpcap. Best regards, Tom |