Here is a snippet form my log of the build failure:
#   compile  libctf/ctf_create.lo
...
In file included from 
/home/chuckz/netbsd-current/src/tools/libctf/../compat/compat_defs.h:75:0,
                 from 
/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include/compat/nbtool_config.h:882,
                 from 
/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c:23:
/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/uts/common/rpc/types.h:57:9: 
error: unknown type name 'u_longlong_t'
 typedef u_longlong_t ulonglong_t;
         ^
*** Failed target:  ctf_create.lo
*** Failed command: cc -O -DCTF_OLD_VERSIONS 
-I/home/chuckz/netbsd-current/src/tools/libctf/../compat 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/sys 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/include 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/head 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/lib/libctf/common 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/uts/common 
-I/home/chuckz/netbsd-current/src/tools/libctf/../../external/bsd/elftoolchain/dist/libelf 
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 
-I/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include/compat 
-I/home/chuckz/netbsd-current/src/tools/compat 
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 
-I/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include 
-I/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/include/nbinclude 
-c -o ctf_create.lo.o 
/home/chuckz/netbsd-current/src/tools/libctf/../../external/cddl/osnet/dist/common/ctf/ctf_create.c
*** Error code 1
Stop.
nbmake[3]: stopped in /home/chuckz/netbsd-current/src/tools/libctf
*** Failed target:  dependall
*** Failed command: cd "/home/chuckz/netbsd-current/src/tools/libctf"; 
/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/bin/nbmake 
realall
*** Error code 1
Stop.
nbmake[2]: stopped in /home/chuckz/netbsd-current/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="/home/chuckz/netbsd-current/src/tools" ;; *) 
this="${dir}/"; real="/home/chuckz/netbsd-current/src/tools/${dir}" ;; 
esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: 
$@)}"; cd "${real}" && 
/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/bin/nbmake 
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libctf dependall
*** Error code 1
Stop.
nbmake[1]: stopped in /home/chuckz/netbsd-current/src/tools
*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) 
this=""; real="/home/chuckz/netbsd-current/src/tools" ;; *) 
this="${dir}/"; real="/home/chuckz/netbsd-current/src/tools/${dir}" ;; 
esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: 
$@)}"; cd "${real}" && 
/home/chuckz/netbsd-current/obj.amd64/home/chuckz/netbsd-current/src/tooldir.Linux-3.16.0-6-amd64-x86_64/bin/nbmake 
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-libctf
*** Error code 1
Stop.
nbmake: stopped in /home/chuckz/netbsd-current/src/tools
ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***
Chuck
On 06/04/2018 03:52 AM, Valery Ushakov wrote:
On Sun, Jun 03, 2018 at 18:16:47 -0700, Chuck Silvers wrote:
/home/uwe/work/netbsd/ro/src/tools/libctf/../../external/cddl/osnet/dist/uts/common/rpc/types.h:57:9: 
error: unknown type name 'u_longlong_t'
  typedef u_longlong_t ulonglong_t;
          ^
I was afraid that might happen...
which distribution and version of linux was that on?
the one I did my fix for linux on was fedora 26.
Sorry, I should have been specific.  It's on Ubuntu 16.04 LTS.
-uwe