For the purposes of populating the mailing list digest; You were correct, the problem was that I needed an absolute path to the gdchart root.
Summary: to build from the ntop 2.2 tree on a RedHat 8.0 system: Fetch Sources: export CVSROOT=:pserver:[EMAIL PROTECTED]:/export/home/ntop and then execute the following commands (notice the trailing '.' on the checkout commands): mkdir ntop_2_2-cvs cd ntop_2_2-cvs cvs login (enter 'ntop' as password) cvs checkout -r ntop_2_2_patches . [wait until done] [next, get gdchart] cvs checkout gdchart0.94c . [ build gdchart] cd gdchart0.94c ./buildAll.sh [get and install rrdtool-1.0.41-1.8.0.ntop.i386.rpm and rrdtool-devel-1.0.41-1.8.0.ntop.i386.rpm from http://sourceforge.net/project/showfiles.php?group_id=17233&release_id=126460] wget http://umn.dl.sourceforge.net/sourceforge/ntop/rrdtool-1.0.41-1.8.0.ntop.i386.rpm wget http://umn.dl.sourceforge.net/sourceforge/ntop/rrdtool-devel-1.0.41-1.8.0.ntop.i386.rpm [solve perl module dependancies or add the '-nodeps' option to the rpm command(s) as shown below] rpm -Uvh --nodeps rrdtool-1.0.41-1.8.0.ntop.i386.rpm rpm -Uvh rrdtool-devel-1.0.41-1.8.0.ntop.i386.rpm [ cd to the ntop_2_2-cvs/ntop directory that was populated with the cvs checkout and configure ntop, using an absolute path to the gdchart root] [ if you have been hacking at it for a while, clean things up] make distclean ./configure --with-gdchart-root=/root/ntop_2_2-cvs/gdchart0.94c/ make make install [ If you can tolerate the security implications, suid nmap and lsof] chmod +s /usr/bin/nmap chmod +s /usr/sbin/lsof [ Create an /etc/protocols.ntop file, if you like, populate it like so, add to it what ever you like, see the man page] FTP=ftp|ftp-data HTTP=http|www|https|3128 DNS=name|domain Telnet=telnet|login NBios-IP=netbios-ns|netbios-dgm|netbios-ssn Mail=pop-2|pop-3|pop3|kpop|smtp|imap|imap2 DHCP-BOOTP=67-68 SNMP=snmp|snmp-trap NNTP=nntp NFS=mount|pcnfs|bwnfs|nfsd|nfsd-status X11=6000-6010 SSH=22 Gnutella=6346|6347|6348 Kazaa=1214 WinMX=6699|7730 DirectConnect=0 eDonkey=4661-4665 Messenger=1863|5000|5001|5190-5193 Groove=2492 [ Create a user to run ntop as] adduser ntop [ start ntop for the first time and create an admin password] ntop -u ntop [ stop ntop with ctrl-c after getting password established] [ I use the following command line to start ntop on a dual interface system, add a '-d' to run as a daemon] ntop -u ntop -i eth0,eth1 -M -k -K -E -e 10000 -P1 -p /etc/protocols.ntop -P /tmp -w 0 -W 3443 access the user interface at; https://ntop.mynetwork.net:3443 note the https, you will get a certificate warning, it's OK. -- J. Eric Josephson Director of Network and System Operations 978-720-2159 mailto:[EMAIL PROTECTED] "Burton M. Strauss III" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED] cc: rt.com> Subject: RE: [Ntop] Compile time problem with icmpPlugin.c Sent by: [EMAIL PROTECTED] it 07/18/2003 08:11 AM Please respond to ntop Well, the key is to look for 'error' not 'warning'. ../globals-report.h:25:17: gdc.h: No such file or directory ../globals-report.h:26:21: gdchart.h: No such file or directory ../globals-report.h:27:20: gdcpie.h: No such file or directory ../globals-report.h:211:17: gdc.h: No such file or directory ../globals-report.h:212:21: gdchart.h: No such file or directory ../globals-report.h:213:20: gdcpie.h: No such file or directory It's not finding the gdchart header files. Try giving an absolute specification, not a relative one. The problem with ../gdchart0.94c is that while it's correct in the ntop directory: ntop-cvs ntop plugins gdchart0.94c in plugins, it's equivalent to ntop/gdchart0.94c which doesn't exist. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 10:44 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Ntop] Compile time problem with icmpPlugin.c Here is the rest of the information. Not being a developer, it does very little for me.... Is the Makefile fouled, not properly telling globals-reports.h where to find the gdchart files it needs? gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/root/ntop-cvs/gdchart0.94c/zlib-1.1.4 -I../gdchart0.94c/ -I/root/ntop-cvs/gdchart0.94c/gd-1.8.3 -I/root/ntop-cvs/gdchart0.94c/gd-1.8.3/libpng-1.2.4 -DLINUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -c icmpPlugin.c -MT icmpPlugin.lo -MF .deps/icmpPlugin.TPlo -MD -MP -fPIC -DPIC -o .libs/icmpPlugin.lo In file included from icmpPlugin.c:22: ../globals-report.h:25:17: gdc.h: No such file or directory ../globals-report.h:26:21: gdchart.h: No such file or directory ../globals-report.h:27:20: gdcpie.h: No such file or directory ../globals-report.h:211:17: gdc.h: No such file or directory ../globals-report.h:212:21: gdchart.h: No such file or directory ../globals-report.h:213:20: gdcpie.h: No such file or directory In file included from icmpPlugin.c:22: ../globals-report.h:222: parse error before "GDC_CHART_T" icmpPlugin.c: In function `handleIcmpWatchHTTPrequest': icmpPlugin.c:218: `GDC_BGColor' undeclared (first use in this function) icmpPlugin.c:218: (Each undeclared identifier is reported only once icmpPlugin.c:218: for each function it appears in.) icmpPlugin.c:219: `GDC_LineColor' undeclared (first use in this function) icmpPlugin.c:220: `GDC_SetColor' undeclared (first use in this function) icmpPlugin.c:221: `GDC_ytitle' undeclared (first use in this function) icmpPlugin.c:264: `GDC_title' undeclared (first use in this function) icmpPlugin.c:270: `GDC_3DBAR' undeclared (first use in this function) icmpPlugin.c: At top level: icmpPlugin.c:467: warning: no previous prototype for `PluginEntryFctn' make[3]: *** [icmpPlugin.lo] Error 1 make[3]: Leaving directory `/root/ntop-cvs/ntop/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/ntop-cvs/ntop/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/ntop-cvs/ntop' make: *** [all] Error 2 J. Eric Josephson Director of Network and System Operations 978-720-2159 mailto:[EMAIL PROTECTED] "Burton M. Strauss III" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED] cc: rt.com> Subject: RE: [Ntop] Compile time problem with icmpPlugin.c Sent by: [EMAIL PROTECTED] it 07/17/2003 10:24 PM Please respond to ntop Back track to the real error message ... that's just a warning -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 8:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [Ntop] Compile time problem with icmpPlugin.c I pulled down the 2.2 patches CVS tree (cvs checkout -r ntop_2_2_patches .) and attempted to make it with rrdtool v 1.0.42 and gdchart v 0.94c. ./configure --with-gdchart-root=../../gdchart0.94c/ --with-rrd-root=/usr/local/rrdtool-1.0.42/ Redhat 8.0 fresh off the CDs. After an uneventful configure I get the following when I run make: icmpPlugin.c: At top level: icmpPlugin.c:467: warning: no previous prototype for `PluginEntryFctn' make[3]: *** [icmpPlugin.lo] Error 1 make[3]: Leaving directory `/root/ntop-cvs/ntop/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/ntop-cvs/ntop/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/ntop-cvs/ntop' make: *** [all] Error 2 Any ideas? -- J. Eric Josephson Director of Network and System Operations 978-720-2159 mailto:[EMAIL PROTECTED] _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
