From owner-freebsd-current Fri Dec 8 06:28:37 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA07783 for current-outgoing; Fri, 8 Dec 1995 06:28:37 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA07766 for ; Fri, 8 Dec 1995 06:28:23 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id BAA30958; Sat, 9 Dec 1995 01:26:33 +1100 Date: Sat, 9 Dec 1995 01:26:33 +1100 From: Bruce Evans Message-Id: <199512081426.BAA30958@godzilla.zeta.org.au> To: phk@critter.tfs.com, scrappy@hub.org Subject: Re: cd /usr/src/lib; make depend...Fails Cc: current@freebsd.org Sender: owner-current@freebsd.org Precedence: bulk >make sure that your gcc defines __FreeBSD__ to 2 :-) >> The offending code is: >> >> #if __FreeBSD__ != 2 >> extern char *sys_errlist[]; >> #endif The code is bogus too. E.g., it won't work under FreeBSD 3.1.4.1.5 :-). I was annoyed when someone globably replaced all the bogus __386BSD__'s with bogus __FreeBSD__'s and made this list: src/gnu/games/chess/Xchess/program.c XXX src/gnu/games/chess/Xchess/scrollText.c XXX src/gnu/games/chess/Xchess/std.c XXX src/gnu/usr.bin/cvs/lib/getopt.c XXX src/gnu/usr.bin/cvs/lib/regex.h XXX src/gnu/usr.bin/groff/indxbib/dirnamemax.c YYY src/gnu/usr.bin/kgdb/config/i386bsd-dep.c XXX src/gnu/usr.bin/tar/getdate.y XXX src/lib/libncurses/TESTS/knight.c YYY src/usr.sbin/bootpd/getether.c XXX src/libexec/rpc.rusersd/rusers_proc.c XXX src/sys/i386/include/npx.h XXX :-( src/usr.bin/ncftp/sys.h XXX src/libexec/bootpd/getether.c XXX src/usr.sbin/sendmail/src/conf.h src/bin/ed/ed.h In most places the correct fix is to remove the non-FreeBSD code and keep it only in cvs. Bruce