Dear Sir,
I am writing to thank you for your letter and say
1 The test in configure fails :-
tssyd> more junk.c
#include <sys/types.h>
#include <netinet/in_systm.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <netinet/in.h>
struct in6_addr tmp;
tssyd> gcc -o junk.o junk.c
In file included from junk.c:4:
/usr/include/netinet/ip.h:73: field `ip_src' has incomplete type
/usr/include/netinet/ip.h:73: field `ip_dst' has incomplete type
/usr/include/netinet/ip.h:158: field `ipt_addr' has incomplete type
tssyd>
2 netinet6/in6.h is included by netinet/in.h
grep -i -2 netinet6 /usr/include/netinet/in.h
/* INET6 stuff */
#define __KAME_NETINET_IN_H_INCLUDED_
#include <netinet6/in6.h>
#undef __KAME_NETINET_IN_H_INCLUDED_
Now this system is built (no kernel support) for IPv6 (but that is what
the system was built with the former snapshot - although there has been
a point upgrade of FreeBSD since then), so maybe that's breaking it ....
I think I am talking nonsense here ...
Sorry to be so useless.
On Tue, Jul 09, 2002 at 06:35:43PM -0700, Burton Strauss wrote:
> The test in configure is:
>
> dnl>
> dnl> check for ip6 address used by sFlow...
> dnl>
> AC_MSG_CHECKING(if in6_addr is defined)
> AC_CACHE_VAL(ac_cv_in6_addr_has_ea,
> LBL_SAVE_CFLAGS="$CFLAGS"
> CFLAGS="$CFLAGS $V_INCLS"
> AC_TRY_COMPILE([
> # include <sys/types.h>
> #include <netinet/in_systm.h>
> # include <sys/socket.h>
> # include <netinet/ip.h>
> # include <netinet/in.h>],
> [struct in6_addr tmp;],
> ac_cv_in6_addr_has_ea=yes,
> ac_cv_in6_addr_has_ea=no)
> CFLAGS="$LBL_SAVE_CFLAGS")
> AC_MSG_RESULT($ac_cv_in6_addr_has_ea)
> if test $ac_cv_in6_addr_has_ea = yes ; then
> AC_DEFINE(HAVE_IN6_ADDR)
> fi
>
> I.e. can it compile "struct in6_addr tmp;" from that list of includes.
>
> It looks like it's finding it in netinet6/in6.h...
>
> Which must be included from something in the sflow program, but not in the test
>program, so it's not setting HAVE_IN6_ADDR. Without that set, it's duplicating the
>struct define.
>
> I don't have access to a FreeBSD system - I need you to figure out where in the
>FreeBSD includes it's including netinet6/in6.h
>
> Then we can update the test...
>
> -----Burton
>
>
>
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev