From owner-freebsd-net Thu Jan 25 1:43:11 2001 Delivered-To: freebsd-net@freebsd.org Received: from web3005.mail.yahoo.com (web3005.mail.yahoo.com [204.71.202.168]) by hub.freebsd.org (Postfix) with SMTP id CD26037B699 for ; Thu, 25 Jan 2001 01:42:53 -0800 (PST) Received: (qmail 7043 invoked by uid 60001); 25 Jan 2001 09:42:43 -0000 Message-ID: <20010125094243.7042.qmail@web3005.mail.yahoo.com> Received: from [203.117.33.25] by web3005.mail.yahoo.com; Thu, 25 Jan 2001 01:42:43 PST Date: Thu, 25 Jan 2001 01:42:43 -0800 (PST) From: John Subject: Re: problems compiling raw socket program To: Wilbert de Graaf Cc: freebsd-net@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi I tried that as you had advised, but the error remains the same. bash-2.03$ gcc -o rawsocket rawsocket.c In file included from rawsocket.c:7: /usr/include/netinet/ip.h:152: parse error before `n_long' /usr/include/netinet/ip.h:152: warning: no semicolon at end of struct or union /usr/include/netinet/ip.h:152: warning: no semicolon at end of struct or union /usr/include/netinet/ip.h:155: parse error before `n_long' /usr/include/netinet/ip.h:155: warning: no semicolon at end of struct or union /usr/include/netinet/ip.h:156: warning: data definition has no type or storage class /usr/include/netinet/ip.h:157: parse error before `}' /usr/include/netinet/ip.h:157: warning: data definition has no type or storage class /usr/include/netinet/ip.h:158: parse error before `}' bash-2.03$ --- Wilbert de Graaf wrote: > > Can anyone enlighten me on why I can't compile? > > It tells you some types are missing so you need to > add one or more headers. > This will probably do it: #include > > > Wilbert > > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message