From owner-freebsd-stable Wed Sep 15 1:38:25 1999 Delivered-To: freebsd-stable@freebsd.org Received: from king.ki.informatik.uni-frankfurt.de (king.ki.informatik.uni-frankfurt.de [141.2.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1AA9914A2D for ; Wed, 15 Sep 1999 01:37:58 -0700 (PDT) (envelope-from marko@king.ki.informatik.uni-frankfurt.de) Received: (from marko@localhost) by king.ki.informatik.uni-frankfurt.de (8.8.6 (PHNE_14041)/8.7.1) id KAA05212; Wed, 15 Sep 1999 10:37:56 +0200 (MESZ) To: freebsd-stable@freebsd.org Subject: Re: Q: parse error in /usr/include/netdb.h? References: <199909142202.SAA14197@nfol.com> From: Marko Schuetz Date: 15 Sep 1999 10:37:56 +0200 In-Reply-To: Dan Harnett's message of "Tue, 14 Sep 1999 18:02:48 -0400 (EDT)" Message-ID: <86aeqoa7tn.fsf@king.ki.informatik.uni-frankfurt.de> Lines: 48 X-Mailer: Gnus v5.7/Emacs 20.4 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "Dan" == Dan Harnett writes: Dan> Hello, Dan> It still sounds like you are missing an include file. Looking at Dan> /usr/include/arpa/inet.h version 1.10.2.1 in 3.3-RC, on line 89 Dan> there is a prototype that looks like this: Dan> unsigned long inet_lnaof __P((struct in_addr)); Dan> struct in_addr is declared in /usr/include/netinet/in.h and you Dan> need to make sure you are including that into your program. A Dan> line like this will work: Dan> #include Dan> Just make sure that file is included before Dan> /usr/include/arpa/inet.h. You are right! was included, but after . That solves the warning, but the parse error remains. Any ideas as to how to solve it? Dan> Dan Harnett >> I have a program to compile which I did not write that includes >> and . >> >> I tried compiling with the /usr/bin/cc (v 2.7.2.3) and with gcc >> 2.9.5. From both I get: >> >> In file included from mercury_trace_external.c:42: >> /usr/include/arpa/inet.h:89: warning: parameter has incomplete type >> /usr/include/arpa/inet.h:92: warning: parameter has incomplete type >> /usr/include/arpa/inet.h:96: warning: parameter has incomplete type >> In file included from mercury_trace_external.c:44: >> /usr/include/netdb.h:179: parse error before `(' >> /usr/include/netdb.h:179: `type name' declared as function returning an array >> /usr/include/netdb.h:179: `type name' declared as function returning a function >> /usr/include/netdb.h:179: parse error before `)' >> gmake[2]: *** [mercury_trace_external.o] Error 1 Marko -- Marko Schütz marko@cs.uni-frankfurt.de http://www.ki.informatik.uni-frankfurt.de/~marko/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message