From owner-freebsd-current@FreeBSD.ORG Mon Jan 26 17:21:33 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35E9916A4CE for ; Mon, 26 Jan 2004 17:21:33 -0800 (PST) Received: from pixies.tirloni.org (pixies.tirloni.org [200.203.183.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CEA043D5A for ; Mon, 26 Jan 2004 17:20:27 -0800 (PST) (envelope-from tirloni@tirloni.org) Received: by pixies.tirloni.org (Postfix, from userid 1000) id 681161E163C; Mon, 26 Jan 2004 23:19:23 -0200 (BRST) Date: Mon, 26 Jan 2004 23:19:23 -0200 From: "Giovanni P. Tirloni" To: current@freebsd.org Message-ID: <20040127011923.GA76108@pixies.tirloni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.5.5.1i Subject: ip.h parse error (gcc 3.3.3, 5.2-CURRENT, 2003/01/25) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 01:21:33 -0000 Hi, I'm getting an error while trying to compile a small piece of code of mime that was compiling fine yesterday when the system was 5.1-RELEASE. These are the headers that I'm using: #include #include #include #include The only error I get is this one: > gcc -o divert_exceeded divert_exceeded.c In file included from divert_exceeded.c:4: /usr/include/netinet/ip.h:164: error: syntax error before "n_long" /usr/include/netinet/ip.h:167: error: syntax error before "n_long" > Code snippet: union ipt_timestamp { n_long ipt_time[1]; struct ipt_ta { struct in_addr ipt_addr; n_long ipt_time; } ipt_ta[1]; } ipt_timestamp; and it won't generate the binary. I'm sorry that I don't really remember the output from yesteday (5.1-RELEASE) but I'm +/- sure it was giving me the same error, altough it would finish compilation. It was gcc 3.2.3 (or 3.2.2). I couldn't find a PR about this but I thought it would be better to ask for help here before. My code only creates a socket, bind it and try to receive from. Nothing really useful. In fact, it doesn't really do anything yet because I stopped coding trying to find how to fix this error. -- Giovanni P. Tirloni Fingerprint: 8C3F BEC5 79BD 3E9B EDB8 72F4 16E8 BA5E D031 5C26