discuss-gnustep
[Top][All Lists]
Advanced

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

Re: weak redefinition


From: David Chisnall
Subject: Re: weak redefinition
Date: Fri, 10 Apr 2015 11:27:08 +0100

It appears that all NetBSD headers are incompatible with Objective-C.  Probably 
worth filing a bug with them - this is even harder to work around than the 
glibc issue of using __block as a variable name.

David

> On 9 Apr 2015, at 21:20, Riccardo Mottola <riccardo.mottola@libero.it> wrote:
> 
> Hi,
> 
> I get this while compiling on NetBSD "unstable", while compiling about any 
> GNUstep file:
> 
> Compiling file main.m ...
> In file included from 
> /System/Library/Headers/GNUstepBase/GSVersionMacros.h:219:0,
>                 from /System/Library/Headers/AppKit/AppKit.h:32,
>                 from main.m:25:
> /System/Library/Headers/GNUstepBase/GSConfig.h:417:0: warning: "__weak" 
> redefined [enabled by default]
> #    define __weak
> ^
> In file included from /usr/include/sys/cdefs.h:60:0,
>                 from /usr/include/inttypes.h:35,
>                 from /System/Library/Headers/GNUstepBase/GSConfig.h:154,
>                 from 
> /System/Library/Headers/GNUstepBase/GSVersionMacros.h:219,
>                 from /System/Library/Headers/AppKit/AppKit.h:32,
>                 from main.m:25:
> /usr/include/sys/cdefs_elf.h:68:0: note: this is the location of the previous 
> definition
> #define __weak __attribute__((__weak__))
> ^
> 
> do you think this is "our" problem or NetBSD is exposing something?
> 
> I though we had a test for weak, but I can't find it.
> 
> Riccardo
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep



--
This email complies with ISO 3103




reply via email to

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