From owner-freebsd-questions Sat Mar 6 1:49:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (Postfix) with SMTP id AEA9A14CAA for ; Sat, 6 Mar 1999 01:49:01 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 21474 invoked by uid 1001); 6 Mar 1999 09:25:18 -0000 Message-ID: <19990306092518.21473.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Sat, 06 Mar 1999 19:25:18 +1000 From: Greg Black To: Sean-Paul Rees Cc: questions@FreeBSD.ORG Subject: Re: socket.h errors References: In-reply-to: of Fri, 05 Mar 1999 19:28:44 PST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Problem: I get a strange socket.h set of parse errors, and I can't figure > out whats wrong. Easy: you didn't read the man page. It's the most basic thing to learn to do when you can't manage a simple compile. > 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' [Lots of junk snipped -- please be a bit discriminating in what you include.] That error always means that you forgot to include before the file that is generating the errors. As I said, RTFM. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message