From owner-freebsd-stable Tue Nov 10 09:19:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA20063 for freebsd-stable-outgoing; Tue, 10 Nov 1998 09:19:36 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from mailhost.iprg.nokia.com (mailhost.iprg.nokia.com [205.226.5.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA20056 for ; Tue, 10 Nov 1998 09:19:30 -0800 (PST) (envelope-from scott@iprg.nokia.com) Received: from melkor.iprg.nokia.com (melkor.iprg.nokia.com [205.226.1.82]) by mailhost.iprg.nokia.com (8.8.8/8.6.10) with SMTP id JAA04067; Tue, 10 Nov 1998 09:18:39 -0800 (PST) Message-ID: <3648756E.52BFA1D7@iprg.nokia.com> Date: Tue, 10 Nov 1998 09:18:38 -0800 From: Scott Sewall Organization: Nokia Communications X-Mailer: Mozilla 3.04Gold (X11; U; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: Rob Deker CC: FreeBSD Stable Subject: Re: Questions about in.h and inet.h References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Add #include before the other includes. -- Scott Rob Deker wrote: > > I sent this to freebsd-questions and got nothing back, so I thought I'd > try here. Apologies to thos seeing this again. > > So, I'm trying to compile DaVinci (a big IRC botlike thing) on a > machine running 3.0-RELEASE and it uses /usr/include/netinet/in.h and > /usr/include/arpa/inet.h. No big deal right? > > Well, gcc seems to think that these header files are broken. To prove that > I wasn't on crack, I wrote the following stupid little bit of code: > > #include > #include > > main() {} > > an tried to compile it. What I got back was: > > In file included from foo.c:1: > /usr/include/netinet/in.h:223: parse error before `u_int32_t' > /usr/include/netinet/in.h:223: warning: no semicolon at end of struct or > union > /usr/include/netinet/in.h:275: parse error before `u_char' > /usr/include/netinet/in.h:275: warning: no semicolon at end of struct or > union > /usr/include/netinet/in.h:276: warning: data definition has no type or > storage class > /usr/include/netinet/in.h:277: parse error before `sin_port' > /usr/include/netinet/in.h:277: warning: data definition has no type or > storage class > /usr/include/netinet/in.h:280: parse error before `}' > /usr/include/netinet/in.h:290: field `ip_dst' has incomplete type > /usr/include/netinet/in.h:337: field `imr_multiaddr' has incomplete type > /usr/include/netinet/in.h:338: field `imr_interface' has incomplete type > In file included from foo.c:2: > /usr/include/arpa/inet.h:89: warning: parameter has incomplete type > /usr/include/arpa/inet.h:92: warning: parameter has incomplete type > /usr/include/arpa/inet.h:96: warning: parameter has incomplete type > /usr/include/netinet/in.h:278: storage size of `sin_addr' isn't known > > I've looked over the header files and don't see anything really wrong with > them (ObAdmission: I'm no coder). Am I really smoking crack here or is > something wrong with these header files? > > thanks > > rob > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message