Date: Thu, 11 Jul 2002 12:08:23 +1000 From: Stanley Hopcroft <Stanley.Hopcroft@IPAustralia.Gov.AU> To: Questions@FreeBSD.ORG Subject: Incomplete types when attempting to compile IPv6 test program (porting ntop 2.1) Message-ID: <20020711120822.A30929@IPAustralia.Gov.AU>
next in thread | raw e-mail | index | archive | help
Dear Ladies and Gentlemen, 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> The problem is that 'struct in_addr' is defined in terms of other type defs (ultimately __uint32_t I think) and I don't know where to find it or them. What headers should I be using which manual should I be RTFMing ? 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. 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?20020711120822.A30929>