*BSD News Article 62917


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!xpat.postech.ac.kr!news.kreonet.re.kr!europa.chnt.gtegsc.com!news.msfc.nasa.gov!elroy.jpl.nasa.gov!swrinde!howland.reston.ans.net!gatech!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!news.noc.demon.net!chrisd.noc.demon.net!chrisd
From: chrisd@chrisd.noc.demon.net (Chris Dabrowski)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Compiling BIND 4.9.3 for FreeBSD 2.1R
Date: 7 Mar 1996 22:53:21 GMT
Organization: Demon Internet Network Operations Centre
Lines: 64
Message-ID: <4hnpd1$33f@info.noc.demon.net>
Reply-To: chrisd@demon.net
NNTP-Posting-Host: chrisd.noc.demon.net
X-Newsreader: TIN [version 1.2 PL2]

I would really appreciate any ideas or suggestions to help me compile
BIND 4.9.3. According to the Makefile supplied with BIND the default
settings should work on any BSD 4.4 system. On my FreeBSD (2.1R) system
it fails with the following parse errors, yet when I tried it on a friends
NetBSD 1.1 system it compiled without any problems.

I considered altering the file '/usr/include/unistd.h' to match the NetBSD
one but I simply got more errors later on. Anyhow, I think I should be altering
BIND to match my system and not the other way around. :-)

Many thanks,

Chris

PS I'm using the ordinary version of gcc supplied with FreeBSD (2.6.3)


-----Error during make---------------------------------------------------
root@tatooine.vader.org:/usr/local/src/misc/bind $ make 
/usr/local/src/misc/bind/res
cc   -O -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

Stop.


-----herror.c------------------------------------------------------------
#include <sys/param.h>
#include <sys/uio.h>
#include <netdb.h>
#if defined(BSD) && (BSD >= 199103)
# include <unistd.h>                            <----------- Line 65
# include <string.h>
#else
# include "../conf/portability.h"
#endif 


-----/usr/include/unistd.h (From FreeBSD)---------------------------------
__BEGIN_DECLS
__dead void
         _exit __P((int)) __dead2;              <----------- Line 53
	int      access __P((const char *, int));
        unsigned int     alarm __P((unsigned int));
	int      chdir __P((const char *));
	int      chown __P((const char *, uid_t, gid_t));
	int      close __P((int));


-----/usr/include/unistd.h (From NetBSD)----------------------------------
__BEGIN_DECLS
__dead void      _exit __P((int)) __attribute__((noreturn));
int      access __P((const char *, int));
unsigned alarm __P((unsigned)); 
int      chdir __P((const char *));
int      chown __P((const char *, uid_t, gid_t));
int      close __P((int));


--
Chris Dabrowski - <chrisd@demon.net> - Demon Internet Ltd