Basically, it's a automake 1.5 bug, related to dependency tracking.
Although one of the fixes to automake 1.5 talks about problems with _SOURCE
entries with more than one .h file, it also seems that this bug (or another
one like it) impacts ntop.
ntop requires automake 1.6+ - that dependency is EXPLICT in the Makefile.am!
Since we distribute ntop with scripts generated from 1.6.3, you would
*think* they should work, regardless of what version of automake is
installed.
That's not the case. The problem occurs because automake gets invoked by
./configure to copy the missing gnu files such as depcomp. If you have 1.5
installed, it then remakes the plugins/Makefile as a 1.5 version, which
fails.
I will add a test to the ntop ./configure but that's not going to make
things "better" for people without automake 1.6+. Rather it would stop the
process and tell you to install 1.6.3. The fix goes in configure.in
specifically in here:
AC_CHECK_FILE(depcomp, ,
echo ""
echo "Invoking automake to copy depcomp..."
automake --gnu --copy --add-missing
echo ""
)
Why is it mostly happening under FreeBSD?
Because the FreeBSD ports tree only has 1.5, but that's a FreeBSD ports
problem, not ntop's. If you search the FreeBSD lists on Google, there's
lots of traffic about a 1.6 version for FreeBSD, but it doesn't seem to be
in the tree. What's there is:
./devel/automake
-- which is 1.5
./devel/automake14
./devel/automake17
-- which does NOT work
Suggestion - install 1.6.3. It's quite easy, does NOT require root, etc.:
Download automake 1.6.3 from gnu
$ wget http://ftp.gnu.org/gnu/automake/automake-1.6.3.tar.gz
Untar it
$ tar xfvz automake-1.6.3.tar.gz
Make it
$ cd automake-1.6.3
$ ./configure --prefix=/home/<whatever>/automake163
$ make
$ make install
Add it to your path (this is bash, but other shells, can do it too)
$ PATH=/home/<whatever>automake163/bin:$PATH
$ export PATH
And then untar, ./configure and make ntop.
-----Burton
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev