From owner-freebsd-questions Mon Nov 9 09:06:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24688 for freebsd-questions-outgoing; Mon, 9 Nov 1998 09:06:26 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from nyx.digitaladdiction.com (nyx.digitaladdiction.com [207.239.226.70]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24683 for ; Mon, 9 Nov 1998 09:06:24 -0800 (PST) (envelope-from deker@digitaladdiction.com) Received: from localhost (deker@localhost) by nyx.digitaladdiction.com (8.9.1/8.8.8) with SMTP id MAA25352 for ; Mon, 9 Nov 1998 12:06:08 -0500 (EST) (envelope-from deker@digitaladdiction.com) X-Authentication-Warning: nyx.digitaladdiction.com: deker owned process doing -bs Date: Mon, 9 Nov 1998 12:06:08 -0500 (EST) From: Rob Deker To: FreeBSD Questions Subject: Questions about in.h and inet.h Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message