Temporary header file '/tmp/v_vBOfOEkx/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED // add includes #include "/usr/include/hfsplus/apple.h" #include "/usr/include/hfsplus/blockiter.h" #include "/usr/include/hfsplus/btree.h" #include "/usr/include/hfsplus/fscheck.h" #include "/usr/include/hfsplus/hfs.h" #include "/usr/include/hfsplus/hfsp.h" #include "/usr/include/hfsplus/hfstime.h" #include "/usr/include/hfsplus/libhfsp.h" #include "/usr/include/hfsplus/os.h" #include "/usr/include/hfsplus/partitions.h" #include "/usr/include/hfsplus/record.h" #include "/usr/include/hfsplus/swab.h" #include "/usr/include/hfsplus/unicode.h" #include "/usr/include/hfsplus/volume.h" // add classes hfsp_vh* tmp_add_class_0; volume* tmp_add_class_1; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/v_vBOfOEkx/dump1.h" In file included from /tmp/v_vBOfOEkx/dump1.h:12: /usr/include/hfsplus/blockiter.h:30:5: error: ‘volume’ does not name a type 30 | volume* vol; // volume we iterate over | ^~~~~~ /usr/include/hfsplus/blockiter.h:36:5: error: ‘hfsp_extent’ does not name a type 36 | hfsp_extent* file; // original extent record from file | ^~~~~~~~~~~ /usr/include/hfsplus/blockiter.h:37:5: error: ‘hfsp_extent’ does not name a type 37 | hfsp_extent* e; // current extentent under examination | ^~~~~~~~~~~ /usr/include/hfsplus/blockiter.h:41:5: error: ‘extent_record’ does not name a type 41 | extent_record er; // record to iterate in extents file. | ^~~~~~~~~~~~~ /usr/include/hfsplus/blockiter.h:45:42: error: ‘volume’ has not been declared 45 | extern void blockiter_init(blockiter* b, volume* vol, hfsp_fork_raw* f, | ^~~~~~ /usr/include/hfsplus/blockiter.h:45:55: error: ‘hfsp_fork_raw’ has not been declared 45 | extern void blockiter_init(blockiter* b, volume* vol, hfsp_fork_raw* f, | ^~~~~~~~~~~~~ In file included from /tmp/v_vBOfOEkx/dump1.h:13: /usr/include/hfsplus/btree.h:32:22: error: ‘btree_node_desc’ was not declared in this scope 32 | void* btree_readnode(btree_node_desc* node, void *p); | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/btree.h:32:39: error: ‘node’ was not declared in this scope 32 | void* btree_readnode(btree_node_desc* node, void *p); | ^~~~ /usr/include/hfsplus/btree.h:32:45: error: expected primary-expression before ‘void’ 32 | void* btree_readnode(btree_node_desc* node, void *p); | ^~~~ /usr/include/hfsplus/btree.h:38:22: error: ‘btree_head’ was not declared in this scope; did you mean ‘btree_readhead’? 38 | void* btree_readhead(btree_head* head, void *p); | ^~~~~~~~~~ | btree_readhead /usr/include/hfsplus/btree.h:38:34: error: ‘head’ was not declared in this scope 38 | void* btree_readhead(btree_head* head, void *p); | ^~~~ /usr/include/hfsplus/btree.h:38:40: error: expected primary-expression before ‘void’ 38 | void* btree_readhead(btree_head* head, void *p); | ^~~~ /usr/include/hfsplus/btree.h:41:13: error: variable or field ‘btree_reset’ declared void 41 | extern void btree_reset(btree* bt); | ^~~~~~~~~~~ /usr/include/hfsplus/btree.h:41:25: error: ‘btree’ was not declared in this scope 41 | extern void btree_reset(btree* bt); | ^~~~~ /usr/include/hfsplus/btree.h:41:32: error: ‘bt’ was not declared in this scope 41 | extern void btree_reset(btree* bt); | ^~ /usr/include/hfsplus/btree.h:44:27: error: ‘btree’ was not declared in this scope 44 | extern int btree_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~ /usr/include/hfsplus/btree.h:44:34: error: ‘bt’ was not declared in this scope 44 | extern int btree_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~ /usr/include/hfsplus/btree.h:44:38: error: ‘volume’ was not declared in this scope 44 | extern int btree_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~ /usr/include/hfsplus/btree.h:44:46: error: ‘vol’ was not declared in this scope 44 | extern int btree_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~ /usr/include/hfsplus/btree.h:44:51: error: ‘hfsp_fork_raw’ was not declared in this scope 44 | extern int btree_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~~~~~~~~ /usr/include/hfsplus/btree.h:44:66: error: ‘fork’ was not declared in this scope 44 | extern int btree_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~ /usr/include/hfsplus/btree.h:47:30: error: ‘btree’ was not declared in this scope 47 | extern int btree_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~ /usr/include/hfsplus/btree.h:47:37: error: ‘bt’ was not declared in this scope 47 | extern int btree_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~ /usr/include/hfsplus/btree.h:47:41: error: ‘volume’ was not declared in this scope 47 | extern int btree_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~ /usr/include/hfsplus/btree.h:47:49: error: ‘vol’ was not declared in this scope 47 | extern int btree_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~ /usr/include/hfsplus/btree.h:47:54: error: ‘hfsp_fork_raw’ was not declared in this scope 47 | extern int btree_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~~~~~~~~ /usr/include/hfsplus/btree.h:47:69: error: ‘fork’ was not declared in this scope 47 | extern int btree_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~ /usr/include/hfsplus/btree.h:50:24: error: ‘btree’ was not declared in this scope 50 | extern int btree_close(btree* bt); | ^~~~~ /usr/include/hfsplus/btree.h:50:31: error: ‘bt’ was not declared in this scope 50 | extern int btree_close(btree* bt); | ^~ /usr/include/hfsplus/btree.h:56:8: error: ‘node_buf’ does not name a type 56 | extern node_buf* btree_node_by_index(btree* bt, UInt16 index, int flags); | ^~~~~~~~ /usr/include/hfsplus/btree.h:59:33: error: ‘btree’ was not declared in this scope 59 | extern void* btree_key_by_index(btree* bt, node_buf* buf, UInt16 index); | ^~~~~ /usr/include/hfsplus/btree.h:59:40: error: ‘bt’ was not declared in this scope 59 | extern void* btree_key_by_index(btree* bt, node_buf* buf, UInt16 index); | ^~ /usr/include/hfsplus/btree.h:59:44: error: ‘node_buf’ was not declared in this scope 59 | extern void* btree_key_by_index(btree* bt, node_buf* buf, UInt16 index); | ^~~~~~~~ /usr/include/hfsplus/btree.h:59:54: error: ‘buf’ was not declared in this scope 59 | extern void* btree_key_by_index(btree* bt, node_buf* buf, UInt16 index); | ^~~ /usr/include/hfsplus/btree.h:59:66: error: expected primary-expression before ‘index’ 59 | extern void* btree_key_by_index(btree* bt, node_buf* buf, UInt16 index); | ^~~~~ /usr/include/hfsplus/btree.h:63:32: error: ‘btree’ was not declared in this scope 63 | extern int btree_remove_record(btree* bt, UInt16 node_index, UInt16 recind); | ^~~~~ /usr/include/hfsplus/btree.h:63:39: error: ‘bt’ was not declared in this scope 63 | extern int btree_remove_record(btree* bt, UInt16 node_index, UInt16 recind); | ^~ /usr/include/hfsplus/btree.h:63:50: error: expected primary-expression before ‘node_index’ 63 | extern int btree_remove_record(btree* bt, UInt16 node_index, UInt16 recind); | ^~~~~~~~~~ /usr/include/hfsplus/btree.h:63:69: error: expected primary-expression before ‘recind’ 63 | extern int btree_remove_record(btree* bt, UInt16 node_index, UInt16 recind); | ^~~~~~ /usr/include/hfsplus/btree.h:67:32: error: ‘btree’ was not declared in this scope 67 | extern int btree_insert_record(btree* bt, UInt16 node_index, UInt16 keyind, | ^~~~~ /usr/include/hfsplus/btree.h:67:39: error: ‘bt’ was not declared in this scope 67 | extern int btree_insert_record(btree* bt, UInt16 node_index, UInt16 keyind, | ^~ /usr/include/hfsplus/btree.h:67:50: error: expected primary-expression before ‘node_index’ 67 | extern int btree_insert_record(btree* bt, UInt16 node_index, UInt16 keyind, | ^~~~~~~~~~ /usr/include/hfsplus/btree.h:67:69: error: expected primary-expression before ‘keyind’ 67 | extern int btree_insert_record(btree* bt, UInt16 node_index, UInt16 keyind, | ^~~~~~ /usr/include/hfsplus/btree.h:68:25: error: expected primary-expression before ‘void’ 68 | void* key, int len); | ^~~~ /usr/include/hfsplus/btree.h:68:36: error: expected primary-expression before ‘int’ 68 | void* key, int len); | ^~~ /usr/include/hfsplus/btree.h:86:28: error: ‘node_cache’ was not declared in this scope; did you mean ‘node_cache_init’? 86 | extern int node_cache_init(node_cache* cache, btree* tree, int size); | ^~~~~~~~~~ | node_cache_init /usr/include/hfsplus/btree.h:86:40: error: ‘cache’ was not declared in this scope 86 | extern int node_cache_init(node_cache* cache, btree* tree, int size); | ^~~~~ /usr/include/hfsplus/btree.h:86:47: error: ‘btree’ was not declared in this scope 86 | extern int node_cache_init(node_cache* cache, btree* tree, int size); | ^~~~~ /usr/include/hfsplus/btree.h:86:54: error: ‘tree’ was not declared in this scope 86 | extern int node_cache_init(node_cache* cache, btree* tree, int size); | ^~~~ /usr/include/hfsplus/btree.h:86:60: error: expected primary-expression before ‘int’ 86 | extern int node_cache_init(node_cache* cache, btree* tree, int size); | ^~~ /usr/include/hfsplus/btree.h:89:34: error: ‘btree’ was not declared in this scope 89 | extern int btree_check_nodealloc(btree* bt, UInt16 node); | ^~~~~ /usr/include/hfsplus/btree.h:89:41: error: ‘bt’ was not declared in this scope 89 | extern int btree_check_nodealloc(btree* bt, UInt16 node); | ^~ /usr/include/hfsplus/btree.h:89:52: error: expected primary-expression before ‘node’ 89 | extern int btree_check_nodealloc(btree* bt, UInt16 node); | ^~~~ In file included from /tmp/v_vBOfOEkx/dump1.h:14: /usr/include/hfsplus/fscheck.h:63:29: error: ‘volume’ was not declared in this scope 63 | extern UInt32 minimal_check(volume* vol); | ^~~~~~ /usr/include/hfsplus/fscheck.h:63:37: error: ‘vol’ was not declared in this scope 63 | extern UInt32 minimal_check(volume* vol); | ^~~ /usr/include/hfsplus/fscheck.h:80:13: error: variable or field ‘print_fork’ declared void 80 | extern void print_fork(hfsp_fork_raw* f); | ^~~~~~~~~~ /usr/include/hfsplus/fscheck.h:80:24: error: ‘hfsp_fork_raw’ was not declared in this scope 80 | extern void print_fork(hfsp_fork_raw* f); | ^~~~~~~~~~~~~ /usr/include/hfsplus/fscheck.h:80:39: error: ‘f’ was not declared in this scope 80 | extern void print_fork(hfsp_fork_raw* f); | ^ /usr/include/hfsplus/fscheck.h:86:28: error: ‘volume’ was not declared in this scope 86 | extern int check_forkalloc(volume* vol, hfsp_fork_raw* fork); | ^~~~~~ /usr/include/hfsplus/fscheck.h:86:36: error: ‘vol’ was not declared in this scope 86 | extern int check_forkalloc(volume* vol, hfsp_fork_raw* fork); | ^~~ /usr/include/hfsplus/fscheck.h:86:41: error: ‘hfsp_fork_raw’ was not declared in this scope 86 | extern int check_forkalloc(volume* vol, hfsp_fork_raw* fork); | ^~~~~~~~~~~~~ /usr/include/hfsplus/fscheck.h:86:56: error: ‘fork’ was not declared in this scope 86 | extern int check_forkalloc(volume* vol, hfsp_fork_raw* fork); | ^~~~ /usr/include/hfsplus/fscheck.h:91:22: error: ‘btree’ was not declared in this scope 91 | int fscheck_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~ /usr/include/hfsplus/fscheck.h:91:29: error: ‘bt’ was not declared in this scope 91 | int fscheck_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~ /usr/include/hfsplus/fscheck.h:91:33: error: ‘volume’ was not declared in this scope 91 | int fscheck_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~ /usr/include/hfsplus/fscheck.h:91:41: error: ‘vol’ was not declared in this scope 91 | int fscheck_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~ /usr/include/hfsplus/fscheck.h:91:46: error: ‘hfsp_fork_raw’ was not declared in this scope 91 | int fscheck_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~~~~~~~~ /usr/include/hfsplus/fscheck.h:91:61: error: ‘fork’ was not declared in this scope 91 | int fscheck_init_cat(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~ /usr/include/hfsplus/fscheck.h:94:25: error: ‘btree’ was not declared in this scope 94 | int fscheck_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~ /usr/include/hfsplus/fscheck.h:94:32: error: ‘bt’ was not declared in this scope 94 | int fscheck_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~ /usr/include/hfsplus/fscheck.h:94:36: error: ‘volume’ was not declared in this scope 94 | int fscheck_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~ /usr/include/hfsplus/fscheck.h:94:44: error: ‘vol’ was not declared in this scope 94 | int fscheck_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~ /usr/include/hfsplus/fscheck.h:94:49: error: ‘hfsp_fork_raw’ was not declared in this scope 94 | int fscheck_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~~~~~~~~~~ /usr/include/hfsplus/fscheck.h:94:64: error: ‘fork’ was not declared in this scope 94 | int fscheck_init_extent(btree* bt, volume* vol, hfsp_fork_raw* fork); | ^~~~ /usr/include/hfsplus/fscheck.h:97:19: error: ‘btree’ was not declared in this scope 97 | int fscheck_btree(btree *bt); | ^~~~~ /usr/include/hfsplus/fscheck.h:97:26: error: ‘bt’ was not declared in this scope 97 | int fscheck_btree(btree *bt); | ^~ /usr/include/hfsplus/fscheck.h:100:19: error: ‘volume’ was not declared in this scope 100 | int fscheck_files(volume* vol); | ^~~~~~ /usr/include/hfsplus/fscheck.h:100:27: error: ‘vol’ was not declared in this scope 100 | int fscheck_files(volume* vol); | ^~~ In file included from /usr/include/hfsplus/libhfsp.h:32, from /tmp/v_vBOfOEkx/dump1.h:18: /usr/include/hfsplus/hfsp.h:50:3: error: conflicting declaration ‘typedef struct hfsp_perm hfsp_perm’ 50 | } hfsp_perm; | ^~~~~~~~~ In file included from /tmp/v_vBOfOEkx/dump1.h:16: /usr/include/hfsplus/hfsp.h:50:3: note: previous declaration as ‘typedef struct hfsp_perm hfsp_perm’ 50 | } hfsp_perm; | ^~~~~~~~~ /usr/include/hfsplus/hfsp.h:56:3: error: conflicting declaration ‘typedef struct hfsp_extent hfsp_extent’ 56 | } hfsp_extent; | ^~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:56:3: note: previous declaration as ‘typedef struct hfsp_extent hfsp_extent’ 56 | } hfsp_extent; | ^~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:71:3: error: conflicting declaration ‘typedef struct hfsp_fork_raw hfsp_fork_raw’ 71 | } hfsp_fork_raw; | ^~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:71:3: note: previous declaration as ‘typedef struct hfsp_fork_raw hfsp_fork_raw’ 71 | } hfsp_fork_raw; | ^~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:77:16: error: redefinition of ‘struct hfsp_vh’ 77 | typedef struct hfsp_vh { | ^~~~~~~ /usr/include/hfsplus/hfsp.h:77:16: note: previous definition of ‘struct hfsp_vh’ 77 | typedef struct hfsp_vh { | ^~~~~~~ /usr/include/hfsplus/hfsp.h:125:3: error: conflicting declaration ‘typedef int hfsp_vh’ 125 | } hfsp_vh; | ^~~~~~~ /usr/include/hfsplus/hfsp.h:125:3: note: previous declaration as ‘typedef struct hfsp_vh hfsp_vh’ 125 | } hfsp_vh; | ^~~~~~~ /usr/include/hfsplus/hfsp.h:154:3: error: conflicting declaration ‘typedef struct btree_node_desc btree_node_desc’ 154 | } btree_node_desc; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:154:3: note: previous declaration as ‘typedef struct btree_node_desc btree_node_desc’ 154 | } btree_node_desc; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:197:3: error: conflicting declaration ‘typedef struct btree_head btree_head’ 197 | } btree_head; | ^~~~~~~~~~ /usr/include/hfsplus/hfsp.h:197:3: note: previous declaration as ‘typedef struct btree_head btree_head’ 197 | } btree_head; | ^~~~~~~~~~ /usr/include/hfsplus/hfsp.h:229:3: error: conflicting declaration ‘typedef struct hfsp_unistr255 hfsp_unistr255’ 229 | } hfsp_unistr255; | ^~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:229:3: note: previous declaration as ‘typedef struct hfsp_unistr255 hfsp_unistr255’ 229 | } hfsp_unistr255; | ^~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:235:3: error: conflicting declaration ‘typedef struct hfsp_key hfsp_key’ 235 | } hfsp_key; | ^~~~~~~~ /usr/include/hfsplus/hfsp.h:235:3: note: previous declaration as ‘typedef struct hfsp_key hfsp_key’ 235 | } hfsp_key; | ^~~~~~~~ /usr/include/hfsplus/hfsp.h:242:3: error: conflicting declaration ‘typedef struct hfsp_cat_key hfsp_cat_key’ 242 | } hfsp_cat_key; | ^~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:242:3: note: previous declaration as ‘typedef struct hfsp_cat_key hfsp_cat_key’ 242 | } hfsp_cat_key; | ^~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:251:3: error: conflicting declaration ‘typedef struct hfsp_extent_key hfsp_extent_key’ 251 | } hfsp_extent_key; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:251:3: note: previous declaration as ‘typedef struct hfsp_extent_key hfsp_extent_key’ 251 | } hfsp_extent_key; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:285:3: error: conflicting declaration ‘typedef struct hfsp_cat_folder hfsp_cat_folder’ 285 | } hfsp_cat_folder; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:285:3: note: previous declaration as ‘typedef struct hfsp_cat_folder hfsp_cat_folder’ 285 | } hfsp_cat_folder; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:307:3: error: conflicting declaration ‘typedef struct hfsp_cat_file hfsp_cat_file’ 307 | } hfsp_cat_file; | ^~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:307:3: note: previous declaration as ‘typedef struct hfsp_cat_file hfsp_cat_file’ 307 | } hfsp_cat_file; | ^~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:320:3: error: conflicting declaration ‘typedef struct hfsp_cat_thread hfsp_cat_thread’ 320 | } hfsp_cat_thread; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:320:3: note: previous declaration as ‘typedef struct hfsp_cat_thread hfsp_cat_thread’ 320 | } hfsp_cat_thread; | ^~~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:331:3: error: conflicting declaration ‘typedef struct hfsp_cat_entry hfsp_cat_entry’ 331 | } hfsp_cat_entry; | ^~~~~~~~~~~~~~ /usr/include/hfsplus/hfsp.h:331:3: note: previous declaration as ‘typedef struct hfsp_cat_entry hfsp_cat_entry’ 331 | } hfsp_cat_entry; | ^~~~~~~~~~~~~~