Subject: Cannot build the toolchain
To: None <current-users@netbsd.org>
From: None <splitscreen@splits.mine.nu>
List: current-users
Date: 03/24/2004 14:47:52
I'm compiling -current on a NetBSD 1.6.2 i386 machine
I updated my -current sources with

cvs update -dP in /usr/src last night and again today at around 11am GMT.

Both times i received this error :
#   compile  asn1_compile/gen.lo
cc -O -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include  
-I/usr/src/tools/asn1_compile/../
compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE 
-I.                            
-I/usr/src/include/heimdal       -I/usr/src/crypto/dist/heimdal/lib/asn1                 
-I/usr/src/cryp
to/dist/heimdal/lib/roken                -DKRB5=1                                
-DHAVE_CONFIG_H  -c -o 
gen.lo.o    /usr/src/crypto/dist/heimdal/lib/asn1/gen.c
In file included from /usr/src/tools/compat/obj/config.h:102,
                 from /usr/src/crypto/dist/heimdal/lib/asn1/gen_locl.h:41,
                 from /usr/src/crypto/dist/heimdal/lib/asn1/gen.c:34:
/usr/src/tools/asn1_compile/../compat/compat_defs.h:118: warning: 
redefinition of `u_long'
/usr/include/sys/types.h:106: warning: `u_long' previously declared here
In file included from /usr/src/include/heimdal/roken.h:54,
                 from /usr/src/crypto/dist/heimdal/lib/asn1/gen_locl.h:52,
                 from /usr/src/crypto/dist/heimdal/lib/asn1/gen.c:34:
/usr/include/sys/socket.h:85: conflicting types for `socklen_t'
/usr/src/tools/asn1_compile/../compat/compat_defs.h:114: previous 
declaration of `socklen_t'

I wouldn't have thought that redefinition of u_long would cause my build 
to break, any suggestions?
--------------------------------------------------------------
splitscreen - looking at life with a double perspective
splitscreen@splits.mine.nu