Problem installing ntop from ports

Hello.

I'm trying to install ntop form ports and there seems to be some kind of problem I can't figure out how to solve.

/usr/ports/net/ntop]# make install clean
===> ntop-3.3.8 depends on package: rrdtool>=1.2 - found
===> ntop-3.3.8 depends on executable: gmake - found
===> ntop-3.3.8 depends on file: /usr/local/bin/automake-1.9 - found
===> ntop-3.3.8 depends on file: /usr/local/bin/autoconf-2.62 - found
===> ntop-3.3.8 depends on file: /usr/local/bin/libtool - found
===> ntop-3.3.8 depends on executable: pkg-config - found
===> ntop-3.3.8 depends on shared library: gd.4 - found
===> ntop-3.3.8 depends on shared library: gdbm.3 - found
===> ntop-3.3.8 depends on shared library: png.5 - found
===> ntop-3.3.8 depends on shared library: xml2.5 - found
===> Configuring for ntop-3.3.8

Starting ntop automatic configuration system v.0.2.3

Please be patient, there is a lot to do...

1. Testing gnu tools....
libtool ..... 1.5.26
.... ok
automake .... 1.9.6
.... ok
autoconf .... 2.62
.... ok

2. Preparing for libtool ....
Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
You should update your `aclocal.m4' by running aclocal.
.... done

3. Create acinclude.m4, local definitions for automake ...
.... done

4. Running aclocal to create aclocal.m4 ...
/usr/local/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/local/share/aclocal/xmms.m4:62: warning: underquoted definition of AM_PATH_XMMS
/usr/local/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC
/usr/local/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/local/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/local/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/local/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/local/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
/usr/local/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
/usr/local/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB
/usr/local/bin/gm4:configure.in:104: Warning: end of file treated as newline
autom4te-2.62: /usr/local/bin/gm4 failed with exit status: 1
aclocal-1.9: /usr/local/bin/autom4te-2.62 failed with exit status: 1
.... done

5. Running autoheader to create config.h.in ...
FATAL ERROR: Autoconf version 2.52 or higher is required for this script
.... done

6. Running automake to create Makefile.in ...
aclocal.m4:16: warning: this file was generated for autoconf 2.61.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.
/usr/local/bin/gm4:configure.in:104: Warning: end of file treated as newline
autom4te-2.62: /usr/local/bin/gm4 failed with exit status: 1
automake-1.9: /usr/local/bin/autoconf failed with exit status: 1
.... done

7. Running autoconf to create configure ...
aclocal.m4:16: warning: this file was generated for autoconf 2.61.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.
/usr/local/bin/gm4:configure.in:104: Warning: end of file treated as newline
autom4te-2.62: /usr/local/bin/gm4 failed with exit status: 1
.... done

8. Skipping ./configure
Run ./configure and then make to compile ntop

aclocal.m4:16: warning: this file was generated for autoconf 2.61.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.
/usr/local/bin/gm4:configure.in:104: Warning: end of file treated as newline
autom4te-2.62: /usr/local/bin/gm4 failed with exit status: 1
*** Error code 1

Stop in /usr/ports/net/ntop.
*** Error code 1

Stop in /usr/ports/net/ntop.

autoconf -V
autoconf (GNU Autoconf) 2.62

I also tried deinstalling 2.62 and installing 2.61, didn't work either, but there was something wierd. It still said that it is generated for 2.61 and that I have another version, although that isn't the situation.

Is there a solution to this problem and if it isn't a problem that you write a straight forward one with a little explanation.

Thank You in advance.

With regards,
hmp
 
to the OP:

I dont know, but I'd
make run-depends-list;
make build-depends-list
in /devel/autoconf262/
and rebuild the five or so ports (deinstall
and install anew). If I suspected
that was the problem.
you can guess the oldest by
ls -lac /var/db/pkg/m4- (etc) for
each of them and see their least recent file
creation or modification times.
 
I did it both and it worked. Think I might have forgoten to make clean that one time I changed the version.

All nice and fine, it configures fine, but wait... There is an error in the making process ( or should I say "many errors"? ).


gmake[1]: Entering directory `/usr/ports/net/ntop/work/ntop-3.3.8'
Making all in .
gmake[2]: Entering directory `/usr/ports/net/ntop/work/ntop-3.3.8'
if /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr -I/usr/local/include -I/usr/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/local/lib/perl5/5.8.8/mach/CORE -DFREEBSD -I/usr/local/include -I/opt/local/include -I/usr/local/include -I/usr/include -g -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -MT address.lo -MD -MP -MF ".deps/address.Tpo" -c -o address.lo address.c; \
then mv -f ".deps/address.Tpo" ".deps/address.Plo"; else rm -f ".deps/address.Tpo"; exit 1; fi
cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr -I/usr/local/include -I/usr/include -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.8/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/local/lib/perl5/5.8.8/mach/CORE -DFREEBSD -I/usr/local/include -I/opt/local/include -I/usr/local/include -I/usr/include -g -O2 -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -MT address.lo -MD -MP -MF .deps/address.Tpo -c address.c -fPIC -DPIC -o .libs/address.o
In file included from ntop.h:490,
from address.c:21:
globals-structtypes.h:74:2: error: #error "Sorry, I'm unable to define u_int64_t on your platform"
In file included from ntop.h:490,
from address.c:21:
globals-structtypes.h:100: error: conflicting types for 'int8_t'
/usr/include/sys/types.h:64: error: previous declaration of 'int8_t' was here
In file included from ntop.h:498,
from address.c:21:
globals-core.h:366: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'handleDiedChild'
globals-core.h:379: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cleanup'
globals-core.h:604: error: conflicting types for 'strcasestr'
/usr/include/string.h:71: error: previous declaration of 'strcasestr' was here
address.c: In function '_ns_get16':
address.c:1033: error: 'NS_INT16SZ' undeclared (first use in this function)
address.c:1033: error: (Each undeclared identifier is reported only once
address.c:1033: error: for each function it appears in.)
address.c: In function '_ns_name_ntop':
address.c:1075: error: 'NS_CMPRSFLGS' undeclared (first use in this function)
address.c: In function '_ns_name_unpack':
address.c:1187: error: 'NS_CMPRSFLGS' undeclared (first use in this function)
address.c: In function '_ns_name_uncompress':
address.c:1241: error: 'NS_MAXCDNAME' undeclared (first use in this function)
address.c: In function '_ns_name_skip':
address.c:1260: error: 'NS_CMPRSFLGS' undeclared (first use in this function)
gmake[2]: *** [address.lo] Error 1
gmake[2]: Leaving directory `/usr/ports/net/ntop/work/ntop-3.3.8'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/net/ntop/work/ntop-3.3.8'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/net/ntop.
*** Error code 1

Stop in /usr/ports/net/ntop.

While configuring he clearly finds it: checking for typedef u_int64_t... yes

I tried to manually add it to /usr/local/include/stdint.h and it exists in /usr/include/sys/types.h but nothing changes. Seems this program doesn't like me.

P.S. I just saw i posted it in the wrong section so can the mod/admin please move it to the right one.

Thank You.

With regards,
hmp
 
if you install /portsopt/ then
run that in /ntop/, it may show you
configurations you can change that might
fix the build
 
Back
Top