I tried that before as well. You get a little farther in
parsing, but still. The errors indicate that in6_addr is still
referenced, especially in globals-structtypes.h even though
INET6 is not defined. There is no #ifdef/#ifndef around the
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include -I/usr/
freeware/include -I/home/markbe/pds/ntop-3.0/myrrd -DUNKNOWN -I/
usr/local/include -I/usr/local/include -I/usr/freeware/include -
I/usr/freeware/include -I/home/markbe/pds/ntop-3.0/myrrd -g -O2
-I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototyp
es -Wmissing-declarations -Wnested-externs -g -O2 -I/usr/local/i
nclude -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-d
eclarations -Wnested-externs -c
address.c -Wp,-MD,.deps/address.TPlo -DPIC -o .libs/address.lo
In file included from ntop.h:475,
from address.c:21:
globals-structtypes.h:970: field `ifAddr' has incomplete type
address.c: In function `resolveAddress':
<...snip.... it keeps going with the errors>
Then I put in front of the offending code in
globals-structtypes.h (before line 970):
#ifndef INET6
/*
* IPv6 address (a structure for 64 bit architectures)
*/
struct in6_addr {
union {
uint32_t u6_addr32[4];
#ifdef notyet
__uint64_t u6_addr64[2];
#endif
uint8_t u6_addr8[16];
} u6_addr;
};
#define s6_addr64 u6_addr.u6_addr64
#define s6_addr32 u6_addr.u6_addr32
#define s6_addr8 u6_addr.u6_addr8
#define s6_addr u6_addr.u6_addr8
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
#endif /* INET6 */
Many fewer errors now show up:
address.c: In function `resolveAddress':
address.c:282: `_hp' undeclared (first use in this function)
address.c:282: (Each undeclared identifier is reported only once
address.c:282: for each function it appears in.)
address.c:283: `buffer' undeclared (first use in this function)
address.c:284: `__hp' undeclared (first use in this function)
address.c:285: `h_errnop' undeclared (first use in this
function)
address.c:285: too many arguments to function `gethostbyaddr_r'
So next I insert into address.c line #261 "#undef
HAVE_GETHOSTBYADDR_R" (It would need to be defined in configure
script). Saying we don't have gethostbyaddr_r and use the
gethostbyaddr() and it compiles. BTW: irix does have that
function, just couldn't find all the argumements to
gethostbyaddr_r in the section where it was defined.
>From Irix manpage:
struct hostent *gethostbyname_r(const char *name, struct hostent
*hent, char *buffer, int bufsize, int *h_errnop);
Anyway, it continues to compile quiet a while, until it hits:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include -I/usr/
freeware/include -I/home/markbe/pds/ntop-3.0/myrrd -DUNKNOWN -I/
usr/local/include -I/usr/local/include -I/usr/freeware/include -
I/usr/freeware/include -I/home/markbe/pds/ntop-3.0/myrrd -g -O2
-I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototyp
es -Wmissing-declarations -Wnested-externs -g -O2 -I/usr/local/i
nclude -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-d
eclarations -Wnested-externs -c
til.c -Wp,-MD,.deps/util.TPlo -DPIC -o .libs/util.lo
util.c:5057: warning: declaration of `versionSite' shadows
global declaration
util.c: In function `retrieveVersionFile':
util.c:5057: warning: declaration of `versionSite' shadows
global declaration
util.c:5097: `socklen_t' undeclared (first use in this function)
util.c:5097: (Each undeclared identifier is reported only once
util.c:5097: for each function it appears in.)
util.c:5097: parse error before `sizeof'
Irix doesn't have a "socklen_t" structure. Manpage says:
int connect (int s, const struct sockaddr *name, int namelen);
So I in util.c put #if #else #endif around it in file util.c
line# 5097
#ifdef HAS_SOCKLEN_T
rc = connect(sock, (struct sockaddr*)&addr, (socklen_t)
sizeof(addr));
#else
rc = connect(sock, (struct sockaddr*)&addr, (int)
sizeof(addr));
#endif /* HAS_SOCKLEN_T */
It compiles toward the end, but I do get this strange error mess
age. Like something is missing from the distribution:
creating ntop
Making all in plugins
Making all in .
gcc -bundle -flat_namespace -undefined suppress -o
.libs/libicmpPlugin.so icmpPlugin.o
gcc: suppress: No such file or directory
gcc: icmpPlugin.o: No such file or directory
gcc: No input files
*** Error code 1
smake: Error: 1 error
Make install errors out the same way. But after manually
creating "mkdir -p /usr/local/var/ntop/" so it could write out
its DB file it runs.
Under Admin->plugins "No Plugins available" probably due to the
errors above.
Cheers,
mark...
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Burton M. Strauss III
> Sent: Wednesday, April 07, 2004 10:58 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Ntop] NetFlow collect
>
>
> Try adding an #ifdef INET6 around those lines:
>
> #ifndef HAVE_IPV6_H
> #include <netinet/ip6.h>
> #endif
>
> #ifndef HAVE_ICMPV6_H
> #include <netinet/icmp6.h>
> #endif
> #endif
>
> becomes
>
> #ifdef INET6
> #ifndef HAVE_IPV6_H
> #include <netinet/ip6.h>
> #endif
>
> #ifndef HAVE_ICMPV6_H
> #include <netinet/icmp6.h>
> #endif
> #endif
> #endif /* INET6 */
>
>
> Those lines are trying to cover OSes which put the
> ipv6 stuff in differently
> named files. Obviously Irix has found yet another
> way to package them...
>
> -----Burton
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Mark
> > Bednarczyk
> > Sent: Wednesday, April 07, 2004 9:22 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Ntop] NetFlow collect
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of
> > > Burton M. Strauss III
> > > Sent: Wednesday, April 07, 2004 9:35 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: [Ntop] NetFlow collect
> > >
> > >
> > > Why don't you just disable IPv6? ./configure
> > > --disable-ipv6 (You would have
> > > found this if you checked the ./configure --help).
> > > Otherwise, use the cvs
> > > log and check yourself.
> >
> > I did check and use the --disable-ipv6 option, but it still
> > fails:
> >
> > Here is the exact command line:
> > ./configure --with-pcap-root=/usr/local
> --with-gdbm-include=/usr
> > /freeware/include
> --with-gdbm-lib=/usr/freeware/lib32 --with-gd-
> > include=/usr/freeware/include
> --with-gd-lib=/usr/freeware/lib32
> > --with-gd-root=/usr/freeware --disable-ipv6
> >
> > <...snip....>
> >
> > source='address.c' object='address.lo' libtool=yes
> > depfile='.deps/address.Plo' tmpdepfile='.deps/address.TPlo'
> > depmode=gcc /bin/sh ./depcomp /bin/sh ./libtool
> --mode=compile
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I.
> -I/usr/local/include -I/usr
> > /freeware/include -I/home/markbe/pds/ntop-3.0/myrrd
> -DUNKNOWN
> > -I/usr/local/include -I/usr/local/include
> -I/usr/freeware/includ
> > e -I/usr/freeware/include
> -I/home/markbe/pds/ntop-3.0/myrrd -g -
> > O2 -I/usr/local/include -Wshadow -Wpointer-arith
> -Wmissing-proto
> > types -Wmissing-declarations -Wnested-externs -g
> -O2 -I/usr/loc
> > al/include -Wshadow -Wpointer-arith
> -Wmissing-prototypes -Wmissi
> > ng-declarations -Wnested-externs -c -o address.lo `test -f
> > 'address.c' || echo './'`address.c
> > mkdir .libs
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I.
> -I/usr/local/include -I/usr/
> > freeware/include -I/home/markbe/pds/ntop-3.0/myrrd
> -DUNKNOWN -I/
> > usr/local/include -I/usr/local/include
> -I/usr/freeware/include -
> > I/usr/freeware/include
> -I/home/markbe/pds/ntop-3.0/myrrd -g -O2
> > -I/usr/local/include -Wshadow -Wpointer-arith
> -Wmissing-prototyp
> > es -Wmissing-declarations -Wnested-externs -g -O2
> -I/usr/local/i
> > nclude -Wshadow -Wpointer-arith
> -Wmissing-prototypes -Wmissing-d
> > eclarations -Wnested-externs -c
> > address.c -Wp,-MD,.deps/address.TPlo -DPIC -o
> .libs/address.lo
> > In file included from address.c:21:
> > ntop.h:294: netinet/ip6.h: No such file or directory
> > ntop.h:298: netinet/icmp6.h: No such file or directory
> >
> >
> > >
> > > However, no version other than 3.0 is currently
> > > supported, and I can all but
> > > guarantee that none of the Irix specific coding that
> > > used to be in ntop has
> > > survived. Expect to be starting a fairly significant
> > > piece of work.
> >
> >
> > Yes, I agree. I played around with the #ifdef
> switches because
> > the IP v6 structures do exist not in "netinet/ip6.h" but in
> > "netinet/in.h", specifically the "in6_addr", but its a never
> > ending chase, when 1 thing gets defined, several
> more structures
> > don't work for another reason.
> >
> > I will try and send en email to freeware.sgi.com
> asking them if
> > they want to tackle the Irix port and use linux for now.
> >
> > Cheers,
> > mark....
> >
> >
> > >
> > > -----Burton
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of Mark
> > > > Bednarczyk
> > > > Sent: Wednesday, April 07, 2004 7:09 AM
> > > > To: ntop
> > > > Subject: [Ntop] NetFlow collect
> > > >
> > > >
> > > > I'm trying to install NTOP with the NetFlow plugin.
> > > Can someone
> > > > tell me what version it was first introduced, I
> > > checked in the
> > > > ChangeLog file but it doesn't specify what version
> > > it was first
> > > > included.
> > > >
> > > > Basically 3.0 release won't compile on my Irix
> 6.5.10 system
> > > > because of the IPv6 header files it can't
> locate. So I would
> > > > like to install other older versions without IPv6
> > > support since
> > > > I don't need it for my purposes.
> > > >
> > > > SGI does provide an installable package for Irix
> > > but its version
> > > > 2.0; doesn't have the NetFlow plugin.
> > > >
> > > > Also I noticed the the SGI download link is invalid
> > > on the main
> > > > ntop download page.
> > > >
> > > > Cheers,
> > > > mark...
> > > >
> > > >
> > > > _______________________________________________
> > > > 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
>
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop