Now with attachment:
-----Original Message-----
From: Jac Engel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 6:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Compilation problem with autoconf (m4_popdef:
undefined macro: AC_Dest)
Mike,
I just installed a fresh install of Suse 8.0.
I build ntop the way see the attachment.
The funny is that I need to do a "make install" after make of
libpng.1.2.1 ( otherwise error libpng.so.3 not found when runing ntop,
this I needed to do also on Solaris Intel 8 and Solaris Sparc 8 build...
Luca!!)
Also I tried running autogen.sh -1 , which gave me the same
problems you have. I got ntop properly build after tar'ed again the
snapshot file and build it exactly as described in the attached file.
rgds
Jac
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike
Klinkert
Sent: Thursday, May 09, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] Compilation problem with autoconf (m4_popdef: undefined
macro: AC_Dest)
Hi all,
I'm having trouble of compiling recent snapshots. I assumed it was due
to the upgrade of my workstation from SuSE 7.3 to SuSE 8.0, but it turns
out that's not the case. SuSE 8.0 uses automake-1.5 whereas SuSE 7.3
uses automake-1.4p5 by default. Building ntop with automake-1.5 gives me
problems with "depcomp" (I know the solution), but also with the
"DIST_COMMON" problem (mentioned in another message). So I decided to
downgrade automake to automake-1.4p5 (I also tried automake-1.6, to no
affect).
Here's the problem. Running "./configure --prefix=/usr --sysconfdir=/etc
--localstatedir=/var/lib --mandir=/usr/share/man" works fine (see
attached output). The troubles begin when "make" is run (or more precise
"autoconf" from the Makefile):
# make
cd . && aclocal
cd . && automake --gnu Makefile
cd . && autoconf
configure.in:1146: error: m4_popdef: undefined macro: AC_Dest
acgeneral.m4:3404: AC_CONFIG_FILES is expanded from...
configure.in:1146: the top level
make: *** [configure] Error 1
#
Because of problems with the different automakes, I decided to run
"autogen.sh -1", but that also fails:
# ./autogen.sh -1
Generating configuration files for ntop, please wait....
You should update your `aclocal.m4' by running aclocal.
1. acinclude.m4 .... done
2. aclocal.m4 ...... done
configure.in:1146: error: m4_popdef: undefined macro: AC_Dest
acgeneral.m4:3404: AC_CONFIG_FILES is expanded from...
configure.in:1146: the top level
autoconf: tracing failed
3. config.h.in ..... done
4. Makefile.in ..... done
configure.in:1146: error: m4_popdef: undefined macro: AC_Dest
acgeneral.m4:3404: AC_CONFIG_FILES is expanded from...
configure.in:1146: the top level
5. configure ....... done
#
First I thought that it had something to do with the upgrade of SuSE,
but when I try to build a recent snapshot on a machine with SuSE 7.3
installed, it *also* fails with precisely the same error. On that
machine (the 7.3) the compilation of the 03Apr2002 snapshot does *not*
have this problem. BTW, autoconf is identical on both SuSE 7.3 and SuSE
8.0 (version as well as the individual files, I checked both).
Does anyone know what's wrong?
BTW: why does the Makefile needs to run aclocal, automake, autoconf, et
al. anyway? Isn't that the job of autogen.sh? It seems a bit silly that
the generated (by configure) Makefile generates configure, or am I
missing something here?
--
Mike.
Quick Instructions
==================
1. Get mandatory packages/tools
- gdbm was available on SUSE8 version 1.8.0-546
- libpcap installed libpcap-0.6.2 ( configure, make, make install)
Remark: Suse 8 has gcc 2.95.30-216
1a In ntop-current/ntop dir make link : ln -s /usr/share/automake/depcomp depcomp
2. Build chart libraries
- cd gdchart0.94c/
- ./configure
- cd gd-1.8.3/libpng-1.2.1
- cp scripts/makefile.linux Makefile
- make
- make install
- cd ../../zlib-1.1.4/
- ./configure
- make
- cd ..
- make
3. Build ntop
- cd ntop
- ./configure
- make
- make install ( copies ntop in /usr/local/bin and libs in /usr/local/lib etc.)
(note :if you run ntop from where you compiled it , you might not seen domain
flags)
4. Run ntop
- ntop -P [directory where ntop will store temporary files] -E -u nobody
Note: if you start ntop as user nobody then Local Usage will not work , either
start up as root . ( if run as nobody ntop should start lsof -u root )
---------------------------------------
Luca Deri <[EMAIL PROTECTED]> - January 2002