Subject: compile fails on amd64
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 08/25/2005 18:17:47
Hi,

trying to compile -current fetched an hour or so ago fails for me.


Kurt


#    create  cksum/sha256.d
/u/NetBSD/arch/amd64/TOOLS/bin/nbhost-mkdep -f sha256.d --     -I/u/NetBSD/arch/amd64/obj/tools/compat -I/u/NetBSD/arch/amd64/obj/tools/compat/include  -I/u/NetBSD/src/tools/cksum/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64   /u/NetBSD/src/tools/cksum/../../usr.bin/cksum/sha256.c
In file included from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha256.c:4:
/u/NetBSD/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* to be defined.
/u/NetBSD/src/tools/compat/compat_defs.h:206:1: warning: "dirfd" redefined
In file included from /u/NetBSD/src/tools/compat/compat_defs.h:118,
                 from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha256.c:4:
/usr/include/dirent.h:70:1: warning: this is the location of the previous definition
#    create  cksum/sha384.d
/u/NetBSD/arch/amd64/TOOLS/bin/nbhost-mkdep -f sha384.d --     -I/u/NetBSD/arch/amd64/obj/tools/compat -I/u/NetBSD/arch/amd64/obj/tools/compat/include  -I/u/NetBSD/src/tools/cksum/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64   /u/NetBSD/src/tools/cksum/../../usr.bin/cksum/sha384.c
In file included from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha384.c:4:
/u/NetBSD/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* to be defined.
/u/NetBSD/src/tools/compat/compat_defs.h:206:1: warning: "dirfd" redefined
In file included from /u/NetBSD/src/tools/compat/compat_defs.h:118,
                 from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha384.c:4:
/usr/include/dirent.h:70:1: warning: this is the location of the previous definition
#    create  cksum/sha512.d
/u/NetBSD/arch/amd64/TOOLS/bin/nbhost-mkdep -f sha512.d --     -I/u/NetBSD/arch/amd64/obj/tools/compat -I/u/NetBSD/arch/amd64/obj/tools/compat/include  -I/u/NetBSD/src/tools/cksum/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64   /u/NetBSD/src/tools/cksum/../../usr.bin/cksum/sha512.c
In file included from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha512.c:4:
/u/NetBSD/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* to be defined.
/u/NetBSD/src/tools/compat/compat_defs.h:206:1: warning: "dirfd" redefined
In file included from /u/NetBSD/src/tools/compat/compat_defs.h:118,
                 from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha512.c:4:
/usr/include/dirent.h:70:1: warning: this is the location of the previous definition



#   compile  cksum/sha256.lo
cc -O -I/u/NetBSD/arch/amd64/obj/tools/compat -I/u/NetBSD/arch/amd64/obj/tools/compat/include  -I/u/NetBSD/src/tools/cksum/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -c -o sha256.lo.o    /u/NetBSD/src/usr.bin/cksum/sha256.c
In file included from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha256.c:4:
/u/NetBSD/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* to be defined.
In file included from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha256.c:4:
/u/NetBSD/src/tools/compat/compat_defs.h:145: warning: redefinition of `u_long'
/usr/include/sys/types.h:104: warning: `u_long' previously declared here
/u/NetBSD/src/tools/compat/compat_defs.h:149: warning: redefinition of `u_char'
/usr/include/sys/types.h:101: warning: `u_char' previously declared here
/u/NetBSD/src/tools/compat/compat_defs.h:153: warning: redefinition of `u_int'
/usr/include/sys/types.h:103: warning: `u_int' previously declared here
/u/NetBSD/src/tools/compat/compat_defs.h:157: warning: redefinition of `u_short'
/usr/include/sys/types.h:102: warning: `u_short' previously declared here
/u/NetBSD/src/tools/compat/compat_defs.h:195: error: redefinition of `struct _dirdesc'
/u/NetBSD/src/tools/compat/compat_defs.h:206:1: warning: "dirfd" redefined
In file included from /u/NetBSD/src/tools/compat/compat_defs.h:118,
                 from /u/NetBSD/arch/amd64/obj/tools/compat/nbtool_config.h:137,
                 from /u/NetBSD/src/tools/compat/md5.h:4,
                 from /u/NetBSD/src/usr.bin/cksum/sha256.c:4:
/usr/include/dirent.h:70:1: warning: this is the location of the previous definition

*** Failed target:  sha256.lo
*** Failed command: cc -O -I/u/NetBSD/arch/amd64/obj/tools/compat -I/u/NetBSD/arch/amd64/obj/tools/compat/include -I/u/NetBSD/src/tools/cksum/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c -o sha256.lo.o /u/NetBSD/src/usr.bin/cksum/sha256.c
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/src/tools/cksum

*** Failed target:  dependall
*** Failed command: cd /u/NetBSD/src/tools/cksum; /u/NetBSD/arch/amd64/TOOLS/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /u/NetBSD/src/tools/cksum

*** Failed target:  dependall-cksum

-- 
===============================================================================
Dipl.-Inf. Kurt Schreiner               Tel.  : +49 6131 39 25134
Universitaetsbibliothek Mainz           Fax.  : +49 6131 39 24159 o. 23976
Jakob Welder Weg 6, 55128 Mainz         eMail : ks at ub.uni-mainz.de
===============================================================================