From owner-freebsd-questions Fri Mar 5 19:33: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.macnexus.org (mail.macnexus.org [207.113.154.21]) by hub.freebsd.org (Postfix) with ESMTP id EEFF615102 for ; Fri, 5 Mar 1999 19:32:58 -0800 (PST) (envelope-from sean@flame.org) Received: from ppp122.macnexus.org (207.113.154.122) by mail.macnexus.org with ESMTP (Eudora Internet Mail Server 2.2); Fri, 5 Mar 1999 19:36:55 -0800 Date: Fri, 5 Mar 1999 19:28:44 -0800 (PST) From: Sean-Paul Rees X-Sender: sean@valiant.dreamfire.net To: questions@freebsd.org Subject: socket.h errors 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 Background: I have written several little network utilities. Problem: I get a strange socket.h set of parse errors, and I can't figure out whats wrong. Information: I get the following errors. How do I fix them? [sean@valiant]-~/coding/c/netutil/netutil> make gcc -O2 -c main.c In file included from netutil.h:18, from main.c:17: /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 class /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 class /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 class /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 class /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 class /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 class /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 class /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 class /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 class /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 class /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 class /usr/include/sys/socket.h:357: parse error before `}' /usr/include/sys/socket.h:388: parse error before `recv' /usr/include/sys/socket.h:388: warning: data definition has no type or storage class /usr/include/sys/socket.h:389: parse error before `recvfrom' /usr/include/sys/socket.h:389: warning: data definition has no type or storage class /usr/include/sys/socket.h:390: parse error before `recvmsg' /usr/include/sys/socket.h:390: warning: data definition has no type or storage class /usr/include/sys/socket.h:391: parse error before `send' /usr/include/sys/socket.h:391: warning: data definition has no type or storage class /usr/include/sys/socket.h:392: parse error before `sendto' /usr/include/sys/socket.h:393: warning: data definition has no type or storage class /usr/include/sys/socket.h:394: parse error before `sendmsg' /usr/include/sys/socket.h:394: warning: data definition has no type or storage class /usr/include/sys/socket.h:395: parse error before `off_t' *** Error code 1 Stop. -- I would appreciate any input. Please direct all replies to sean@flame.org :) Cheers, Sean [- Sean-Paul Rees [root/sean]@dreamfire.net - http://www.dreamfire.net -] [- pgp: finger sean@dreamfire.net - SR5176 -] "If you think education is expensive, try ignorance." - Derek Bok, President of Harvard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message