On 16/05/09 17:12, David Chisnall wrote:
> This is currently broken on GNU platforms.  If you can figure out the  
> combination of feature macros that's needed to let the code compile,  
> let me know,

The most succinct fix I could find was:

-${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=2
+${FRAMEWORK_NAME}_CPPFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE

plus this tweak in BlockClosure+debug.m:

-static void segv(int sig, struct __siginfo *info, void *addr)
+static void segv(int sig, siginfo_t *info, void *addr)

Is that sane?

> otherwise comment out that file in the GNUmakefile.
> 
> David
> 
> On 16 May 2009, at 16:19, Gregory Casamento wrote:
> 
>> Build Project: LanguageKitRuntime
>>
>> Making all for framework LanguageKitRuntime...
>> Compiling file BigInt.m ...
>> Compiling file BlockClosure.m ...
>> Compiling file BlockClosure+debug.m ...
>> In file included from /usr/include/ucontext.h:27,
>>                 from BlockClosure+debug.m:4:
>> /usr/include/sys/ucontext.h:139: error: expected specifier-qualifier- 
>> list before ‘stack_t’
>> cc1obj: warnings being treated as errors
>> BlockClosure+debug.m:34: warning: ‘struct __siginfo’ declared  
>> inside parameter list
>> BlockClosure+debug.m:34: warning: its scope is only this definition  
>> or declaration, which is probably not what you want
>> BlockClosure+debug.m: In function ‘+[BlockClosure(Debug)  
>> stackContexts]’:
>> BlockClosure+debug.m:82: error: ‘struct sigaction’ has no member  
>> named ‘sa_sigaction’
>> make[5]: *** [obj/BlockClosure+debug.m.o] Error 1
>> make[4]: *** [internal-framework-run-compile-submake] Error 2
>> make[3]: *** [LanguageKitRuntime.all.framework.variables] Error 2
>>
>> NOTE: I'm not entirely sure if this is supposed to be used with the  
>> libobjc runtime, so bear with me if I'm off base here. :)
>>
>> GC



_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à