From owner-freebsd-hackers Thu Sep 3 00:12:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA03388 for freebsd-hackers-outgoing; Thu, 3 Sep 1998 00:12:43 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from word.smith.net.au (castles138.castles.com [208.214.165.138]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA03368 for ; Thu, 3 Sep 1998 00:12:22 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.9.1/8.8.8) with ESMTP id AAA00939; Thu, 3 Sep 1998 00:07:25 GMT (envelope-from mike@word.smith.net.au) Message-Id: <199809030007.AAA00939@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Roland Jesse cc: freebsd-hackers@FreeBSD.ORG Subject: Re: gcc fails to compile jesred-1.2 In-reply-to: Your message of "Thu, 03 Sep 1998 07:47:20 +0200." <19980903074720.B26829@cs.uni-magdeburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 03 Sep 1998 00:07:06 +0000 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > > I posted the question to the questions list but to no avail. > > When trying to compile > http://ivs.cs.uni-magdeburg.de/~elkner/webtools/src/jesred-1.2.tar.gz, gcc > fails with the following messages: > > j.wh4-422 ~/jesred-1.2 % make > cc -O3 -s -I. -c ip_list.c > In file included from ip_list.c:99: > /usr/include/netinet/in.h:212: parse error before `u_long' > /usr/include/netinet/in.h:212: warning: no semicolon at end of struct or > union > /usr/include/netinet/in.h:263: parse error before `u_char' > /usr/include/netinet/in.h:263: warning: no semicolon at end of struct or > union > [...] > > Honestly - I do not know why the compiler fails here. The source code > seems to be ok and the include does, too. The compiler's not failing - it's working properly. What it's telling you is that the code is bogus. > I would very much appreciate it if somebody else could try to build this > small package and would provide a hint or two of what I am missing here. You need and probably before you can include . You'll also want to include , because they use NULL. And take -O3 out of the Makefile, at least to start with. -O is about all that's reliable. The fact that it's supposed to build at all makes me wonder what platform it was developed on. The Makefile discourages the immediate "Linux" response, but I still need a barf bag. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message