Bet a dollar to a donut that 2.6 doesn't support IPv6, so it's missing the
header files.

Here's what I have... (Linux)

ipv6.h:

#ifndef _IPV6_H
#define _IPV6_H

#include <linux/in6.h>
#include <asm/byteorder.h>
...

in6.h:

...
struct in6_addr
{
        union
        {
                __u8            u6_addr8[16];
                __u16           u6_addr16[8];
                __u32           u6_addr32[4];
        } in6_u;
#define s6_addr                 in6_u.u6_addr8
#define s6_addr16               in6_u.u6_addr16
#define s6_addr32               in6_u.u6_addr32
};
...

sFlowPlugin.c has an ifdef, SFT_NEED_IN6ADDR, that does the define - see
lines 161..174

So, (opt1.patch) we could set SFT_NEED_IN6ADDR based on the absence of
_IPV6_H (Linux) and _NETINET_IN6_H (Solaris 8) in ntop.h - or we could put
it into ./configure (opt2.patch)...

Preferences??  I think opt2 is cleaner provided it works under Solaris 2.6
and 8 - neither of which I can test...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Luca
Deri
Sent: Friday, June 07, 2002 9:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop] [compile error] sflowPlugin in RC2 from
snapshot.ntop.org


Burton,
there are no problem on Solaris 8. I can't say much about 2.6. If anyone
has a patch....

Cheers, Luca

Burton M. Strauss III wrote:
> in6_addr is a standard part of my Linux distro - it's in
> /usr/include/linux/in6.h:
>
> [bstrauss@tigger linux]$ rpm -q --whatprovides /usr/include/linux/in6.h
> kernel-headers-2.4.9-21
>
> I'm guessing there is a missing include, missing package on your machine,
> and/or a config test that needs to be done.  However, I know that Luca
> develops under Solaris, so I'm defering this to him...
>
> Luca?
>
> -----Burton
>
> Minor point - I don't think the cvs extract on snapshot is working - if
you
> look, the files for the last week+ seem to have the same size...  probably
> need to download it directly from ntop.org!
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Anthony David
> Sent: Friday, June 07, 2002 2:37 AM
> To: [EMAIL PROTECTED]
> Subject: [Ntop] [compile error] sflowPlugin in RC2 from
> snapshot.ntop.org
>
>
> Greetings
>
> Compile failure for sflowPlugin
> Have tried moving the offending typedefs around with no success.
>
> Took easy way out by commenting out all Make file references to
> the plugin and got a clean compile.
>
>
>
> adavid@fwtest> gcc -v
> Reading specs from
/opt/contrib/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs
> gcc version 2.8.1
> adavid@fwtest> uname -a
> SunOS fwtest 5.6 Generic_105181-21 sun4m sparc SUNW,SPARCstation-5
>
>
>
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -I/usr/local/incl
>
ude -I/var/tmp/RC2/gdchart0.94c -I/var/tmp/RC2/gdchart0.94c/zlib-1.1.4 -I/us
> r/local/ssl/include -g -O2 -pipe -Wp,-MD,.deps/sflowPlugin.pp -c
> sflowPlugin.c  -fPIC -DPIC -o .libs/sflowPlugin.lo
> sflowPlugin.c:194: field `ip_v6' has incomplete type
> sflowPlugin.c:252: field `src_ip' has incomplete type
> sflowPlugin.c:253: field `dst_ip' has incomplete type
> sflowPlugin.c: In function `handleSflowPacket':
> sflowPlugin.c:1855: warning: passing arg 2 of `sendto' from incompatible
> pointer type
> make[3]: *** [sflowPlugin.lo] Error 1
> make[3]: Leaving directory `/var/tmp/RC2/ntop/plugins'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/var/tmp/RC2/ntop/plugins'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/RC2/ntop'
> make: *** [all-recursive-am] Error 2
>
> --
> Anthony David
>
> Gambling(n): A discretionary tax on those asleep during high school maths
> http://adavid.com.au/
> 0xA72CE1ED fingerprint = EA1E C69E FE59 BBE1 AA4B  F354 BD09 9765 A72C
E1ED
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://lists.ntop.org/mailman/listinfo/ntop
>
> _______________________________________________
> Ntop mailing list
> [EMAIL PROTECTED]
> http://lists.ntop.org/mailman/listinfo/ntop



--
Luca Deri                     NETikos S.p.A.
Via Matteucci 34/B            56124 Pisa, Italy.
Ph. +39/050/968.639           Fax. +39/050/968.626
Personal: [EMAIL PROTECTED]       Business: [EMAIL PROTECTED]
WWW: http://luca.ntop.org/    ICQ: 68183632
Hacker: someone who loves to program and enjoys being
clever about it - Richard Stallman

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Attachment: opt1.patch
Description: Binary data

Attachment: opt2.patch
Description: Binary data

Reply via email to