gnustep-dev
[Top][All Lists]
Advanced

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

base fails to compile with gcc


From: Riccardo Mottola
Subject: base fails to compile with gcc
Date: Thu, 14 Nov 2019 21:55:41 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5

Hi,

our base is not compiling on Debian with current gcc 9.2.

The latter errors are certainly for Blocks being used enyway, but the first error about NSSet confuses me. I fixed NSError not being found because a missing header, but that is not enough.


Making all for library libgnustep-base...
 Compiling file NSXPCConnection.m ...
In file included from NSXPCConnection.m:25:
../Headers/Foundation/NSXPCConnection.h:36:62: error: expected ‘;’ before ‘<’ token    36 | @class NSMutableDictionary, NSString, NSOperationQueue, NSSet<ObjectType>, NSLock, NSError;
      | ^
      | ;
In file included from ../Headers/Foundation/NSObjCRuntime.h:41,
                 from ../Headers/Foundation/NSObject.h:30,
                 from ../Headers/Foundation/NSXPCConnection.h:28,
                 from NSXPCConnection.m:25:
../Headers/Foundation/NSXPCConnection.h:40:49: error: unknown type name ‘NSError’
   40 | DEFINE_BLOCK_TYPE(GSXPCProxyErrorHandler, void, NSError *);
      |                                                 ^~~~~~~
../Headers/GNUstepBase/GSBlocks.h:68:28: note: in definition of macro ‘DEFINE_BLOCK_TYPE’
   68 |     retTy (*invoke)(void*, argTys, ## __VA_ARGS__);\
      |                            ^~~~~~
../Headers/GNUstepBase/GSBlocks.h:69:3: warning: no semicolon at end of struct or union
   69 |   } *name
      |   ^
../Headers/Foundation/NSXPCConnection.h:40:1: note: in expansion of macro ‘DEFINE_BLOCK_TYPE’
   40 | DEFINE_BLOCK_TYPE(GSXPCProxyErrorHandler, void, NSError *);
      | ^~~~~~~~~~~~~~~~~
../Headers/Foundation/NSXPCConnection.h:41:51: error: ‘void’ must be the only parameter
   41 | DEFINE_BLOCK_TYPE(GSXPCInterruptionHandler, void, void);
      |                                                   ^~~~
../Headers/GNUstepBase/GSBlocks.h:68:28: note: in definition of macro ‘DEFINE_BLOCK_TYPE’
   68 |     retTy (*invoke)(void*, argTys, ## __VA_ARGS__);\
      |                            ^~~~~~
../Headers/Foundation/NSXPCConnection.h:42:51: error: ‘void’ must be the only parameter
   42 | DEFINE_BLOCK_TYPE(GSXPCInvalidationHandler, void, void);
      |                                                   ^~~~
../Headers/GNUstepBase/GSBlocks.h:68:28: note: in definition of macro ‘DEFINE_BLOCK_TYPE’
   68 |     retTy (*invoke)(void*, argTys, ## __VA_ARGS__);\
      |                            ^~~~~~
In file included from NSXPCConnection.m:25:
../Headers/Foundation/NSXPCConnection.h:85:49: error: expected ‘)’ before ‘^’ token    85 | - (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
      |                                                 ^
      |                                                 )
../Headers/Foundation/NSXPCConnection.h:85:51: error: expected ‘)’ before ‘(’ token    85 | - (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
      |                                                   ^
      |                                                   )
../Headers/Foundation/NSXPCConnection.h:87:60: error: expected ‘)’ before ‘^’ token    87 | - (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
      |                                                            ^
      |                                                            )
../Headers/Foundation/NSXPCConnection.h:87:62: error: expected ‘)’ before ‘(’ token    87 | - (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
      | ^
      | )
NSXPCConnection.m:90:49: error: expected ‘)’ before ‘^’ token
   90 | - (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
      |                                                 ^
      |                                                 )
NSXPCConnection.m:90:51: error: expected ‘)’ before ‘(’ token
   90 | - (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
      |                                                   ^
      |                                                   )
NSXPCConnection.m:95:60: error: expected ‘)’ before ‘^’ token
   95 | - (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
      |                                                            ^
      |                                                            )
NSXPCConnection.m:95:62: error: expected ‘)’ before ‘(’ token
   95 | - (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
      | ^
      | )
make[4]: *** [/System/Library/Makefiles/rules.make:479: obj/libgnustep-base.obj/NSXPCConnection.m.o] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]