When trying to compile with -DDEBUG, I get these messages in xmldumpPlugin:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/mysql -DLINUX
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgdome
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/local/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -DDEBUG -I/usr/local/include -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-fPIC -DPIC -MT libxmldumpPlugin_la-xmldumpPlugin.lo -MD -MP -MF
.deps/libxmldumpPlugin_la-xmldumpPlugin.Tpo -c xmldumpPlugin.c -fPIC -DPIC
-o .libs/libxmldumpPlugin_la-xmldumpPlugin.o
xmldumpPlugin.c:123: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:124: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:125: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:155: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:159: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:160: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:161: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:162: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:163: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c: In function 'initXmldump':
xmldumpPlugin.c:572: error: 'initialized' undeclared (first use in this
function)
xmldumpPlugin.c:572: error: (Each undeclared identifier is reported only
once
xmldumpPlugin.c:572: error: for each function it appears in.)
xmldumpPlugin.c: At top level:
xmldumpPlugin.c:898: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
xmldumpPlugin.c:1165: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1173: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1197:
xml_s_simple_forward.inc:12: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:17: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:22: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:27: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:32: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:37: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:42: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:47: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:52: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:57: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:62: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:67: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:72: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:77: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:82: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xml_s_simple_forward.inc:87: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1302: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1351: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:12: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:34: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:56: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:78: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:100: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:122: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:144: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:166: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:188: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:210: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:232: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:254: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:276: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:298: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:320: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from xmldumpPlugin.c:1453:
xml_s_simple.inc:342: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1459: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1496: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1538: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1551: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1564: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1579: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c:1592: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
xmldumpPlugin.c: In function 'dumpXML_writeout':
xmldumpPlugin.c:1612: error: 'GdomeDocumentType' undeclared (first use in
this function)
xmldumpPlugin.c:1612: error: 'dt' undeclared (first use in this function)
xmldumpPlugin.c:1613: error: 'GdomeException' undeclared (first use in this
function)
xmldumpPlugin.c:1613: error: expected ';' before 'exc'
xmldumpPlugin.c:1614: error: 'GdomeDOMString' undeclared (first use in this
function)
xmldumpPlugin.c:1614: error: 'name' undeclared (first use in this function)
xmldumpPlugin.c:1614: error: 'systemId' undeclared (first use in this
function)
xmldumpPlugin.c:1614: warning: left-hand operand of comma expression has no
effect
xmldumpPlugin.c:1628: warning: implicit declaration of function 'xmlDebug'
xmldumpPlugin.c:1628: warning: nested extern declaration of 'xmlDebug'
xmldumpPlugin.c:1653: warning: implicit declaration of function
'gdome_di_saveDocToFile'
xmldumpPlugin.c:1653: warning: nested extern declaration of
'gdome_di_saveDocToFile'
xmldumpPlugin.c:1653: error: 'domimpl' undeclared (first use in this
function)
xmldumpPlugin.c:1653: error: 'doc' undeclared (first use in this function)
xmldumpPlugin.c:1653: error: 'GDOME_SAVE_LIBXML_INDENT' undeclared (first
use in this function)
xmldumpPlugin.c:1653: error: 'exc' undeclared (first use in this function)
xmldumpPlugin.c:1656: warning: implicit declaration of function
'traceEvent_forked'
xmldumpPlugin.c:1656: warning: nested extern declaration of
'traceEvent_forked'
xmldumpPlugin.c: In function 'xml_sighandler':
xmldumpPlugin.c:1759: error: 'inTraceEventForked' undeclared (first use in
this function)
xmldumpPlugin.c: In function 'dumpXML':
xmldumpPlugin.c:1870: error: 'GdomeDocumentType' undeclared (first use in
this function)
xmldumpPlugin.c:1870: error: 'dt' undeclared (first use in this function)
xmldumpPlugin.c:1871: error: 'GdomeElement' undeclared (first use in this
function)
xmldumpPlugin.c:1871: error: 'el' undeclared (first use in this function)
xmldumpPlugin.c:1872: error: 'GdomeException' undeclared (first use in this
function)
xmldumpPlugin.c:1872: error: expected ';' before 'exc'
xmldumpPlugin.c:1873: error: 'GdomeNode' undeclared (first use in this
function)
xmldumpPlugin.c:1873: error: 'result' undeclared (first use in this
function)
xmldumpPlugin.c:1874: error: 'GdomeDOMString' undeclared (first use in this
function)
xmldumpPlugin.c:1874: error: 'name' undeclared (first use in this function)
xmldumpPlugin.c:1874: error: 'value' undeclared (first use in this function)
xmldumpPlugin.c:1874: warning: left-hand operand of comma expression has no
effect
xmldumpPlugin.c:1875: error: 'qualifiedName' undeclared (first use in this
function)
xmldumpPlugin.c:1876: error: 'namespaceURI' undeclared (first use in this
function)
xmldumpPlugin.c:1877: error: 'publicId' undeclared (first use in this
function)
xmldumpPlugin.c:1878: error: 'systemId' undeclared (first use in this
function)
xmldumpPlugin.c:2099: error: 'domimpl' undeclared (first use in this
function)
xmldumpPlugin.c:2099: warning: implicit declaration of function
'gdome_di_mkref'
xmldumpPlugin.c:2099: warning: nested extern declaration of 'gdome_di_mkref'
xmldumpPlugin.c:2101: warning: implicit declaration of function
'gdome_str_mkref'
xmldumpPlugin.c:2101: warning: nested extern declaration of
'gdome_str_mkref'
xmldumpPlugin.c:2104: error: 'doc' undeclared (first use in this function)
xmldumpPlugin.c:2104: warning: implicit declaration of function
'gdome_di_createDocument'
xmldumpPlugin.c:2104: warning: nested extern declaration of
'gdome_di_createDocument'
xmldumpPlugin.c:2104: error: 'exc' undeclared (first use in this function)
xmldumpPlugin.c:2106: warning: implicit declaration of function
'gdome_str_unref'
xmldumpPlugin.c:2106: warning: nested extern declaration of
'gdome_str_unref'
xmldumpPlugin.c:2110: warning: implicit declaration of function
'gdome_di_unref'
xmldumpPlugin.c:2110: warning: nested extern declaration of 'gdome_di_unref'
xmldumpPlugin.c:2116: warning: implicit declaration of function
'gdome_di_createDocumentType'
xmldumpPlugin.c:2116: warning: nested extern declaration of
'gdome_di_createDocumentType'
xmldumpPlugin.c:2128: error: 'root' undeclared (first use in this function)
xmldumpPlugin.c:2128: warning: implicit declaration of function
'gdome_doc_documentElement'
xmldumpPlugin.c:2128: warning: nested extern declaration of
'gdome_doc_documentElement'
xmldumpPlugin.c:2150: warning: implicit declaration of function
'dumpXML_createHeader'
xmldumpPlugin.c:2150: warning: nested extern declaration of
'dumpXML_createHeader'
xmldumpPlugin.c:2159: warning: implicit declaration of function
'dumpXML_configuration'
xmldumpPlugin.c:2159: warning: nested extern declaration of
'dumpXML_configuration'
xmldumpPlugin.c:2168: warning: implicit declaration of function
'dumpXML_statistics'
xmldumpPlugin.c:2168: warning: nested extern declaration of
'dumpXML_statistics'
xmldumpPlugin.c:2177: warning: implicit declaration of function
'dumpXML_internals'
xmldumpPlugin.c:2177: warning: nested extern declaration of
'dumpXML_internals'
xmldumpPlugin.c:2185: warning: implicit declaration of function
'dumpXML_hosts'
xmldumpPlugin.c:2185: warning: nested extern declaration of 'dumpXML_hosts'
xmldumpPlugin.c:2194: warning: implicit declaration of function
'dumpXML_interfaces'
xmldumpPlugin.c:2194: warning: nested extern declaration of
'dumpXML_interfaces'
xmldumpPlugin.c:2219: warning: implicit declaration of function
'gdome_di_freeDoc'
xmldumpPlugin.c:2219: warning: nested extern declaration of
'gdome_di_freeDoc'
make[3]: *** [libxmldumpPlugin_la-xmldumpPlugin.lo] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/ntop/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/ntop/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/ntop'
make: *** [all] Error 2
_________________________________________________________________
Download Messenger. Join the im Initiative. Help make a difference today.
http://im.live.com/messenger/im/home/?source=TAGHM_APR07
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev