From owner-freebsd-questions@FreeBSD.ORG Fri Oct 31 11:15:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5797C16A4CF for ; Fri, 31 Oct 2003 11:15:08 -0800 (PST) Received: from priv-edtnes46.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 182D343F93 for ; Fri, 31 Oct 2003 11:15:07 -0800 (PST) (envelope-from aaron@finch.st) Received: from [198.53.109.134] by priv-edtnes46.telusplanet.net (InterMail vM.6.00.05.00 201-2115-109-20030812) with ESMTP <20031031191506.FZOW27778.priv-edtnes46.telusplanet.net@[198.53.109.134]> for ; Fri, 31 Oct 2003 12:15:06 -0700 From: Aaron Dalton To: freebsd-questions@freebsd.org Date: Fri, 31 Oct 2003 12:15:03 -0700 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310311215.03501.aaron@finch.st> Subject: Netinet6 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 19:15:08 -0000 I have been trying to compile some C++ socket code. I get the same errors with multiple software packages so I'm thinking it's something FreeBSD-related. I am a BSD newb so I would appreciate any advice you could give me. Below are the errors themselves. Thank you so much for your time. -BEGIN COMPILER OUTPUT gcc -Wall -fPIC -I../include -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT -c loopback.c In file included from nlinternal.h:31, from loopback.c:33: /usr/include/malloc.h:2: warning: #warning "this file includes which is deprecated, use instead" In file included from loopback.c:51: /usr/include/netinet/in.h:235: syntax error before `in_addr_t' /usr/include/netinet/in.h:287: syntax error before `u_char' In file included from /usr/include/netinet/in.h:469, from loopback.c:51: /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:144: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:149: syntax error before `u_int32_t' /usr/include/netinet6/in6.h:612: syntax error before `*' /usr/include/netinet6/in6.h:613: warning: type defaults to `int' in declaration of `inet6_option_append' /usr/include/netinet6/in6.h:614: syntax error before `*' /usr/include/netinet6/in6.h:614: warning: type defaults to `int' in declaration of `inet6_option_alloc' /usr/include/netinet6/in6.h:614: warning: data definition has no type or storage class /usr/include/netinet6/in6.h:615: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:616: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:631: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:636: syntax error before `u_int8_t' /usr/include/netinet6/in6.h:638: syntax error before `u_int8_t' loopback.c: In function `loopback_Read': loopback.c:480: warning: implicit declaration of function `ntohs' loopback.c: In function `loopback_WritePacket': loopback.c:556: warning: implicit declaration of function `htons' *** Error code 1 Stop in /home/aaron/Desktop/hawknl/src. -END COMPILER OUTPUT -- Aaron Dalton aaron@finch.st http://aaron.finch.st