From owner-freebsd-questions Tue May 22 5: 9:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from malmo.trab.se (malmo.trab.se [131.115.48.10]) by hub.freebsd.org (Postfix) with ESMTP id 1D0FA37B422 for ; Tue, 22 May 2001 05:09:36 -0700 (PDT) (envelope-from Urban.E.Olsson@telia.se) Received: from trab-hermes.haninge.trab.se (trab-hermes.haninge.trab.se [131.115.158.15]) by malmo.trab.se (8.10.1/TRAB-primary-2) with ESMTP id f4MC9Yo04578 for ; Tue, 22 May 2001 14:09:34 +0200 (MEST) Received: by trab-hermes.haninge.trab.se with Internet Mail Service (5.5.2448.0) id ; Tue, 22 May 2001 14:09:33 +0200 Message-ID: <778DFE9B4E3BD111A74E08002BA3DC0D03DA520F@trab-hermes.haninge.trab.se> From: Urban Olsson To: freebsd-questions@FreeBSD.org Subject: Compiling problems Date: Tue, 22 May 2001 14:09:32 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have a problem when I try to compile a simple TCP-client program. The problem is that as soon as I include "sys/socket.h" or "resolv.h" I get = lots of error messages. I have done this before on other computers without problem so I am a little bit confused. Could there have been some = problem during installation or some hardware problem or is there some = environment variable that should be set? The error messages looks like this: "/usr/include/sys/socket.h:52: syntax error before =B4sa_family_t=B4" It seems to be a type related problem. It seems like the compiler does = not recognize u_char, u_short etc. The solution is probably simple but the problem is no less irritating so some help would be appreciated. regards Urban Olsson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message