You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building with GCC 8 works fine, but when I try clang 6 I get a whole list of missing typedef errors. Any idea how to solve those?
clang-6.0 -o build/Linux-x86_64/obj/src/operations/hfs_summary.o -c src/operations/hfs_summary.c -O3 -g -std=c1x -msse4.2 -Isrc -Ivendor -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_ISOC11_SOURCE -DNDEBUG
In file included from src/operations/hfs_summary.c:9:
In file included from src/operations/operations.h:13:
In file included from src/volumes/volume.h:14:
src/volumes/output.h:21:5: error: unknown type name 'bool'
bool decimal_sizes;
^
src/volumes/output.h:22:5: error: unknown type name 'uint8_t'
uint8_t _reserved[7];
^
src/volumes/output.h:26:26: error: unknown type name 'bool'
out_ctx OCMake (bool decimal_sizes, unsigned indent_step, char* prefix);
^
src/volumes/output.h:31:59: error: unknown type name 'uint64_t'
void _PrintDataLength (out_ctx* ctx, const char* label, uint64_t size);
^
src/volumes/output.h:66:33: error: unknown type name 'uint64_t'
int format_uint_oct (char* out, uint64_t value, uint8_t padding, size_t length);
^
src/volumes/output.h:66:49: error: unknown type name 'uint8_t'
int format_uint_oct (char* out, uint64_t value, uint8_t padding, size_t length);
^
src/volumes/output.h:67:33: error: unknown type name 'uint64_t'
int format_uint_dec (char* out, uint64_t value, uint8_t padding, size_t length);
^
src/volumes/output.h:67:49: error: unknown type name 'uint8_t'
int format_uint_dec (char* out, uint64_t value, uint8_t padding, size_t length);
^
src/volumes/output.h:68:33: error: unknown type name 'uint64_t'
int format_uint_hex (char* out, uint64_t value, uint8_t padding, size_t length);
^
src/volumes/output.h:68:49: error: unknown type name 'uint8_t'
int format_uint_hex (char* out, uint64_t value, uint8_t padding, size_t length);
^
In file included from src/operations/hfs_summary.c:9:
In file included from src/operations/operations.h:13:
In file included from src/volumes/volume.h:19:
In file included from src/hfs/types.h:16:
In file included from src/hfs/Apple/hfs_types.h:20:
src/hfs/Apple/hfs_format.h:781:2: error: unknown type name 'uuid_string_t'
uuid_string_t ext_jnl_uuid;
^
src/hfs/Apple/hfs_format.h:783:20: error: use of undeclared identifier 'uuid_string_t'; did you mean 'uuid_variant'?
char reserved[JIB_RESERVED_SIZE];
^
src/hfs/Apple/hfs_format.h:774:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
^
/opt/local/include/uuid/uuid.h:112:12: note: 'uuid_variant' declared here
extern int uuid_variant(const uuid_t uu);
^
In file included from src/operations/hfs_summary.c:9:
In file included from src/operations/operations.h:13:
In file included from src/volumes/volume.h:19:
In file included from src/hfs/types.h:18:
src/hfs/btree/btree.h:47:5: error: unknown type name 'FILE'
FILE* fp; // funopen handle
^
src/hfs/btree/btree.h:97:43: error: unknown type name 'FILE'
int btree_init (BTreePtr btree, FILE* fp) __attribute__((nonnull));
^
In file included from src/operations/hfs_summary.c:9:
In file included from src/operations/operations.h:13:
src/volumes/volume.h:66:5: error: unknown type name 'FILE'
FILE* fp; // C Stream pointer
^
In file included from src/operations/hfs_summary.c:9:
In file included from src/operations/operations.h:14:
In file included from src/hfs/hfs.h:14:
src/hfs/hfs_io.h:22:1: error: unknown type name 'FILE'
FILE* fopen_hfs (HFSPlus* hfs) __attribute__((nonnull));
^
src/hfs/hfs_io.h:34:1: error: unknown type name 'FILE'
FILE* fopen_hfsfork (HFSPlusFork* fork) __attribute__((nonnull));
^
In file included from src/operations/hfs_summary.c:9:
In file included from src/operations/operations.h:19:
In file included from src/logging/logging.h:12:
src/logging/debug.h:12:17: error: unknown type name 'FILE'
int print_trace(FILE* fp, unsigned offset) __attribute__((nonnull));
^
In file included from src/operations/hfs_summary.c:9:
src/operations/operations.h:53:5: error: unknown type name 'FILE'
FILE* extract_fp;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [build/Linux-x86_64/obj/src/operations/hfs_summary.o] Error 1
make: Leaving directory `/home/bertin/work/src/Scratch/hfsinspect-git'
Command exited with non-zero status 2
The text was updated successfully, but these errors were encountered:
Building with GCC 8 works fine, but when I try clang 6 I get a whole list of missing typedef errors. Any idea how to solve those?
The text was updated successfully, but these errors were encountered: