Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch: src/external/cddl/osnet/sys/sys/types.h



Hi,

fix build failure on NetBSD i386 at lease,

Index: types.h
===================================================================
RCS file: /cvsroot/src/external/cddl/osnet/sys/sys/types.h,v
retrieving revision 1.13
diff -u -p -r1.13 types.h
--- types.h	12 Dec 2013 18:20:49 -0000	1.13
+++ types.h	27 Jan 2016 12:22:57 -0000
@@ -90,9 +90,10 @@
 #ifdef __APPLE__
 typedef int64_t longlong_t;
 typedef uint64_t u_longlong_t;
-typedef unsigned long vsize_t;
 #endif
 
+typedef unsigned long vsize_t;
+
 typedef unsigned int	size32_t;
 typedef unsigned int	caddr32_t;


without this rough patch you have this error:

--- ctf_decl.lo ---
In file included from /usr/src/tools/libctf/../compat/compat_defs.h:35:0,
                 from /usr/src/obj/tooldir.NetBSD-7.99.26-i386/include/compat/nbtool_config.h:720,
                 from /usr/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_decl.c:23:
/usr/src/tools/libctf/../../external/cddl/osnet/sys/sys/types.h:118:1: error: unknown type name 'vsize_t'
 typedef vsize_t  pgcnt_t;
 ^
--- ctf_hash.lo ---
In file included from /usr/src/tools/libctf/../compat/compat_defs.h:35:0,
                 from /usr/src/obj/tooldir.NetBSD-7.99.26-i386/include/compat/nbtool_config.h:720,
                 from /usr/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_hash.c:24:
/usr/src/tools/libctf/../../external/cddl/osnet/sys/sys/types.h:118:1: error: unknown type name 'vsize_t'
 typedef vsize_t  pgcnt_t;
 ^
--- ctf_create.lo ---
In file included from /usr/src/tools/libctf/../compat/compat_defs.h:35:0,
                 from /usr/src/obj/tooldir.NetBSD-7.99.26-i386/include/compat/nbtool_config.h:720,
                 from /usr/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c:23:
/usr/src/tools/libctf/../../external/cddl/osnet/sys/sys/types.h:118:1: error: unknown type name 'vsize_t'
 typedef vsize_t  pgcnt_t;
 ^
--- ctf_error.lo ---
In file included from /usr/src/tools/libctf/../compat/compat_defs.h:35:0,
                 from /usr/src/obj/tooldir.NetBSD-7.99.26-i386/include/compat/nbtool_config.h:720,
                 from /usr/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_error.c:23:
/usr/src/tools/libctf/../../external/cddl/osnet/sys/sys/types.h:118:1: error: unknown type name 'vsize_t'
 typedef vsize_t  pgcnt_t;
 ^
--- ctf_hash.lo ---
*** [ctf_hash.lo] Error code 1

nbmake[3]: stopped in /usr/src/tools/libctf
--- ctf_error.lo ---
*** [ctf_error.lo] Error code 1

nbmake[3]: stopped in /usr/src/tools/libctf
--- ctf_create.lo ---
*** [ctf_create.lo] Error code 1

nbmake[3]: stopped in /usr/src/tools/libctf
--- ctf_decl.lo ---
*** [ctf_decl.lo] Error code 1

nbmake[3]: stopped in /usr/src/tools/libctf
4 errors

nbmake[3]: stopped in /usr/src/tools/libctf
*** [dependall] Error code 2

nbmake[2]: stopped in /usr/src/tools/libctf
1 error

nbmake[2]: stopped in /usr/src/tools/libctf

*** Failed target:  dependall-libctf
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src/tools" ;; *) this="${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-7.99.26-i386/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libctf dependall
*** Error code 2

Stop.
nbmake[1]: stopped in /usr/src/tools
*** [build_install] Error code 1

nbmake: stopped in /usr/src/tools
1 error

nbmake: stopped in /usr/src/tools

ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***

Thanks
-- 
Ryosuke


Home | Main Index | Thread Index | Old Index