From owner-freebsd-hackers Thu Dec 2 1: 0:45 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (law-f300.hotmail.com [209.185.130.89]) by hub.freebsd.org (Postfix) with SMTP id 3EBAB14C1C for ; Thu, 2 Dec 1999 01:00:41 -0800 (PST) (envelope-from manny8383@hotmail.com) Received: (qmail 78854 invoked by uid 0); 2 Dec 1999 09:00:16 -0000 Message-ID: <19991202090016.78853.qmail@hotmail.com> Received: from 129.2.9.131 by www.hotmail.com with HTTP; Thu, 02 Dec 1999 01:00:16 PST X-Originating-IP: [129.2.9.131] From: "Manny Obrey" To: freebsd-hackers@freebsd.org Subject: error Date: Thu, 02 Dec 1999 01:00:16 PST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, This may be a simple error on my part but I've narrowed my prob to the snippet below. When trying to compile: #include #include int main () { return 0;} I get error messages which state parse errors in /usr/include/sys/socket.h my compiler =gcc 2.7 ( also tried gcc 2.95.1 ) my os = FreeBSD 3.3-RELEASE, enough RAM , processor speed, etc socket.h = $FreeBSD: src/sys/sys/socket.h,v 1.27.2.1 1999/08/29 16:32:44 peter Exp $ Any suggestions would be appreciated. - Manny Long error outout follows: In file included from ./main.c:1: /usr/include/sys/socket.h:139: parse error before `u_char' /usr/include/sys/socket.h:139: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:140: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:142: parse error before `}' /usr/include/sys/socket.h:150: parse error before `u_short' /usr/include/sys/socket.h:150: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:151: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:266: parse error before `caddr_t' /usr/include/sys/socket.h:266: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:267: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:269: parse error before `msg_iovlen' /usr/include/sys/socket.h:269: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:270: parse error before `msg_control' /usr/include/sys/socket.h:270: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:271: parse error before `msg_controllen' /usr/include/sys/socket.h:271: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:273: parse error before `}' /usr/include/sys/socket.h:293: parse error before `u_int' /usr/include/sys/socket.h:293: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:297: parse error before `}' /usr/include/sys/socket.h:314: parse error before `pid_t' /usr/include/sys/socket.h:314: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:315: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:316: parse error before `cmcred_euid' /usr/include/sys/socket.h:316: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:317: parse error before `cmcred_gid' /usr/include/sys/socket.h:317: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:319: parse error before `cmcred_groups' /usr/include/sys/socket.h:319: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:320: parse error before `}' /usr/include/sys/socket.h:343: parse error before `u_short' /usr/include/sys/socket.h:343: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:345: parse error before `}' /usr/include/sys/socket.h:351: parse error before `caddr_t' /usr/include/sys/socket.h:351: warning: no semicolon at end of struct or union /usr/include/sys/socket.h:355: parse error before `msg_accrights' /usr/include/sys/socket.h:355: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:357: parse error before `}' In file included from ./main.c:1: /usr/include/sys/socket.h:388: parse error before `recv' /usr/include/sys/socket.h:388: parse error before `size_t' /usr/include/sys/socket.h:388: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:389: parse error before `recvfrom' /usr/include/sys/socket.h:389: parse error before `size_t' /usr/include/sys/socket.h:389: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:390: parse error before `recvmsg' /usr/include/sys/socket.h:390: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:391: parse error before `send' /usr/include/sys/socket.h:391: parse error before `size_t' /usr/include/sys/socket.h:391: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:392: parse error before `sendto' /usr/include/sys/socket.h:393: parse error before `size_t' /usr/include/sys/socket.h:393: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:394: parse error before `sendmsg' /usr/include/sys/socket.h:394: warning: data definition has no type or storage c lass /usr/include/sys/socket.h:395: parse error before `off_t' ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message