alperakcan/fuse-ext2

build faild on osx 10.11.3

Closed this issue · 1 comments

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in fuse-ext2
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT fuse-ext2.install.o -MD -MP -MF .deps/fuse-ext2.install.Tpo -c -o fuse-ext2.install.o fuse-ext2.install.m
In file included from fuse-ext2.install.m:55:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:82:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:14:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:797:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
uuid_string_t ext_jnl_uuid;
^
/usr/include/device/device_types.h:89:16: note: 'io_string_t' declared here
typedef char io_string_t[512];
^
In file included from fuse-ext2.install.m:55:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:82:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:14:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:208:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h:25:
/usr/include/hfs/hfs_format.h:799:20: error: use of undeclared identifier 'uuid_string_t'
char reserved[JIB_RESERVED_SIZE];
^
/usr/include/hfs/hfs_format.h:790:61: note: expanded from macro 'JIB_RESERVED_SIZE'

define JIB_RESERVED_SIZE ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)

                                                        ^

fuse-ext2.install.m:121:34: warning: 'NSErrorFailingURLStringKey' is deprecated: first deprecated in OS X
10.6 [-Wdeprecated-declarations]
[[error userInfo] objectForKey:NSErrorFailingURLStringKey]);
^
/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:47:36: note:
'NSErrorFailingURLStringKey' has been explicitly marked deprecated here
FOUNDATION_EXPORT NSString * const NSErrorFailingURLStringKey NS_DEPRECATED(10_0, 10_6, 2_0, 4_0);
^
fuse-ext2.install.m:163:39: warning: 'initWithRequest:delegate:' is deprecated: first deprecated in OS X
10.11 - Use NSURLSession downloadTask (see NSURLSession.h) [-Wdeprecated-declarations]
urlDownload = [[NSURLDownload alloc] initWithRequest:urlRequest delegate:self];
^
/System/Library/Frameworks/Foundation.framework/Headers/NSURLDownload.h:54:1: note:
'initWithRequest:delegate:' has been explicitly marked deprecated here

  • (instancetype)initWithRequest:(NSURLRequest _)request delegate:(nullable id <NSURLDownloadDelegate...
    ^
    fuse-ext2.install.m:163:75: warning: sending 'Installer *' to parameter of incompatible type
    'id Nullable'
    urlDownload = [[NSURLDownload alloc] initWithRequest:urlRequest delegate:self];
    ^~~~
    /System/Library/Frameworks/Foundation.framework/Headers/NSURLDownload.h:54:103: note: passing argument to
    parameter 'delegate' here
    ...
    )request delegate:(nullable id )delegate NS_DEPRECATED(10_3, 10_11, 2_0, 9_0...
    ^
    fuse-ext2.install.m:196:26: warning: 'sendSynchronousRequest:returningResponse:error:' is deprecated: first
    deprecated in OS X 10.11 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see
    NSURLSession.h [-Wdeprecated-declarations]
    data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
    ^
    /System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h:407:1: note:
    'sendSynchronousRequest:returningResponse:error:' has been explicitly marked deprecated here
  • (nullable NSData )sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLRespons...
    ^
    fuse-ext2.install.m:314:90: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
    ...runTaskForPath:@"/usr/local/bin/fuse-ext2.uninstall" withArguments:[NSArray arrayWithObjects:nil] ou...
    ^ ~~~
    5 warnings and 2 errors generated.
    make[2]: *
    * [fuse-ext2.install.o] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

oh,solve problem just conflick uuid/uuid.h in /usr/local/include/uuid/uuid.h
sudo mv /usr/local/include/uuid/uuid.h /usr/local/include/uuid/uuid.h.bak