NetBSD-Bugs archive

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

misc/56781: fuse.h does not compile



>Number:         56781
>Category:       misc
>Synopsis:       fuse.h does not compile
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 05 20:00:00 +0000 2022
>Originator:     Peter Schinske
>Release:        9.2
>Organization:
Western Washington University
>Environment:
NetBSD localhost 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When I try to compile any c program that includes the "fuse.h" header, it does not compile.

Here is the GCC output:

In file included from /usr/include/puffs.h:44:0,                                                  
                 from /usr/include/fuse.h:41,                                                     
                 from main.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 main.c:1:                                                                   
/usr/include/puffs.h:225:27: error: unknown type name 'register_t'; did you mean '__register_t'?  
      puffs_cookie_t, int, register_t *);                                                         
                           ^~~~~~~~~~                                                             
                           __register_t                                                           
/usr/include/puffs.h:436:1: error: unknown type name 'register_t'; did you mean '__register_t'?   
 PUFFSOP_PROTOS(puffs_null) /* XXX */                                                             
 ^                                                                                                
/usr/include/puffs.h:505:20: error: unknown type name 'vsize_t'; did you mean 'ssize_t'?          
        enum vtype, vsize_t, dev_t);                                                              
                    ^~~~~~~                                                                       
                    ssize_t                                                                       
>How-To-Repeat:
Compile this file, which I've called main.c, with the command "gcc main.c":

#include <fuse.h>

int main() {
}
>Fix:
Looks like this might be a simple case of some missing typedefs... presumably the header file just needs something like "typedef __register_t register_t".

Including sys/types.h in main.c does not fix the problem.



Home | Main Index | Thread Index | Old Index