From owner-freebsd-questions Mon Mar 11 13:05:01 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA16208 for questions-outgoing; Mon, 11 Mar 1996 13:05:01 -0800 (PST) Received: from schizo.cdsnet.net ([204.118.244.32]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA16187 for ; Mon, 11 Mar 1996 13:04:57 -0800 (PST) Received: (from mrcpu@localhost) by schizo.cdsnet.net (8.6.12/8.6.12) id MAA11723; Mon, 11 Mar 1996 12:57:19 -0800 Date: Mon, 11 Mar 1996 12:57:19 -0800 (PST) From: Jaye Mathisen To: Chris Dabrowski cc: freebsd-questions@FreeBSD.org, chrisd@demon.net Subject: Re: Compiling BIND 4.9.3 on FreeBSD 2.1R In-Reply-To: <199603111154.LAA19432@chrisd.noc.demon.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk The cheap copout way is to remove the include of the compat dir (-I../compat I think), and compile it that way. Works fine. Or rename compat to something else and make -k it. On Mon, 11 Mar 1996, Chris Dabrowski wrote: > 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 > > #include > > #include > > #if defined(BSD) && (BSD >= 199103) > > # include <----------- Line 65 > > # include > > #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 - - Demon Internet Ltd >