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