From owner-freebsd-questions Tue Jan 4 10:17:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from msk2.mail.ru (mx2.mail.ru [194.67.23.33]) by hub.freebsd.org (Postfix) with ESMTP id B308D15334 for ; Tue, 4 Jan 2000 10:17:54 -0800 (PST) (envelope-from muwa@mail.ru) Received: from [194.226.12.54] (helo=215) by msk2.mail.ru with esmtp (Exim 3.02 #116) id 125YZv-000MKv-00 for freebsd-questions@FreeBSD.ORG; Tue, 04 Jan 2000 21:21:07 +0300 Date: Tue, 4 Jan 2000 21:17:45 +0300 From: Mike Petrov X-Mailer: The Bat! (v1.38e) S/N A1D26E39 / Educational Reply-To: Mike Petrov X-Priority: 3 (Normal) Message-ID: <16887.000104@mail.ru> To: freebsd-questions@FreeBSD.ORG Subject: Sockets programming Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello freebsd-questions, I written simple tcp-socket program. It compiles and works _perfectly_ on Linuxes and FreeBSD v2.2.8. When I try to compile it on FreeBSD v3.4 (RELEASE-3.4), gcc(2.7.2.3) prints many errors: Why is it happening? /usr/include/netinet/in.h:224: parse error before `u_int32_t' /usr/include/netinet/in.h:276: parse error before `u_char' /usr/include/netinet/in.h:278: parse error before `sin_port' /usr/include/netinet/in.h:281: parse error before `}' /usr/include/netinet/in.h:291: field `ip_dst' has incomplete type /usr/include/netinet/in.h:344: field `imr_multiaddr' has incomplete type /usr/include/netinet/in.h:345: field `imr_interface' has incomplete type redir.c:84: invalid use of undefined type `struct sockaddr_in' redir.c:85: invalid use of undefined type `struct sockaddr_in' redir.c:86: invalid use of undefined type `struct sockaddr_in' redir.c:87: invalid use of undefined type `struct sockaddr_in' redir.c:94: sizeof applied to an incomplete type redir.c:107: sizeof applied to an incomplete type redir.c:157: storage size of `mike' isn't known /usr/include/netinet/in.h: At top level: /usr/include/netinet/in.h:279: storage size of `sin_addr' isn't known redir.c:22: storage size of `addr' isn't known redir.c:28: storage size of `home' isn't known redir.c:29: storage size of `away' isn't known P.S: I can send you source, if it would be needed. -- Best regards, Mike mailto:muwa@mail.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message