From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 7 06:50:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7635637B401 for ; Mon, 7 Jul 2003 06:50:28 -0700 (PDT) Received: from twix.hotpop.com (twix.hotpop.com [204.57.55.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id B234B43FCB for ; Mon, 7 Jul 2003 06:50:27 -0700 (PDT) (envelope-from xtomservox@hotpop.com) Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by twix.hotpop.com (Postfix) with SMTP id 6F2A145FFB4 for ; Mon, 7 Jul 2003 13:50:15 +0000 (UTC) Received: from esmith (dca-29-c-210.dca.dsl.cerfnet.com [63.242.170.210]) by smtp-2.hotpop.com (Postfix) with ESMTP id EDFCA1800C4; Mon, 7 Jul 2003 13:50:21 +0000 (UTC) From: "Tom Servo" To: "'Alin-Adrian Anton'" , Date: Mon, 7 Jul 2003 09:50:19 -0400 Message-ID: <0193271C683D5844A478A359271B8F66147AD8@DC1.dynatec.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal In-Reply-To: <3F077EEF.7000704@reversedhell.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Subject: RE: raw socket programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 13:50:28 -0000 Off the top of my head this appears to be an include sequencing/circular include problem. Check the type that 'n_long' is being defined as and make sure that the proper includes that define the type are defined before the variable is defined and make sure that it is not getting run over. Is that the only files that you are including? -ts >Hey folks, > >I am playing with raw sockets on a FreeBSD 4.8 STABLE. This is the >include section from my file: > >#include >#include >#include >#include >#include >#include >#include >#include >#include > >When i try to compile the code, this is what I get: >%cc -o raw raw.c >In file included from raw.c:7: >/usr/include/netinet/ip.h:156: syntax error before `n_long' >/usr/include/netinet/ip.h:159: syntax error before `n_long' >% > >Errors like that were many more, but I rearranged the included files in >this particular order, and the huge number of errors was reduced to what >I pasted. Before, there were errors in tcp.h and etc. > >I would really appreciate an advice of what else to include/not to >include in order to get things right. > >Thanks in advance! > >Yours Sincerely, >Alin. _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"