Greetings, First, I would like to express my appreciation to all the developers of NTOP. It is a really great analysis tool. Thank you for your efforts.
Briefly, my problem is that latest CVS version will not compile properly under Fedora Core 5. FC5 is fully patched. Here are the steps I have taken: 1) Download latest version of NTOP via CVS 2) ./autogen.sh 3) ./configure --with-tcpwrap 4) make The compile runs successfully until the end then generates a compile error (gcc: suppress: No such file or directory). I have included the compile tail end below. As a side note, I have been compiling ntop from sources for a number of years and never had a problem. The latest version v3.2 does compile and install cleanly on my systems. I spent quite a few days experimenting and doing searches on the Internet. Finally, I found a work around. You copy the following three files from 3.2 version (libtool, libtool.m4.in, ltmain.sh) and replace the same files in the CVS version. Then ntop comiles cleanly and installs correctly. How I came up with this workaround were via the following observations... When the plugins compiled, they libraries were all there but were missing the file extension ".so". I looked at the related ".la" files such as libicmpPlugin.la and all the referenced libraries were missing ".so". Question: Does anybody know how to fix the libtool in the CVS version so that I can compile directly with the downloaded CVS version? if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -lwrap -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/local/rrdtool/include -DLINUX -I/usr/include/glib-1.2 -I/usr/include/libgdome -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -MT libxmldumpPlugin_la-xmldumpPlugin.lo -MD -MP -MF ".deps/libxmldumpPlugin_la-xmldumpPlugin.Tpo" -c -o libxmldumpPlugin_la-xmldumpPlugin.lo `test -f 'xmldumpPlugin.c' || echo './'`xmldumpPlugin.c; \ then mv -f ".deps/libxmldumpPlugin_la-xmldumpPlugin.Tpo" ".deps/libxmldumpPlugin_la-xmldumpPlugin.Plo"; else rm -f ".deps/libxmldumpPlugin_la-xmldumpPlugin.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -lwrap -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/local/rrdtool/include -DLINUX -I/usr/include/glib-1.2 -I/usr/include/libgdome -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -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: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 xmldumpPlugin.c:45:2: warning: #warning xmldumpPlugin.c:46:2: warning: #warning =========================================================== xmldumpPlugin.c:47:2: warning: #warning gcc: -lwrap: linker input file unused because linking not done gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -lwrap -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/local/rrdtool/include -DLINUX -I/usr/include/glib-1.2 -I/usr/include/libgdome -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -MT libxmldumpPlugin_la-xmldumpPlugin.lo -MD -MP -MF .deps/libxmldumpPlugin_la-xmldumpPlugin.Tpo -c xmldumpPlugin.c -o libxmldumpPlugin_la-xmldumpPlugin.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -lglib -L/usr/local/lib -L/usr/lib/mysql -L/usr/local/mysql/lib -o libxmldumpPlugin.la -rpath /usr/local/lib -shared -release 3.2.3 libxmldumpPlugin_la-xmldumpPlugin.lo -lgdome -lxml2 -lglib -lpthread -lc -lresolv -lpcap -lgdbm -lgd -lpng -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -lwrap libtool: link: warning: `/usr/lib/libjpeg.la' seems to be moved gcc -shared .libs/libxmldumpPlugin_la-xmldumpPlugin.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib/mysql -L/usr/local/mysql/lib /usr/lib/libgdome.so -L/usr/lib /usr/lib/libxml2.so /usr/lib/libglib.so -lpthread -lc -lresolv -lpcap /usr/lib/libgdbm.so /usr/local/lib/libgd.so -L/usr/X11R6/lib -lpng -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lwrap -lc -Wl,-soname -Wl,libxmldumpPlugin-3.2.3 -o .libs/libxmldumpPlugin-3.2.3 (cd .libs && rm -f libxmldumpPlugin && ln -s libxmldumpPlugin-3.2.3 libxmldumpPlugin) ar cru .libs/libxmldumpPlugin.a libxmldumpPlugin_la-xmldumpPlugin.o ranlib .libs/libxmldumpPlugin.a creating libxmldumpPlugin.la (cd .libs && rm -f libxmldumpPlugin.la && ln -s ../libxmldumpPlugin.la libxmldumpPlugin.la) gcc: suppress: No such file or directory gcc: unrecognized option '-bundle' make[3]: *** [.libs/libicmpPlugin.so] Error 1 make[3]: Leaving directory `/usr/src/redhat/BUILD/ntop-cvs/ntop/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/ntop-cvs/ntop/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/ntop-cvs/ntop' make: *** [all] Error 2 Thanks, Paul Paul Woroshow Expert Systems Resources inc.; web http://www.expsys.com 56 Shorting Road, Toronto, Ontario, M1S 3S3, Canada phone (416) 299-7017 x222; fax (416) 291-2059 _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
