Subject: Re: i386 -current won't build
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 03/08/2006 02:29:38
On Tue, Mar 07, 2006 at 11:10:02PM -0500, Steven M. Bellovin wrote:
> With up-to-date source:
>=20
> #   compile  z/infback.o
> /usr/BUILD/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wmissing-prototypes -=
Wstrict-prototypes -Os -ffreestanding   -Werror -mcpu=3Di386  -I/usr/src/sy=
s/arch/i386/stand/boot/biosboot/../../../../..//lib/libz/../../../common/di=
st/zlib -I /usr/src/sys/arch/i386/stand/boot/biosboot/.. -I /usr/src/sys/ar=
ch/i386/stand/boot/biosboot/../../lib -I /usr/src/sys/arch/i386/stand/boot/=
biosboot/../../../../..//lib/libsa -I /usr/BUILD/obj/sys/arch/i386/stand/bo=
ot/biosboot -nostdinc -D_STANDALONE -I/usr/src/sys/arch/i386/stand/boot/bio=
sboot/../../../../../ -DSUPPORT_PS2 -DDIRECT_SERIAL -DSUPPORT_SERIAL=3Dboot=
_params.bp_consdev -DCONSPEED=3Dboot_params.bp_conspeed -DCONSADDR=3Dboot_p=
arams.bp_consaddr -DCONSOLE_KEYMAP=3Dboot_params.bp_keymap -DSUPPORT_CD9660=
 -DSUPPORT_USTARFS -DSUPPORT_DOSFS -DPASS_BIOSGEOM -DPASS_MEMMAP -DEPIA_HAC=
K -I/usr/src/sys/arch/i386/stand/boot/biosboot/../../../../..//lib/libkern/=
../../../common/lib/libc/quad -I/usr/src/sys/arch/i386/stand/boot/biosboot/=
../../../../..//lib/libkern
>  /../../../common/lib/libc/string -I/usr/src/sys/arch/i386/stand/boot/bio=
sboot/../../../../..//lib/libkern/../../../common/lib/libc/arch/i386/string=
 -nostdinc -isystem /usr/BUILD/netbsd/usr/include  -D_ZLIB_PRIVATE   -nostd=
inc -isystem /usr/BUILD/netbsd/usr/include -c    /usr/src/sys/arch/i386/sta=
nd/boot/biosboot/../../../../..//lib/libz/../../../common/dist/zlib/infback=
.c -o infback.o
> /usr/src/common/dist/zlib/infback.c:183:1: "BITS" redefined
> In file included from /usr/src/common/dist/zlib/zutil.h:24,
>                  from /usr/src/common/dist/zlib/infback.c:15:
> 		 /usr/src/sys/lib/libkern/libkern.h:178:1: this is the location of the =
previous definition

To stop the collision, I changed the name of the BITS() macro to __BITS().
Try now.

Dave

--=20
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933