From owner-freebsd-questions@FreeBSD.ORG Mon Jul 25 18:33:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AAEB16A41F for ; Mon, 25 Jul 2005 18:33:14 +0000 (GMT) (envelope-from piotrekk@excite.com) Received: from excite.com (nn6.excitenetwork.com [207.159.120.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69C5A43D45 for ; Mon, 25 Jul 2005 18:33:13 +0000 (GMT) (envelope-from piotrekk@excite.com) Received: by xprdmailfe1.nwk.excite.com (Postfix, from userid 110) id 4E855109F58; Mon, 25 Jul 2005 14:33:12 -0400 (EDT) To: glenn@antimatter.net, piotrekk@excite.com, keramida@ceid.upatras.gr Received: from [84.73.114.198] by xprdmailfe1.nwk.excite.com via HTTP; Mon, 25 Jul 2005 14:33:12 EST X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: ID = 2383e4973664c80f7198bf469d15c13b From: "PK" MIME-Version: 1.0 X-Sender: piotrekk@excite.com X-Mailer: PHP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20050725183312.4E855109F58@xprdmailfe1.nwk.excite.com> Date: Mon, 25 Jul 2005 14:33:12 -0400 (EDT) X-Mailman-Approved-At: Tue, 26 Jul 2005 12:38:46 +0000 Cc: freebsd-questions@freebsd.org Subject: Re: cannot install ntop under freeBSD 5.5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: piotrekk@excite.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2005 18:33:14 -0000 hi I did what you suggested. I've deinstalled rrdtool completely, tried install ntop but now I get following horrible errors: xmldumpPlugin.c:36:2: warning: #warning xmldumpPlugin.c:37:2: warning: #warning =========================================================== xmldumpPlugin.c:38:2: warning: #warning xmldumpPlugin.c:39:2: warning: #warning The include of gdome.h that follows will generate a lot of xmldumpPlugin.c:40:2: warning: #warning compile warnings about 'shadows a global declaration'. xmldumpPlugin.c:41:2: warning: #warning Unfortunately, it's the way this crud is coded and can't xmldumpPlugin.c:42:2: warning: #warning be fixed. Just ignore them! xmldumpPlugin.c:43:2: warning: #warning In file included from /usr/local/include/glib-2.0/glib.h:69, from /usr/local/include/libgdome/gdome.h:27, from xmldumpPlugin.c:44: /usr/local/include/glib-2.0/glib/gthreadpool.h:88: warning: declaration of 'wait' shadows a global declaration /usr/include/sys/wait.h:103: warning: shadowed declaration is here In file included from xmldumpPlugin.c:44: /usr/local/include/libgdome/gdome.h:264: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:50: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:331: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:483: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:585: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:649: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:694: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:739: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:783: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:801: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:857: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:893: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:935: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:977: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:1013: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:1033: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:50: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:1044: warning: declaration of 'index' shadows a global declaration /usr/include/strings.h:50: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:1073: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here /usr/local/include/libgdome/gdome.h:1112: warning: declaration of 'version' shadows a global declaration ../globals-core.h:53: warning: shadowed declaration is here xmldumpPlugin.c:45:2: warning: #warning xmldumpPlugin.c:46:2: warning: #warning =========================================================== xmldumpPlugin.c:47:2: warning: #warning In file included from xmldumpPlugin.c:1165: xml_s_ntopinterface.inc: In function `newxml_ntopinterface': xml_s_ntopinterface.inc:494: warning: nested extern declaration of `BufferTooShort' xml_s_ntopinterface.inc:529: warning: nested extern declaration of `BufferTooShort' xml_s_ntopinterface.inc:565: warning: nested extern declaration of `BufferTooShort' In file included from xmldumpPlugin.c:1429: xml_s_simpleprototrafficinfo.inc: In function `newxml_simpleprototrafficinfo': xml_s_simpleprototrafficinfo.inc:46: error: structure has no member named `lastLocal' xml_s_simpleprototrafficinfo.inc:46: error: structure has no member named `lastLocal' xml_s_simpleprototrafficinfo.inc:52: error: structure has no member named `lastLocal2remote' xml_s_simpleprototrafficinfo.inc:52: error: structure has no member named `lastLocal2remote' xml_s_simpleprototrafficinfo.inc:58: error: structure has no member named `lastRem' xml_s_simpleprototrafficinfo.inc:58: error: structure has no member named `lastRem' xml_s_simpleprototrafficinfo.inc:64: error: structure has no member named `lastRem2local' xml_s_simpleprototrafficinfo.inc:64: error: structure has no member named `lastRem2local' In file included from xmldumpPlugin.c:1693: xml_g_invoke.inc: In function `dumpXML_invoke': xml_g_invoke.inc:71: warning: nested extern declaration of `BufferTooShort' xml_g_invoke.inc:79: error: structure has no member named `accessLogFile' xml_g_invoke.inc:85: error: structure has no member named `enablePacketDecoding' xml_g_invoke.inc:91: error: structure has no member named `stickyHosts' xml_g_invoke.inc:97: error: structure has no member named `daemonMode' xml_g_invoke.inc:103: error: structure has no member named `maxNumLines' xml_g_invoke.inc:110: error: structure has no member named `rFileName' xml_g_invoke.inc:116: error: structure has no member named `trackOnlyLocalHosts' xml_g_invoke.inc:122: error: structure has no member named `devices' xml_g_invoke.inc:128: error: structure has no member named `enableOtherPacketDump' xml_g_invoke.inc:134: error: structure has no member named `filterExpressionInExtraFrame' xml_g_invoke.inc:140: error: structure has no member named `pcapLog' xml_g_invoke.inc:146: error: structure has no member named `localAddresses' xml_g_invoke.inc:152: error: structure has no member named `numericFlag' xml_g_invoke.inc:158: error: structure has no member named `dontTrustMACaddr' xml_g_invoke.inc:164: error: structure has no member named `protoSpecs' xml_g_invoke.inc:170: error: structure has no member named `enableSuspiciousPacketDump' xml_g_invoke.inc:176: error: structure has no member named `refreshRate' xml_g_invoke.inc:183: error: structure has no member named `disablePromiscuousMode' xml_g_invoke.inc:189: error: structure has no member named `traceLevel' xml_g_invoke.inc:196: error: structure has no member named `maxNumHashEntries' xml_g_invoke.inc:203: error: structure has no member named `maxNumSessions' xml_g_invoke.inc:217: warning: nested extern declaration of `BufferTooShort' xml_g_invoke.inc:227: error: structure has no member named `defaultVsan' xml_g_invoke.inc:234: error: structure has no member named `webAddr' xml_g_invoke.inc:240: error: structure has no member named `webPort' xml_g_invoke.inc:247: error: structure has no member named `enableSessionHandling' xml_g_invoke.inc:253: error: structure has no member named `currentFilterExpression' xml_g_invoke.inc:259: error: structure has no member named `domainName' xml_g_invoke.inc:265: error: structure has no member named `flowSpecs' xml_g_invoke.inc:273: error: structure has no member named `debugMode' xml_g_invoke.inc:279: error: structure has no member named `useSyslog' xml_g_invoke.inc:288: error: structure has no member named `mergeInterfaces' xml_g_invoke.inc:294: error: structure has no member named `pcapLogBasePath' xml_g_invoke.inc:300: error: structure has no member named `fcNSCacheFile' xml_g_invoke.inc:318: error: structure has no member named `printFcOnly' xml_g_invoke.inc:324: error: structure has no member named `mapperURL' xml_g_invoke.inc:332: error: structure has no member named `sslAddr' xml_g_invoke.inc:338: error: structure has no member named `sslPort' xml_g_invoke.inc:349: error: structure has no member named `useSSLwatchdog' xml_g_invoke.inc:359: error: structure has no member named `disableSchedYield' xml_g_invoke.inc:367: error: structure has no member named `P3Pcp' xml_g_invoke.inc:373: error: structure has no member named `P3Puri' xml_g_invoke.inc:379: error: structure has no member named `disableStopcap' xml_g_invoke.inc:385: error: structure has no member named `disableInstantSessionPurge' xml_g_invoke.inc:391: error: structure has no member named `noFc' xml_g_invoke.inc:397: error: structure has no member named `noInvalidLunDisplay' xml_g_invoke.inc:403: error: structure has no member named `disableMutexExtraInfo' xml_g_invoke.inc:409: error: structure has no member named `skipVersionCheck' In file included from xmldumpPlugin.c:1730: xml_g_intf.inc: In function `dumpXML_interfaces': xml_g_intf.inc:33: warning: nested extern declaration of `BufferTooShort' gmake[3]: *** [xmldumpPlugin.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. It must be a BUG in the ntop port. greetings piotr --- On Mon 07/25, Glenn Dawson < glenn@antimatter.net > wrote: From: Glenn Dawson [mailto: glenn@antimatter.net] To: piotrekk@excite.com, keramida@ceid.upatras.gr, piotrekk@excite.com Cc: freebsd-questions@freebsd.org Date: Mon, 25 Jul 2005 05:54:26 -0700 Subject: Re: cannot install ntop under freeBSD 5.5 At 05:03 AM 7/25/2005, PK wrote:

>hi
>
>It must be a BUG in the freeBSD 5.4 ntop port !
>
>greetings
>Piotr

The problem you are seeing is because the rrd plugin that's part of ntop is
supplying 5 argument to the rrd_graph() function. Which is ok for the
versions of rrd that are bundled with ntop.

However, if you have the rrdtools port installed, it's version of
rrd_graph() is expecting 8 arguments. The error you are getting is because
the prototype for rrd_graph() that comes with rrdtools does not match how
ntop is calling it.

To get around the problem, you can remove the rrdtool port, and then ntop
should build without errors. If you're using rrdtool you can probably
reinstall it once ntop is built. That may cause a problem if rrdtool
installs any shared libraries that ntop uses.

-Glenn





> --- On Mon 07/25, Giorgos Keramidas < keramida@ceid.upatras.gr > wrote:
>From: Giorgos Keramidas [mailto: keramida@ceid.upatras.gr]
>To: piotrekk@excite.com
> Cc: freebsd-questions@freebsd.org
>Date: Mon, 25 Jul 2005 13:20:05 +0300
>Subject: Re: cannot install ntop under freeBSD 5.5
>
>On 2005-07-24 20:14, PK wrote:
>
>
>hi
>
> I have exact the same problem and get the same
>errors.
>
> to clean a port, reinstall or upgrade ntop or rrdtool
>doesn't help.

Strange. I did build ntop on 6.0-CURRENT a few days
>before the switch
to 7.0-CURRENT was made. I haven't tried to build
>ntop on 5.X though,
so this may be the problem.


>
>_______________________________________________
>Join Excite! - http://www.excite.com
>The most personalized portal on the Web!
>
>
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

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