i tried gdome.h to get work because i have this main problem in compilation :
***************
ldumpPlugin.lo -MD -MP -MF .deps/xmldumpPlugin.Tpo -c xmldumpPlugin.c -o
xmldumpPlugin.o
xmldumpPlugin.c:50:2: warning: #warning
xmldumpPlugin.c:51:2: warning: #warning
===========================================================
xmldumpPlugin.c:52:2: warning: #warning
xmldumpPlugin.c:53:2: warning: #warning Missing header files, disabling xmldump
plugin
xmldumpPlugin.c:54:2: warning: #warning
xmldumpPlugin.c:55:2: warning: #warning FOR MOST USERS THIS IS NOT A PROBLEM
xmldumpPlugin.c:56:2: warning: #warning ntop will build and run just fine...
xmldumpPlugin.c:57:2: warning: #warning
xmldumpPlugin.c:58:2: warning: #warning Why?
xmldumpPlugin.c:59:2: warning: #warning
xmldumpPlugin.c:61:2: warning: #warning glibconfig.h unavailable
xmldumpPlugin.c:64:2: warning: #warning glib.h unavailable
xmldumpPlugin.c:67:2: warning: #warning gdome.h unavailable
xmldumpPlugin.c:70:2: warning: #warning xmlversion.h unavailable
xmldumpPlugin.c:75:2: warning: #warning
xmldumpPlugin.c:76:2: warning: #warning
===========================================================
xmldumpPlugin.c:77:2: warning: #warning
echo timestamp > xmldumpPlugin.lo
/bin/sh ../libtool --mode=link i386-gentoo-linux-uclibc-gcc -g -Os -pipe
-I/usr/include/libxml2/libxml -I/usr/include/glib-1.2 -I/usr/include/libgdome
-g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fPIC -L/usr/local/lib -o libxmldumpPlugin.la -rpath
/usr/lib -shared -release 3.1 xmldumpPlugin.lo -lgdome -lxml2 -lglib
-lpthread -lresolv -lnsl -lc -lcrypt -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz
rm -fr .libs/libxmldumpPlugin.la .libs/libxmldumpPlugin.*
.libs/libxmldumpPlugin-3.1.*
ar cru .libs/libxmldumpPlugin.a xmldumpPlugin.o
i386-gentoo-linux-uclibc-ranlib .libs/libxmldumpPlugin.a
creating libxmldumpPlugin.la
(cd .libs && rm -f libxmldumpPlugin.la && ln -s ../libxmldumpPlugin.la
libxmldumpPlugin.la)
i386-gentoo-linux-uclibc-gcc -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so icmpPlugin.o
i386-gentoo-linux-uclibc-gcc: couldn't run
`/usr/i386-gentoo-linux-uclibc/gcc-bin/3.3.5-20050130/undle-gcc-3.3.5-20050130':
No such file or directory
make[3]: *** [.libs/libicmpPlugin.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1'
make: *** [all] Error 2
**************************
If i make symbolic link from undle-gcc-3.3.5-20050130 to
i386-gentoo-linux-uclibc-gcc it doesnt work ...
**************************
ldumpPlugin.lo -MD -MP -MF .deps/xmldumpPlugin.Tpo -c xmldumpPlugin.c -o
xmldumpPlugin.o
xmldumpPlugin.c:50:2: warning: #warning
xmldumpPlugin.c:51:2: warning: #warning
===========================================================
xmldumpPlugin.c:52:2: warning: #warning
xmldumpPlugin.c:53:2: warning: #warning Missing header files, disabling xmldump
plugin
xmldumpPlugin.c:54:2: warning: #warning
xmldumpPlugin.c:55:2: warning: #warning FOR MOST USERS THIS IS NOT A PROBLEM
xmldumpPlugin.c:56:2: warning: #warning ntop will build and run just fine...
xmldumpPlugin.c:57:2: warning: #warning
xmldumpPlugin.c:58:2: warning: #warning Why?
xmldumpPlugin.c:59:2: warning: #warning
xmldumpPlugin.c:61:2: warning: #warning glibconfig.h unavailable
xmldumpPlugin.c:64:2: warning: #warning glib.h unavailable
xmldumpPlugin.c:67:2: warning: #warning gdome.h unavailable
xmldumpPlugin.c:70:2: warning: #warning xmlversion.h unavailable
xmldumpPlugin.c:75:2: warning: #warning
xmldumpPlugin.c:76:2: warning: #warning
===========================================================
xmldumpPlugin.c:77:2: warning: #warning
echo timestamp > xmldumpPlugin.lo
/bin/sh ../libtool --mode=link i386-gentoo-linux-uclibc-gcc -g -Os -pipe
-I/usr/include/libxml2/libxml -I/usr/include/glib-1.2 -I/usr/include/libgdome
-g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fPIC -L/usr/local/lib -o libxmldumpPlugin.la -rpath
/usr/lib -shared -release 3.1 xmldumpPlugin.lo -lgdome -lxml2 -lglib
-lpthread -lresolv -lnsl -lc -lcrypt -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz
rm -fr .libs/libxmldumpPlugin.la .libs/libxmldumpPlugin.*
.libs/libxmldumpPlugin-3.1.*
ar cru .libs/libxmldumpPlugin.a xmldumpPlugin.o
i386-gentoo-linux-uclibc-ranlib .libs/libxmldumpPlugin.a
creating libxmldumpPlugin.la
(cd .libs && rm -f libxmldumpPlugin.la && ln -s ../libxmldumpPlugin.la
libxmldumpPlugin.la)
i386-gentoo-linux-uclibc-gcc -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so icmpPlugin.o
undle-gcc-3.3.5-20050130: suppress: No such file or directory
make[3]: *** [.libs/libicmpPlugin.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1'
make: *** [all] Error 2
*******************
so i made this little hack (didnt find bundle in gcc x86 specification, i
think, that ntop configure for running on darwin
var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/Makefile
.libs/libicmpPlugin.so:
$(CC) -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so icmpPlugin.o
replace with
.libs/libicmpPlugin.so:
$(CC) -flat_namespace -o .libs/libicmpPlugin.so icmpPlugin.o
than it looks like there are missing some libraries (for defination of
following functions. I thought that i can find them i gdome.h ..). But im verry
begginer in C.
ldumpPlugin.lo -MD -MP -MF .deps/xmldumpPlugin.Tpo -c xmldumpPlugin.c -o
xmldumpPlugin.o
xmldumpPlugin.c:50:2: warning: #warning
xmldumpPlugin.c:51:2: warning: #warning
===========================================================
xmldumpPlugin.c:52:2: warning: #warning
xmldumpPlugin.c:53:2: warning: #warning Missing header files, disabling xmldump
plugin
xmldumpPlugin.c:54:2: warning: #warning
xmldumpPlugin.c:55:2: warning: #warning FOR MOST USERS THIS IS NOT A PROBLEM
xmldumpPlugin.c:56:2: warning: #warning ntop will build and run just fine...
xmldumpPlugin.c:57:2: warning: #warning
xmldumpPlugin.c:58:2: warning: #warning Why?
xmldumpPlugin.c:59:2: warning: #warning
xmldumpPlugin.c:61:2: warning: #warning glibconfig.h unavailable
xmldumpPlugin.c:64:2: warning: #warning glib.h unavailable
xmldumpPlugin.c:67:2: warning: #warning gdome.h unavailable
xmldumpPlugin.c:70:2: warning: #warning xmlversion.h unavailable
xmldumpPlugin.c:75:2: warning: #warning
xmldumpPlugin.c:76:2: warning: #warning
===========================================================
xmldumpPlugin.c:77:2: warning: #warning
echo timestamp > xmldumpPlugin.lo
/bin/sh ../libtool --mode=link i386-gentoo-linux-uclibc-gcc -g -Os -pipe
-I/usr/include/libxml2/libxml -I/usr/include/glib-1.2 -I/usr/include/libgdome
-g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fPIC -L/usr/local/lib -o libxmldumpPlugin.la -rpath
/usr/lib -shared -release 3.1 xmldumpPlugin.lo -lgdome -lxml2 -lglib
-lpthread -lresolv -lnsl -lc -lcrypt -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz
rm -fr .libs/libxmldumpPlugin.la .libs/libxmldumpPlugin.*
.libs/libxmldumpPlugin-3.1.*
ar cru .libs/libxmldumpPlugin.a xmldumpPlugin.o
i386-gentoo-linux-uclibc-ranlib .libs/libxmldumpPlugin.a
creating libxmldumpPlugin.la
(cd .libs && rm -f libxmldumpPlugin.la && ln -s ../libxmldumpPlugin.la
libxmldumpPlugin.la)
i386-gentoo-linux-uclibc-gcc -flat_namespace -o .libs/libicmpPlugin.so
icmpPlugin.o
icmpPlugin.o(.text+0x17): In function `sortICMPhostsHost':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:89: undefined
reference to `cmpFctnResolvedName'
icmpPlugin.o(.text+0x55): In function `sortICMPhostsSent':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:101: undefined
reference to `traceEvent'
icmpPlugin.o(.text+0x79):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:104:
undefined reference to `traceEvent'
icmpPlugin.o(.text+0x97):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:107:
undefined reference to `traceEvent'
icmpPlugin.o(.text+0x116): In function `sortICMPhostsRcvd':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:124: undefined
reference to `traceEvent'
icmpPlugin.o(.text+0x13a):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:127:
undefined reference to `traceEvent'
icmpPlugin.o(.text+0x15b):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:130:
more undefined references to `traceEvent' follow
icmpPlugin.o(.text+0xcbc): In function `formatSentRcvd':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:481: undefined
reference to `formatPkts'
icmpPlugin.o(.text+0xcda):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:481:
undefined reference to `formatPkts'
icmpPlugin.o(.text+0xd01):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:481:
undefined reference to `safe_snprintf'
icmpPlugin.o(.text+0xd10):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:484:
undefined reference to `sendString'
icmpPlugin.o(.text+0xdc4): In function `printICMPdata':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:512: undefined
reference to `sendString'
icmpPlugin.o(.text+0xe03):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:513:
undefined reference to `safe_snprintf'
icmpPlugin.o(.text+0xe11):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:519:
undefined reference to `sendString'
icmpPlugin.o(.text+0xef6):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:521:
undefined reference to `safe_snprintf'
icmpPlugin.o(.text+0xf07):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:549:
undefined reference to `sendString'
icmpPlugin.o(.text+0xf81):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:563:
undefined reference to `makeHostLink'
icmpPlugin.o(.text+0xf8a):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:563:
undefined reference to `getRowColor'
icmpPlugin.o(.text+0xfb4):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:563:
undefined reference to `safe_snprintf'
icmpPlugin.o(.text+0xfbf):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:567:
undefined reference to `sendString'
icmpPlugin.o(.text+0xfea):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:569:
undefined reference to `formatBytes'
icmpPlugin.o(.text+0x1016):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:569:
undefined reference to `safe_snprintf'
icmpPlugin.o(.text+0x1021):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:571:
undefined reference to `sendString'
icmpPlugin.o(.text+0x1042):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:573:
undefined reference to `formatBytes'
icmpPlugin.o(.text+0x1067):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:573:
undefined reference to `safe_snprintf'
icmpPlugin.o(.text+0x1075):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:575:
undefined reference to `sendString'
icmpPlugin.o(.text+0x1292):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:612:
undefined reference to `sendString'
icmpPlugin.o(.text+0x129e):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:615:
undefined reference to `myGlobals'
icmpPlugin.o(.text+0x12d0):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:619:
undefined reference to `sendString'
icmpPlugin.o(.text+0x12f3): In function `handleIcmpWatchHTTPrequest':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:638: undefined
reference to `myGlobals'
icmpPlugin.o(.text+0x133e):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:639:
undefined reference to `ntop_safemalloc'
icmpPlugin.o(.text+0x1351):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:639:
undefined reference to `ntop_safemalloc'
icmpPlugin.o(.text+0x1394):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:643:
undefined reference to `ntop_safemalloc'
icmpPlugin.o(.text+0x13ce):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:647:
undefined reference to `ntop_safemalloc'
icmpPlugin.o(.text+0x140a):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:650:
undefined reference to `myGlobals'
icmpPlugin.o(.text+0x1433):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:653:
undefined reference to `myGlobals'
icmpPlugin.o(.text+0x145d):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:653:
undefined reference to `cmpSerial'
icmpPlugin.o(.text+0x14a8):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:649:
undefined reference to `myGlobals'
icmpPlugin.o(.text+0x1551):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:686:
undefined reference to `myGlobals'
icmpPlugin.o(.text+0x1670):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:715:
undefined reference to `sendHTTPHeader'
icmpPlugin.o(.text+0x167d):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:718:
undefined reference to `myGlobals'
icmpPlugin.o(.text+0x16aa):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:723:
undefined reference to `drawBar'
icmpPlugin.o(.text+0x170c):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:750:
undefined reference to `sendHTTPHeader'
icmpPlugin.o(.text+0x171c):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:751:
undefined reference to `printHTMLheader'
icmpPlugin.o(.text+0x172a):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:754:
undefined reference to `printNoDataYet'
icmpPlugin.o(.text+0x1752):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:759:
undefined reference to `printPluginTrailer'
icmpPlugin.o(.text+0x1757):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:764:
undefined reference to `printHTMLtrailer'
icmpPlugin.o(.text+0x1770):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:767:
undefined reference to `ntop_safefree'
icmpPlugin.o(.text+0x178e):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:769:
undefined reference to `ntop_safefree'
icmpPlugin.o(.text+0x17ac):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:771:
undefined reference to `ntop_safefree'
icmpPlugin.o(.text+0x17ca):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:773:
undefined reference to `ntop_safefree'
icmpPlugin.o(.text+0x1801): In function `termIcmpFunct':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:779: undefined
reference to `traceEvent'
icmpPlugin.o(.text+0x1822):/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:780:
undefined reference to `traceEvent'
icmpPlugin.o(.text+0x1864): In function `PluginEntryFctn':
/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins/icmpPlugin.c:791: undefined
reference to `traceEvent'
collect2: ld returned 1 exit status
make[3]: *** [.libs/libicmpPlugin.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ntop-3.1/work/ntop-3.1'
make: *** [all] Error
____________________________________________________________
http://www.seznam.cz - e-mailová schránka 2000 MB
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop