discuss-gnustep
[Top][All Lists]
Advanced

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

Re: libobjc2 broken in current git


From: Andreas Fink
Subject: Re: libobjc2 broken in current git
Date: Tue, 22 May 2018 09:46:46 +0200


> On 22 May 2018, at 09:45, Andreas Fink <afink@list.fink.org> wrote:
> 
> The current git version of libobjc2 seems broken
> 
> The version I used before (commit 14889c540fe7da84080aaa87342df40e0a7091e7)  
> worked.
> The current one spills out a lot of undefined header stuff 
> 
> for example  in
> 
> extern struct objc_slot_v1 *objc_get_slot(Class, SEL)
>        OBJC_NONPORTABLE OBJC_DEPRECATED;t
> 
> 
> 
> it doesnt know anything about objc_slot_v1 and thus failes.
> 
> 


this is what I get when compiling gnustep-base


This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all in Source ...
Making all in Additions ...
Making all for subproject Additions...
 Compiling file GSObjCRuntime.m ...
GSObjCRuntime.m:61:26: error: conflicting types for 'objc_get_slot'
extern struct objc_slot *objc_get_slot(Class, SEL);
                         ^
/usr/local/include/objc/runtime.h:865:29: note: previous declaration is here
extern struct objc_slot_v1 *objc_get_slot(Class, SEL)
                            ^
GSObjCRuntime.m:1426:18: warning: incompatible pointer types assigning to 
'struct objc_slot *' from 'struct objc_slot_v1 *' [-Wincompatible-pointer-types]
              type_slot = objc_get_slot(cls, @selector(retain));
                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GSObjCRuntime.m:1428:13: warning: incompatible pointer types assigning to 
'struct objc_slot *' from 'struct objc_slot_v1 *' [-Wincompatible-pointer-types]
              slot = objc_get_slot(cls, typed);
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
GSObjCRuntime.m:1429:25: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                         ~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:110:29: note: expanded from macro 
'strcmp'
     (__builtin_constant_p (s1) && __builtin_constant_p (s2)                  \
                            ^~
GSObjCRuntime.m:1429:43: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                                      ~~~~~~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:110:58: note: expanded from macro 
'strcmp'
     (__builtin_constant_p (s1) && __builtin_constant_p (s2)                  \
                                                         ^~
GSObjCRuntime.m:1429:25: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                         ~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:111:40: note: expanded from macro 
'strcmp'
      && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \
                                       ^~
GSObjCRuntime.m:1429:43: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                                      ~~~~~~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:111:74: note: expanded from macro 
'strcmp'
      && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \
                                                                         ^~
GSObjCRuntime.m:1429:25: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                         ~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:112:25: note: expanded from macro 
'strcmp'
          (!__string2_1bptr_p (s1) || __s1_len >= 4)                          \
                               ^~
/usr/include/x86_64-linux-gnu/bits/string2.h:53:28: note: expanded from macro 
'__string2_1bptr_p'
  ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
                           ^~~
GSObjCRuntime.m:1429:25: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                         ~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:112:25: note: expanded from macro 
'strcmp'
          (!__string2_1bptr_p (s1) || __s1_len >= 4)                          \
                               ^~
/usr/include/x86_64-linux-gnu/bits/string2.h:53:63: note: expanded from macro 
'__string2_1bptr_p'
  ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
                                                              ^~~
GSObjCRuntime.m:1429:43: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                                      ~~~~~~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:113:28: note: expanded from macro 
'strcmp'
          && (!__string2_1bptr_p (s2) || __s2_len >= 4))                      \
                                  ^~
/usr/include/x86_64-linux-gnu/bits/string2.h:53:28: note: expanded from macro 
'__string2_1bptr_p'
  ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
                           ^~~
GSObjCRuntime.m:1429:43: error: no member named 'types' in 'struct objc_slot'
              if (strcmp(slot->types, type_slot->types) == 0)
                                      ~~~~~~~~~  ^
/usr/include/x86_64-linux-gnu/bits/string2.h:113:28: note: expanded from macro 
'strcmp'



reply via email to

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