Date: Thu, 11 Jul 2002 08:28:13 +0200 From: =?ISO-8859-1?Q?Andreas_M=F6ller?= <andreas-moeller@gmx.net> To: questions@freebsd.org Cc: Stanley Hopcroft <Stanley.Hopcroft@IPAustralia.Gov.AU> Subject: Re: Incomplete types when attempting to compile IPv6 test program (porting ntop 2.1) Message-ID: <3D2D257D.40701@gmx.net> References: <20020711120822.A30929@IPAustralia.Gov.AU>
next in thread | previous in thread | raw e-mail | index | archive | help
> Please would you let me know what I must do to compile this test program > (test the presence of IPv6) with FreeBSD 4.6-RELEASE-p1 ? > > tssyd> cat 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> You must include <netinet/in.h> before <netinet/in_systm.h>. Andreas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2D257D.40701>