OK... I really think you're making this too complicated - and you (despite) what you think - are definitely NOT following the instructions in BUILD-NTOP.txt.
If you follow the instructions, I know it works - tiggerf is a FreeBSD 5.0 machine and that's what I use for testing. Please wipe everything - including installed versions of libz, libgdchart, etc., download the ntop tgz and manually follow the steps in BUILD-NTOP.txt. 1. It shouldn't be necessary to download the software from the individual web sites. All of the packages are included in the ntop tgz. (As well as the version of gdchart available on the author's web site is 0.94b not 0.94c). 2. Those "gnu build" packages (autoconf, automake, libtool) should be fine. 3. yes, do the ./autogen.sh -1 - it can only help 4. Unless I'm misreading, you don't do a make in gd-1.8.3... Also, why make, vs. gmake?? a) Static vs Shared Doing the make install for zlib and others of the libraries will put a .so or .a or both into the installation directories (such as /usr/lib or /usr/local/lib). The gnu loader prefers .so to .a, so that if there is a .so in the library list, it is used, instead of the .a build by the BUILD-NTOP.txt instructions! As you can see, we give a fairly elaborate library list: /bin/sh ./libtool --mode=link gcc -g -O2 -pipe -o libntopreport.la -rpath /usr/local/lib -version-info 0:0:0 -release 2.0 -export-dynamic emitter.lo globals-report.lo graph.lo http.lo report.lo reportUtils.lo webInterface.lo -lcrypt -lm -lz -L/tmp/gdchart0.94c -lgdchart -L/tmp/gdchart 0.94 c/gd-1.8.3 -lgd -L/tmp/gdchart0.94c/gd-1.8.3/libpng-1.2.1 -lpng -L/tmp/gdcha rt0. 94c/zlib-1.1.4 -lz -L/usr/lib -lssl -lcrypto -lc_r -lcrypt -lm -lz -L/tmp/ gdch art0.94c -lgdchart -L/tmp/gdchart0.94c/gd-1.8.3 -lgd -L/tmp/gdchart0.94c/gd- 1.8. 3/libpng-1.2.1 -lpng -L/tmp/gdchart0.94c/zlib-1.1.4 -lz -L/usr/lib -lssl -lc rypt Many of those are NOT available at run time (they're not in ld.so.conf). Thus if there is an .so version there, it will be linked to and then not available at run time! *** Warning: This library needs some functionality provided by -lgdchart. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. Basically means you gave a -lgdchart instruction, but libgdchart.so couldn't be found in the library list. It shouldn't have to be found, it should be using the .a in the gdchart0.94c directory. b) ## --with-gdchart-root isn't (but should be) mentioned in BUILD-NTOP.txt ./configure --with-gdchart-root=/tmp/gdchart0.94c If you use the packages as part of ntop's .tgz these are all in the right place and ntop doesn't need a --with-gdchart-root. If you have packages elsewhere on the hard drive, then you have to have it. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of The Jetman Sent: Thursday, August 08, 2002 7:24 PM To: NTOP Mail List Subject: [Ntop] [FreeBSD 4.5-R]NTOP Won't Run As A Daemon Have done a complete build of NTOP 2.1.2 and NTOP will not run as a daemon. The steps taken have been enumerated below: 1) D/L ntop-2.1.2, gdchart0.94c, gd-1.8.3, zlib-1.1.4, and libpng-1.2.1 from respective author's sites. 2) Installed FreeBSD pkgs: autoconf-2.52_2, automake-1.5,1, libtool-1.3.4_2 in order to use autogen.sh, as advised if there are compilation probs. 3) ./autogen.sh -1 4) Edit build instructions from ntop/docs/BUILD-NTOP.txt into a simple shell script (called make-it-all.sh), so that no step is overlooked: #! /bin/sh cd /tmp/gdchart0.94c/ ./configure cd gd-1.8.3/libpng-1.2.1 cp scripts/makefile.gcc Makefile make cd ../../zlib-1.1.4/ ./configure make clean make make install cd .. make clean make make install cd /tmp/ntop ## --with-gdchart-root isn't (but should be) mentioned in BUILD-NTOP.txt ./configure --with-gdchart-root=/tmp/gdchart0.94c gmake gmake install 5) ./make-it-all.sh 6) GMAKE (of NTOP) stops due to faulty link params. Manually edit Makefile, to add -version-info and -release flags, per suggestions from NTOP FAQ ("libtool: link: CURRENT `-release' is not a nonnegative integer"). Re-run GMAKE. 7) NTOP's Makefile runs thru to completion w/o errors, but there are ominous warnings emitted: /bin/sh ./libtool --mode=link gcc -g -O2 -pipe -o libntopreport.la -rpath /usr/local/lib -version-info 0:0:0 -release 2.0 -export-dynamic emitter.lo globals-report.lo graph.lo http.lo report.lo reportUtils.lo webInterface.lo -lcrypt -lm -lz -L/tmp/gdchart0.94c -lgdchart -L/tmp/gdchart 0.94 c/gd-1.8.3 -lgd -L/tmp/gdchart0.94c/gd-1.8.3/libpng-1.2.1 -lpng -L/tmp/gdcha rt0. 94c/zlib-1.1.4 -lz -L/usr/lib -lssl -lcrypto -lc_r -lcrypt -lm -lz -L/tmp/ gdch art0.94c -lgdchart -L/tmp/gdchart0.94c/gd-1.8.3 -lgd -L/tmp/gdchart0.94c/gd- 1.8. 3/libpng-1.2.1 -lpng -L/tmp/gdchart0.94c/zlib-1.1.4 -lz -L/usr/lib -lssl -lc rypt o rm -fr .libs/libntopreport.la .libs/libntopreport.* .libs/libntopreport-2.0.* *** Warning: This library needs some functionality provided by -lgdchart. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -lgd. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -lpng. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -lgdchart. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -lgd. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -lpng. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. I repeat all subsidiary libraries as spec'd in the build instructions have been built in the *exact* order spec'd in the file. Moreover, where applicable, make install is invoked in the make-it-all.sh script, so that the libraries are placed properly. The location of the libs has been visually verified, located in /usr/local/lib. 8) gmake install 9) chmod 6111 ntop, per FAQ ("How can I run ntop without being root ?") 10) Test NTOP w/ simple script followed by its output: /usr/local/bin/ntop -K -S 2 -P /var/db/ntop -u nobody -a /var/db/ntop/ntop.access.log -i rl0 -w 3000 -t5 -d Aug 8 18:40:24 firewall ntop[39961]: Initializing network devices... Aug 8 18:40:24 firewall ntop[39961]: ntop v. MT (SSL) [i386-unknown-freebsdelf4.5] (08/08/02 04:35:21 PM build) Aug 8 18:40:24 firewall ntop[39961]: Listening on [rl0] Aug 8 18:40:24 firewall ntop[39961]: Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]> Aug 8 18:40:24 firewall ntop[39961]: Get the freshest ntop from http://www.ntop.org/ Aug 8 18:40:24 firewall ntop[39961]: Initializing... Aug 8 18:40:24 firewall /kernel: rl0: promiscuous mode enabled Aug 8 18:40:24 firewall ntop[39961]: Truncated network size to 1024 hosts (real netmask 255.255.255.0) Aug 8 18:40:24 firewall ntop[39961]: Loading plugins (if any)... Aug 8 18:40:24 firewall ntop[39961]: Searching plugins in /usr/local/lib/ntop/plugins Aug 8 18:40:24 firewall ntop[39961]: Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri. Aug 8 18:40:24 firewall ntop[39961]: Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni. Aug 8 18:40:24 firewall ntop[39961]: Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri. Aug 8 18:40:24 firewall ntop[39961]: Welcome to NetFlow. (C) 2002 by Luca Deri. Aug 8 18:40:24 firewall ntop[39961]: Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and W.Brock Aug 8 18:40:24 firewall ntop[39961]: Welcome to sFlowPlugin. (C) 2002 by Luca Deri. Aug 8 18:40:24 firewall ntop[39961]: Resetting traffic statistics... Aug 8 18:40:24 firewall ntop[39961]: Started thread (141430784) for network packet analyser. Aug 8 18:40:24 firewall ntop[39961]: Started thread (141432832) for idle hosts detection. Aug 8 18:40:24 firewall ntop[39961]: Started thread (141433856) for DNS address resolution. Aug 8 18:40:24 firewall ntop[39961]: Started thread (143380480) for address purge. Aug 8 18:40:24 firewall ntop[39961]: Initializing plugins (if any)... Aug 8 18:40:24 firewall ntop[39961]: NetFlow export disabled Aug 8 18:40:24 firewall ntop[39961]: ntop caught signal 11 Aug 8 18:40:24 firewall ntop[39961]: Cleaning up... Aug 8 18:40:24 firewall ntop[39961]: Waiting until threads terminate... Aug 8 18:40:24 firewall ntop[39961]: Address resolution terminated... Aug 8 18:40:27 firewall ntop[39961]: Freeing hash host instances... (1 device(s) to save) Aug 8 18:40:27 firewall ntop[39961]: 0 instances freed Aug 8 18:40:27 firewall ntop[39961]: Unloading plugins (if any)... Aug 8 18:40:27 firewall ntop[39961]: Thanks for using PDAWatch... Aug 8 18:40:27 firewall ntop[39961]: Done. Aug 8 18:40:27 firewall ntop[39961]: Thanks for using ntop NetFlow Aug 8 18:40:27 firewall ntop[39961]: Done. Aug 8 18:40:27 firewall ntop[39961]: Thanks for using icmpWatch... Aug 8 18:40:27 firewall ntop[39961]: Done. Aug 8 18:40:27 firewall ntop[39961]: Cisco NetFlow exporter terminated. Aug 8 18:40:27 firewall ntop[39961]: Freeing device rl0 (idx=0)... Aug 8 18:40:27 firewall ntop[39961]: 102 packets received by filter on rl0 Aug 8 18:40:27 firewall ntop[39961]: 11 packets dropped by kernel Aug 8 18:40:27 firewall ntop[39961]: 0 packets dropped by ntop Aug 8 18:40:27 firewall /kernel: rl0: promiscuous mode disabled 11) The same command line will invoke NTOP *if* -d is left off. In spite of the warnings from step #7, the Network Load graphs are gen'd and the program otherwise "seems" to work normally. I have also attached NTOP's config, as provided from NTOP's About:Configuration link. I use NTOP on my office firewall, to monitor utilization of our Internet connection (via the internal LAN iface, rl0.) I would also point out that I'm a developer (altho I have zero experience w/ Unix/Linux/BSD development.) I've never had any trouble building other non-trivial, open-source pgms (PROFTPD, MYSQL, SAMBA, etc.), so I'm really at a loss to understand why this effort has been fraught w/ problems (of any kind.) About my firewall: 1GHz Duron w/ 128 MB of RAM, 40GB hdrive, Realtek PCI Ethernet, Orinoco Wi-Fi (not monitored by NTOP) card, 256K Wi-Fi Internet connection, gcc-2.95.3. Later....Jet =============== From the desk of Jethro Wright, III ================ + Before you criticize someone, you should walk a mile in their + + shoes. That way, when you criticize them, you're a mile away + + *AND* you have their shoes. + === [EMAIL PROTECTED] =============================== Anon === _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop
