Title: Compiling cvs under FC5 - same issue revisited

Hola,
I have a quick question regarding the copied post: I have the exact same compile problem, but I can't quite figure out where to find and replace the libtool files. I have libtools installed seperately, and was able to find and copy ltmain.sh over to the Ntop install directory, but it is still compiling with the same errors.

Im running: ./autogen.sh --with-rrd-home=/usr/local/rrdtool-1.2.15/
And that seems fine, then I run make and get:
creating ntop
make[2]: Leaving directory `/root/snortinstall/ntop/ntop'
Making all in plugins
make[2]: Entering directory `/root/snortinstall/ntop/ntop/plugins'
Making all in .
make[3]: Entering directory `/root/snortinstall/ntop/ntop/plugins'
gcc: suppress: No such file or directory
gcc: unrecognized option '-bundle'
make[3]: *** [.libs/libicmpPlugin.so] Error 1
make[3]: Leaving directory `/root/snortinstall/ntop/ntop/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/snortinstall/ntop/ntop/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/snortinstall/ntop/ntop'
make: *** [all] Error 2
The only other errors im seeing is xmldump:
checking for xmldump... configure: WARNING: error
*******************************************************************
*
* WARNING: One or more items required for the xmldump plugin are
* missing:
*
* libxml2.so or libxml2.a...yes
* gdome.h...no
* libgdome.so or libgdome.a...no
* glib.h...no
* libglib.so or libglib.a...no
* glibconfig.h...no
*
* (yes means it was found, no means it was not found)
*
* ntop will run just fine without this plugin.
*
*>>> If you want to use the xmldump plugin,
*
*??? 1. Install the necessary headers and libraries.
*??? and rerun ./configure
*
But it says its not such a problem, so im not too concerned with that.
I've been searching for a couple days now, trying to figure this all out. Needless to say, linux isn't my forte but im working at it! Any help would be very appreciated.

Justin Allen

RE: [Ntop] Fedora core 5 compile problem
Burton Strauss
Sun, 30 Jul 2006 14:22:56 -0700

Delete it. You should already have libtool installed, right - so the one in
the CVS is just an 'in case' and it's dated. You'll need to look around -
there are a couple of pieces - ltmain.sh is one.

Also, try it without tcpwrappers.

If you check the back traffic, this is not an uncommon problem - it's a MAC
only option that SHOULD (but isn't always) ignored. It's been a while, but
IIRC libtool and gcc throw stuff away that they don't understand, but the
whole option line sort of looks like something that gcc now recognizes... I
don't have a VM up to check, but you will see the option in
plugins/Makefile.am and you can just rip them out.

-----Burton


(Please note that I am speaking only as an individual and not as a
representative of my employer)
-----Original Message-----
From: [EMAIL PROTECTED] [
mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Sunday, July 30, 2006 1:24 PM
To: [email protected]
Subject: [Ntop] Fedora core 5 compile problem


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

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to