cannot install ntop under freeBSD 5.5

PK piotrekk at excite.com
Wed Jul 27 13:18:45 GMT 2005


thanks, 

but now I get rrd disaster:

rm -f .libs/rrdPlugin.lo
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -I/usr/include -I../myrrd -DFREEBSD -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/include -g -O -pipe -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -MT rrdPlugin.lo -MD -MP -MF .deps/rrdPlugin.Tpo -c rrdPlugin.c  -fPIC -DPIC -o .libs/rrdPlugin.lo
rrdPlugin.c: In function `graphCounter':
rrdPlugin.c:583: error: too few arguments to function `rrd_graph'
rrdPlugin.c: In function `netflowSummary':
rrdPlugin.c:728: error: too few arguments to function `rrd_graph'
rrdPlugin.c: In function `graphSummary':
rrdPlugin.c:926: error: too few arguments to function `rrd_graph'
gmake[3]: *** [rrdPlugin.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/net/ntop/work/ntop/plugins'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/net/ntop/work/ntop/plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/ntop/work/ntop'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/net/ntop.
*** Error code 1

I cannot use both at the same time: 

make rmconfig in /usr/ports/net/ntop

and this patch in /usr/ports/net/ntop/files to correct rrd:

--- ntop.h.orig	Tue Jul 26 03:39:16 2005
+++ ntop.h	Tue Jul 26 03:39:29 2005
@@ -447,7 +447,7 @@
 #endif

 #ifndef EMBEDDED
-#include "rrd.h"
+#include "myrrd/rrd.h"
 #endif

 #ifdef HAVE_GETOPT_H


this patch should solve rrdPlugin disaster.

greetings
piotr






 --- On Wed 07/27, Glenn Dawson < glenn at antimatter.net > wrote:
From: Glenn Dawson [mailto: glenn at antimatter.net]
To: piotrekk at excite.com
Date: Wed, 27 Jul 2005 05:39:36 -0700
Subject: Re: cannot install ntop under freeBSD 5.5

At 04:36 AM 7/27/2005, you wrote:<br><br>>and howto build ntop without XML plugin ?<br><br>Just do make rmconfig in /usr/ports/net/ntop<br><br>Then when you do make install clean it should prompt you with a menu of <br>optional components.  XML should be turned off by default, so if you just <br>accept the defaults, it should build without error.<br><br>-Glenn<br><br><br><br><br><br>>  --- On Mon 07/25, Glenn Dawson < glenn at antimatter.net > wrote:<br>>From: Glenn Dawson [mailto: glenn at antimatter.net]<br>>To: piotrekk at excite.com, freebsd-questions at freebsd.org<br>>      Cc: keramida at ceid.upatras.gr<br>>Date: Mon, 25 Jul 2005 17:34:13 -0700<br>>Subject: Re: cannot install ntop under freeBSD 5.5<br>><br>>At 12:17 PM 7/25/2005, PK wrote:<br><br>>hi<br>><br>>I did what you <br>>suggested.<br>>I've deinstalled rrdtool completely, tried install ntop but <br>>now I get <br>>following horrible <br>>errors:<br>><br>><br>>xmldumpPlugin.c:36:2: warning: 
<br>>#warning<br>>xmldumpPlugin.c:37:2: warning: #warning <br>><br>>===========================================================<br>>xmldumpPlugin.c:38:2: <br>>warning: #warning<br>>xmldumpPlugin.c:39:2: warning: #warning The include <br>>of gdome.h that <br>>follows will generate a lot <br>>of<br>>xmldumpPlugin.c:40:2: warning: #warning compile warnings about <br>>'shadows a <br>>global declaration'.<br>>xmldumpPlugin.c:41:2: warning: <br>>#warning Unfortunately, it's the way this <br>>crud is coded and <br>>can't<br>>xmldumpPlugin.c:42:2: warning: #warning be fixed. Just ignore <br>>them!<br>>xmldumpPlugin.c:43:2: warning: <br>>#warning<br><br>>[snip]<br><br><br>>In file included from <br>>xmldumpPlugin.c:1730:<br>>xml_g_intf.inc: In function <br>>`dumpXML_interfaces':<br>>xml_g_intf.inc:33: warning: nested<br>>extern declaration of `BufferTooShort'<br>>gmake[3]: *** <br>>[xmldumpPlugin.lo] Error 1<br>>gmake[3]: Leaving directory 
<br>>`/usr/ports/net/ntop/work/ntop/plugins'<br>>gmake[2]: *** [all-recursive] <br>>Error 1<br>>gmake[2]: Leaving directory <br>>`/usr/ports/net/ntop/work/ntop/plugins'<br>>gmake[1]: *** [all-recursive] <br>>Error 1<br>>gmake[1]: Leaving directory <br>>`/usr/ports/net/ntop/work/ntop'<br>>gmake: *** [all] Error 2<br>>*** Error <br>>code 2<br>><br>>Stop in /usr/ports/net/ntop.<br>><br>><br>>It must be a <br>>BUG in the ntop port.<br><br>The problem is in the XML plugin.  If you <br>>don't need that, ntop will build <br>properly without the XML <br>>plugin.<br><br>-Glenn<br><br><br>>greetings<br>>piotr<br><br><br>><br>>_______________________________________________<br>>Join Excite! - http://www.excite.com<br>>The most personalized portal on the Web!<br><br>---<br><br>We've checked and double checked, it keeps coming up the same thing.<br>The message is "Mars needs women". <br><br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!




More information about the freebsd-questions mailing list