Date: 15 Sep 1999 10:37:56 +0200 From: Marko Schuetz <marko@ki.informatik.uni-frankfurt.de> To: freebsd-stable@freebsd.org Subject: Re: Q: parse error in /usr/include/netdb.h? Message-ID: <86aeqoa7tn.fsf@king.ki.informatik.uni-frankfurt.de> In-Reply-To: Dan Harnett's message of "Tue, 14 Sep 1999 18:02:48 -0400 (EDT)" References: <199909142202.SAA14197@nfol.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Dan" == Dan Harnett <dan@nfol.com> 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 <netinet/in.h>
Dan> Just make sure that file is included before
Dan> /usr/include/arpa/inet.h.
You are right! <netinet/in.h> was included, but after
<arpa/inet.h>. 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
>> <arpa/inet.h> and <netdb.h>.
>>
>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86aeqoa7tn.fsf>
