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
---------- Original Message ----------------------------------
From: Stanley Hopcroft <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Wed, 10 Jul 2002 11:14:08 +1000
>Dear Ladies and Gentlemen,
>
>I am writing to report a problem ith 10 Julys snapshot
>(ntop-02-07-10.tgz).
>
>Here is the problem,
>
>gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include
>-I/usr/home/anwsmh/build/ntop-2.0.99-rc1/gdchart0.94c
>-I/usr/home/anwsmh/build/ntop-2.0.99-rc1/gdchart0.94c/zlib-1.1.4
>-I/usr/include/openssl -g -O2 -pipe -Wp,-MD,.deps/sflowPlugin.pp -c
>sflowPlugin.c -fPIC -DPIC -o .libs/sflowPlugin.lo
>sflowPlugin.c:170: warning: `s6_addr' redefined
>/usr/include/netinet6/in6.h:128: warning: this is the location of the
>previous definition
>sflowPlugin.c:163: redefinition of `struct in6_addr'
>gmake[3]: *** [sflowPlugin.lo] Error 1
>gmake[3]: Leaving directory
>`/usr/home/anwsmh/build/ntop-current-10-Jul-2022/ntop/plugins'
>gmake[2]: *** [all-recursive] Error 1
>gmake[2]: Leaving directory
>`/usr/home/anwsmh/build/ntop-current-10-Jul-2022/ntop/plugins'
>gmake[1]: *** [all-recursive] Error 1
>gmake[1]: Leaving directory
>`/usr/home/anwsmh/build/ntop-current-10-Jul-2022/ntop'
>gmake: *** [all-recursive-am] Error 2
>
>tssyd> uname -a
>FreeBSD tssyd.aipo.gov.au 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #2: Mon
>Jul 1 18:40:23 EST 2002
>[EMAIL PROTECTED]:/usr/src/sys/compile/TSSYD i386
>tssyd>
>
>The host is a PII 233 Mhz with 64 MB RAM, and an Intel 10/100 PRO (fxp
>device) interface.
>
>The ntop snapshot (between RC1 and RC2) from 10 June works fine on this
>host.
>
>Maybe this is the relevant part of configure output,
>
>checking for netdb.h... (cached) yes
>checking for netinet/in.h... (cached) yes
>checking for arpa/inet.h... (cached) yes
>checking for net/if.h... (cached) yes
>checking for netinet/in_systm.h... (cached) yes
>checking for netinet/ip.h... (cached) yes
>checking for netinet/ip_icmp.h... (cached) yes
>checking for netinet/udp.h... (cached) yes
>checking for netinet/tcp.h... (cached) yes
>checking for netinet/if_ether.h... (cached) yes
>checking for arpa/nameser.h... (cached) yes
>checking for net/ethernet.h... (cached) yes
>checking for ethertype.h... (cached) no
>checking for if.h... (cached) no
>checking for net/bpf.h... (cached) yes
>checking for sys/syslog.h... (cached) yes
>checking for syslog.h... (cached) yes
>
>and here's the definition from /usr/include/netinet6/in6.h
>
>#define s6_addr __u6_addr.__u6_addr8
>#ifdef _KERNEL /* XXX nonstandard */
>#define s6_addr8 __u6_addr.__u6_addr8
>#define s6_addr16 __u6_addr.__u6_addr16
>#define s6_addr32 __u6_addr.__u6_addr32
>#endif
>
>#define INET6_ADDRSTRLEN 46
>
>Is this only a matter of editing config.h.in ?
>
>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
>
__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
http://www.doteasy.com
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev