NetBSD Problem Report #52422

From www@NetBSD.org  Thu Jul 20 14:29:50 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E10C77A183
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 20 Jul 2017 14:29:49 +0000 (UTC)
Message-Id: <20170720142948.AA8817A282@mollari.NetBSD.org>
Date: Thu, 20 Jul 2017 14:29:48 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: fuse.h cannot be included by itself
X-Send-Pr-Version: www-1.0

>Number:         52422
>Category:       misc
>Synopsis:       fuse.h cannot be included by itself
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 20 14:30:00 +0000 2017
>Originator:     coypu
>Release:        NetBSD 8.99.1
>Organization:
>Environment:
NetBSD loggy 8.99.1 NetBSD 8.99.1 (GENERIC) #82: Thu Jun 22 15:45:33 IDT 2017  fly@loggy:/home/fly/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
$ cat mygreatfilesystem.c
#include <fuse.h>
int main() { return 0; }

$ gcc mygreatfilesystem.c 
In file included from /usr/include/puffs.h:44:0,
                 from /usr/include/fuse.h:41,
                 from mygreatfilesystem.c:1:
/usr/include/fs/puffs/puffs_msgif.h:595:2: error: unknown type name ‘register_t’
  register_t  pvnr_retval;  /* IN */
  ^
In file included from /usr/include/fuse.h:41:0,
                 from mygreatfilesystem.c:1:
/usr/include/puffs.h:225:27: error: unknown type name ‘register_t’
      puffs_cookie_t, int, register_t *);
                           ^
/usr/include/puffs.h:436:1: error: unknown type name ‘register_t’
 PUFFSOP_PROTOS(puffs_null) /* XXX */
 ^
/usr/include/puffs.h:505:20: error: unknown type name ‘vsize_t’
        enum vtype, vsize_t, dev_t); 
                    ^


as a workaround, define _KMEMUSER. not ideal.
>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.