From tntbassett at yahoo.com Tue Mar 9 16:27:49 2010 From: tntbassett at yahoo.com (Terry Bassett) Date: Tue, 9 Mar 2010 08:27:49 -0800 (PST) Subject: [dnstop] Error downloading Dnstop[screenshots attach] Message-ID: <208932.47918.qm@web36302.mail.mud.yahoo.com> I am getting an error when I try to Compile and install dnstop around this process. ?# ./configure # make # make install error message: terry at ubuntu:~/dnstop-20080502$ make gcc -g -O2 -DUSE_IPV6=1 -c dnstop.c dnstop.c:20:18: error: pcap.h: No such file or directory dnstop.c:28:20: error: curses.h: No such file or directory dnstop.c:127: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token dnstop.c:137: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token dnstop.c:160: error: ?printw? undeclared here (not in a function) dnstop.c:928: warning: ?struct pcap_pkthdr? declared inside parameter list dnstop.c:928: warning: its scope is only this definition or declaration, which is probably not what you want dnstop.c: In function ?handle_pcap?: dnstop.c:930: error: dereferencing pointer to incomplete type dnstop.c:932: error: dereferencing pointer to incomplete type dnstop.c:934: error: dereferencing pointer to incomplete type dnstop.c: In function ?get_nlines?: dnstop.c:1238: error: ?w? undeclared (first use in this function) dnstop.c:1238: error: (Each undeclared identifier is reported only once dnstop.c:1238: error: for each function it appears in.) dnstop.c: In function ?get_ncols?: dnstop.c:1247: error: ?w? undeclared (first use in this function) dnstop.c: In function ?init_curses?: dnstop.c:1642: error: ?w? undeclared (first use in this function) dnstop.c: At top level: dnstop.c:1700: error: expected ?)? before ?*? token dnstop.c: In function ?main?: dnstop.c:1714: error: ?PCAP_ERRBUF_SIZE? undeclared (first use in this function) dnstop.c:1720: error: storage size of ?fp? isn?t known dnstop.c:1796: error: ?pcap? undeclared (first use in this function) dnstop.c:1833: error: ?DLT_EN10MB? undeclared (first use in this function) dnstop.c:1858: error: ?DLT_NULL? undeclared (first use in this function) dnstop.c:1896: error: ?w? undeclared (first use in this function) make: *** [dnstop.o] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 407353 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-1.png Type: image/png Size: 413400 bytes Desc: not available URL: From wessels at measurement-factory.com Wed Mar 10 09:52:12 2010 From: wessels at measurement-factory.com (Duane Wessels) Date: Wed, 10 Mar 2010 02:52:12 -0700 (MST) Subject: [dnstop] Error downloading Dnstop[screenshots attach] In-Reply-To: <208932.47918.qm@web36302.mail.mud.yahoo.com> References: <208932.47918.qm@web36302.mail.mud.yahoo.com> Message-ID: On Tue, 9 Mar 2010, Terry Bassett wrote: > I am getting an error when I try to Compile and install dnstop around this process. > # ./configure > # make > # make install > > error message: > terry at ubuntu:~/dnstop-20080502$ make > gcc -g -O2 -DUSE_IPV6=1 -c dnstop.c > dnstop.c:20:18: error: pcap.h: No such file or directory > dnstop.c:28:20: error: curses.h: No such file or directory Hi Terry, These missing include files (pcap.h, curses.h) are preventing the successful compile. On Unbuntu look for packages "libpcap-dev" "libncurses5-dev". DW From apeeters at lashout.net Wed Mar 10 09:59:15 2010 From: apeeters at lashout.net (Adriaan Peeters) Date: Wed, 10 Mar 2010 10:59:15 +0100 Subject: [dnstop] Error downloading Dnstop[screenshots attach] In-Reply-To: References: <208932.47918.qm@web36302.mail.mud.yahoo.com> Message-ID: <9E3E2292-9A26-41E6-9D03-24DB1B02412D@lashout.net> On 10 Mar 2010, at 10:52, Duane Wessels wrote: > On Tue, 9 Mar 2010, Terry Bassett wrote: > >> I am getting an error when I try to Compile and install dnstop around this process. >> # ./configure >> # make >> # make install >> error message: >> terry at ubuntu:~/dnstop-20080502$ make >> gcc -g -O2 -DUSE_IPV6=1 -c dnstop.c >> dnstop.c:20:18: error: pcap.h: No such file or directory >> dnstop.c:28:20: error: curses.h: No such file or directory > > Hi Terry, > > These missing include files (pcap.h, curses.h) are preventing > the successful compile. On Unbuntu look for packages "libpcap-dev" > "libncurses5-dev". Oh, and by the way: you can just install the dnstop Ubuntu package :) It is, however, slightly outdated. Cheers, Adriaan From jose at monkey.org Wed Mar 10 12:22:21 2010 From: jose at monkey.org (Jose Nazario) Date: Wed, 10 Mar 2010 07:22:21 -0500 (EST) Subject: [dnstop] Error downloading Dnstop[screenshots attach] In-Reply-To: <208932.47918.qm@web36302.mail.mud.yahoo.com> References: <208932.47918.qm@web36302.mail.mud.yahoo.com> Message-ID: looks like you haven't installed the libpcap and curses development packages (assuming you're on a linux box based on your hostname), which is where those header files are provided. without them all sorts of compiler errors occur. dnstop needs both. try this (not an ubuntu user): sudo apt-get install libpcap0.8-dev sudo apt-get install libncurses5-dev see if that doesn't get you further along. ________ jose nazario, ph.d. http://monkey.org/~jose/ From jose at monkey.org Tue Mar 23 13:03:18 2010 From: jose at monkey.org (Jose Nazario) Date: Tue, 23 Mar 2010 09:03:18 -0400 (EDT) Subject: [dnstop] DNSTop error {screenshot attached] In-Reply-To: <198336.39722.qm@web36306.mail.mud.yahoo.com> References: <198336.39722.qm@web36306.mail.mud.yahoo.com> Message-ID: you have to instal as root to write to those directories, or you have to chose a location you can write to as a user to install into. it's usually: $ make $ sudo make install (assuming you have sudo installed) ________ jose nazario, ph.d. http://monkey.org/~jose/