From owner-freebsd-questions Wed Jul 10 19: 8:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2F6537B400 for ; Wed, 10 Jul 2002 19:08:35 -0700 (PDT) Received: from figg.isecure.com.au (ns2.isecure.com.au [202.125.4.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D9A43E52 for ; Wed, 10 Jul 2002 19:08:34 -0700 (PDT) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: from iron.isentry.net.au (iron.isecure.com.au [202.125.4.94] (may be forged)) by figg.isecure.com.au (8.11.3/8.11.3) with ESMTP id g6B28Xn26442 for ; Thu, 11 Jul 2002 12:08:33 +1000 Received: (from smap@localhost) by iron.isentry.net.au (8.11.2/8.10.2) id g6B28W625722 for ; Thu, 11 Jul 2002 12:08:32 +1000 (EST) X-Authentication-Warning: iron.isentry.net.au: smap set sender to using -f Received: from nodnsquery(10.11.3.10) by iron via smap (V5.5) id xma025704; Thu, 11 Jul 02 12:08:24 +1000 Received: from vmail.aipo.gov.au (localhost [127.0.0.1]) by gibbons.isecure.com.au (8.11.3/8.10.2) with ESMTP id g6B28Oo22784 for ; Thu, 11 Jul 2002 12:08:24 +1000 Received: from pc09011.aipo.gov.au (PC09011.aipo.gov.au [10.0.3.110]) by vmail.aipo.gov.au (8.11.6/8.11.6) with ESMTP id g6B28O821376 for ; Thu, 11 Jul 2002 12:08:24 +1000 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: from pc09011.aipo.gov.au (localhost [127.0.0.1]) by pc09011.aipo.gov.au (8.12.3/8.12.3) with ESMTP id g6B28Nba030997 for ; Thu, 11 Jul 2002 12:08:23 +1000 (EST) (envelope-from anwsmh@pc09011.aipo.gov.au) Received: (from anwsmh@localhost) by pc09011.aipo.gov.au (8.12.3/8.12.3/Submit) id g6B28Nff030996 for Questions@FreeBSD.ORG; Thu, 11 Jul 2002 12:08:23 +1000 (EST) Date: Thu, 11 Jul 2002 12:08:23 +1000 From: Stanley Hopcroft 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 #include #include #include #include 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