In the version I have (I keep the 2.0 released as a reference), EMSGNUM is:
ntop.h: 526 #ifndef EMSGSIZE
ntop.h: 527 #define EMSGSIZE 97 /* Inappropriate message
buffer length */
ntop.h: 528 #endif /* EMSGSIZE */
That's in turn wrapped in an ifdef on PACKETSZ:
ntop.h: 457 #ifndef PACKETSZ /* Missing declarations */
...
ntop.h: 462 #define PACKETSZ 512 /* maximum
packet size */
...
ntop.h: 548 #endif /* PACKETSZ */
PACKETSZ is defined in an include file:
ntop.h: 277 #include <arpa/nameser.h>
Which in turn is depended upon this flag, set by configure:
ntop.h: 276 #if defined(HAVE_ARPA_NAMESER_H)
Which is set by configure:
configure.in:439:AC_CHECK_HEADERS(netinet/if_ether.h arpa/nameser.h
net/ethernet.h ethertype.h if.h net/bpf.h)
(That was fun to chase down...)
So, you're still missing include files, namely arpa/nameser.h (and maybe
others)...
[bstrauss@tigger ntop-2.0-released]$ rpm -q -f /usr/include/arpa/nameser.h
glibc-devel-2.2.4-19.3
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jac
Engel
Sent: Saturday, February 16, 2002 3:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Compile error Redhat 7.2
Burton,
I installed kernel-headers , recompiled everything and got this error now
( version ntop-2.0-src used ):
cd . \
&& CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating Makefile
cd . && autoheader
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
creating config.h
config.h is unchanged
make all-recursive
make[1]: enter map `/root/ntop-current/ntop'
Making all in .
make[2]: enter map `/root/ntop-current/ntop'
/bin/sh ./libtool --mode=compile
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/root/ntop-current/gdchart0.9
4c -I/usr/include/openssl -g -O2 -pipe -c address.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/root/ntop-current/gdchart0.9
4c -I/usr/include/openssl -g -O2 -pipe -Wp,-MD,.deps/address.pp -c
ddress.c -fPIC
-DPIC -o .libs/address.lo
address.c: In function `_ns_name_ntop':
address.c:727: `EMSGSIZE' undeclared (first use in this function)
address.c:727: (Each undeclared identifier is reported only once
address.c:727: for each function it appears in.)
address.c: In function `_ns_name_unpack':
address.c:831: `EMSGSIZE' undeclared (first use in this function)
address.c: In function `_ns_name_skip':
address.c:918: `EMSGSIZE' undeclared (first use in this function)
make[2]: *** [address.lo] Error 1
make[2]: leaving map `/root/ntop-current/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: leaving map `/root/ntop-current/ntop'
make: *** [all-recursive-am] Error 2
What's wrong
thanks Burton
regards
JAc
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop