Bind-4.9.2 & unistd.h -> "parse error before '__dead2'

Bind-4.9.2 & unistd.h -> "parse error before '__dead2'

Post by Jim Dutto » Wed, 13 Mar 1996 04:00:00



In trying to compile BIND v4.9.2 with FreeBSD v2.0.5, I get the following
error:

cc -g -I../include -I../compat/include  -DUSE_OPTIONS_H -c herror.c
In file included from herror.c:65:
/usr/include/unistd.h:53: parse error before `__dead2'
/usr/include/unistd.h:53: warning: data definition has no type or storage class
*** Error code 1

From /usr/include/unistd.h (including line 53):

__dead void
         _exit __P((int)) __dead2;
int      access __P((const char *, int));

Is the declaration for '__dead2' correct ?

 
 
 

Bind-4.9.2 & unistd.h -> "parse error before '__dead2'

Post by Hal Snyd » Fri, 15 Mar 1996 04:00:00



>In trying to compile BIND v4.9.2 with FreeBSD v2.0.5, I get the following
>error:


 
 
 

Bind-4.9.2 & unistd.h -> "parse error before '__dead2'

Post by J Wuns » Fri, 15 Mar 1996 04:00:00



>   Has someone more familiar with
> the libc/net source tried to make sense of this and make a reasonable
> patch to get the resolver up to 4.9.3 patch1?

revision 1.7
date: 1996/01/07 09:14:57;  author: peter;  state: Exp;  lines: +18 -20
Merge the 4.9.3-rel code into the res_* parts.  The gethostXXXbyYYY
parts are not quite so simple..

Is this what you're looking for?  I think Peter Wemm did a really fine
job to continuously upgrade the BIND version in FreeBSD-current.

--
cheers, J"org


Never trust an operating system you don't have sources for. ;-)

 
 
 

Bind-4.9.2 & unistd.h -> "parse error before '__dead2'

Post by Jaye Mathis » Sat, 16 Mar 1996 04:00:00


Easy copout way is to just remove the the -I./compat include, or rename the .h
files in the compat dir.

4.9.3-Patch1 seems to work fine compiled that way.



Quote:>In trying to compile BIND v4.9.2 with FreeBSD v2.0.5, I get the following
>error:

>cc -g -I../include -I../compat/include  -DUSE_OPTIONS_H -c herror.c
>In file included from herror.c:65:
>/usr/include/unistd.h:53: parse error before `__dead2'
>/usr/include/unistd.h:53: warning: data definition has no type or storage class
>*** Error code 1

>From /usr/include/unistd.h (including line 53):

>__dead void
>         _exit __P((int)) __dead2;
>int      access __P((const char *, int));

>Is the declaration for '__dead2' correct ?