On 2016/01/28 0:56, Christos Zoulas wrote:
> In article <[email protected]>,
> Ryosuke Moro  <[email protected]> wrote:
>> Hi,
>>
>> fix build failure on NetBSD i386 at lease,
> 
> You must be using out of date sources because the build succeeds on autobuild.

I observed the same build failure with today's source codes.
The host is NetBSD/amd64 7.99.26.

This is because vsize_t became hidden from userland, recently.
I guess that the host of autobuild is an older NetBSD on which
vsize_t is still exposed to userland.

The better fix should be:

====
--- src/tools/libctf/Makefile.orig      2016-01-28 00:59:36.353099022 +0900
+++ src/tools/libctf/Makefile   2016-01-28 01:03:04.819802926 +0900
@@ -20,7 +20,7 @@
 OPENSOLARIS_DISTDIR= ${OSNETDIR}/dist
 LIBELF_DIR=    ${.CURDIR}/../../external/bsd/elftoolchain/dist/libelf
 
-CPPFLAGS+=     -DCTF_OLD_VERSIONS
+CPPFLAGS+=     -DCTF_OLD_VERSIONS -D_KERNTYPES
 
 .ifndef NOCOMPATLIB
 COMPATLIB_NO_LIB= yes # only the include files, not the library
====

Thanks,
Rin

Reply via email to