discuss-gnustep
[Top][All Lists]
Advanced

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

Re: applications that fail to build with new gnustep from svn


From: Sebastian Reitenbach
Subject: Re: applications that fail to build with new gnustep from svn
Date: Thu, 07 Apr 2011 00:24:34 +0200
User-agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.2.14) Gecko/20110316 Thunderbird/3.1.8

On 04/06/11 22:38, Fred Kiefer wrote:
> On 06.04.2011 20:51, Fred Kiefer wrote:
>> On 06.04.2011 20:34, David Chisnall wrote:
>>> On 6 Apr 2011, at 19:30, Fred Kiefer wrote:
>>>
>>>> You seem to be including the wrong runtime.h here and as David
>>>> already pointed out, the whole ivar dumping code needs a rewrite.
>>>> Any taker? David, I am not looking at you :-)
>>>
>>>
>>> If all that's required is listing the ivars on a class, I have code to
>>> do this that I can send to someone.
>>
>> Great, I am willing to integrate that into the gdl2 code. All that
>> DumpIvar does is write out the name, type and value for the ivar and if
>> it is an id, it calls another function to go one level deeper. Ah, and
>> it requires all the type encodings like _C_CLASS.
>
> You no longer need to reply. I just used the example from your book to
> implement this code. :-)
>
> Somebody who actually uses GDL2 will need to check that everything
> still works as before on all supported environments.
Hi,

I can confirm it now compiles for me. Also ProjectCenter now compiles
with llvm and libobjc2. StepTalk, just updated from svn like the others,
still has a problem compiling:


Making all for bundle ObjectiveC...
clang NSObject+additions.m -c \
              -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1
-DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
-fno-strict-aliasing -fPIC -DDEBUG -fno-omit-frame-pointer -Wall
-DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -g -fgnu-runtime -Wall
-Wno-import -fconstant-string-class=NSConstantString -I../../Frameworks/
-I. -I/usr/local/include
-I/gnustep-steptalk-0.11.0_writes_to_HOME/GNUstep/Library/Headers
-I/usr/local/include \
               -o obj/ObjectiveC.obj/NSObject+additions.m.o
NSObject+additions.m:43:20: error: incomplete definition of type 'struct
objc_class'
    methods = class->methods;
              ~~~~~^
In file included from NSObject+additions.m:27:
In file included from ./NSObject+additions.h:27:
In file included from /usr/local/include/Foundation/NSObject.h:30:
In file included from /usr/local/include/Foundation/NSObjCRuntime.h:35:
In file included from /usr/local/include/GNUstepBase/GSVersionMacros.h:193:
In file included from /usr/local/include/GNUstepBase/GSConfig.h:229:
In file included from /usr/local/include/GNUstepBase/preface.h:112:
In file included from /usr/local/include/objc/objc.h:1:
/usr/local/include/objc/runtime.h:57:16: note: forward declaration of
'struct objc_class'
typedef struct objc_class *Class;
               ^
NSObject+additions.m:47:31: error: incomplete definition of type 'struct
objc_method_list'
        for(i = 0; i < methods->method_count; i++)
                       ~~~~~~~^
NSObject+additions.m:36:12: note: forward declaration of 'struct
objc_method_list'
    struct objc_method_list *methods;
           ^
NSObject+additions.m:49:26: error: incomplete definition of type 'struct
objc_method_list'
            sel = methods->method_list[i].method_name;
                  ~~~~~~~^
NSObject+additions.m:36:12: note: forward declaration of 'struct
objc_method_list'
    struct objc_method_list *methods;
           ^
NSObject+additions.m:53:26: error: incomplete definition of type 'struct
objc_method_list'
        methods = methods->method_next;
                  ~~~~~~~^
NSObject+additions.m:36:12: note: forward declaration of 'struct
objc_method_list'
    struct objc_method_list *methods;
           ^
NSObject+additions.m:71:18: error: incomplete definition of type 'struct
objc_class'
    ivars = class->ivars;
            ~~~~~^
In file included from NSObject+additions.m:27:
In file included from ./NSObject+additions.h:27:
In file included from /usr/local/include/Foundation/NSObject.h:30:
In file included from /usr/local/include/Foundation/NSObjCRuntime.h:35:
In file included from /usr/local/include/GNUstepBase/GSVersionMacros.h:193:
In file included from /usr/local/include/GNUstepBase/GSConfig.h:229:
In file included from /usr/local/include/GNUstepBase/preface.h:112:
In file included from /usr/local/include/objc/objc.h:1:
/usr/local/include/objc/runtime.h:57:16: note: forward declaration of
'struct objc_class'
typedef struct objc_class *Class;
               ^
NSObject+additions.m:75:24: error: incomplete definition of type 'struct
objc_ivar_list'
        for(i=0;i<ivars->ivar_count;i++)
                  ~~~~~^
NSObject+additions.m:62:12: note: forward declaration of 'struct
objc_ivar_list'
    struct objc_ivar_list* ivars;
           ^
NSObject+additions.m:77:26: error: incomplete definition of type 'struct
objc_ivar_list'
            cname = ivars->ivar_list[i].ivar_name;
                    ~~~~~^
NSObject+additions.m:62:12: note: forward declaration of 'struct
objc_ivar_list'
    struct objc_ivar_list* ivars;
           ^
NSObject+additions.m:78:31: warning: receiver 'NSString' is a forward
class and corresponding @interface may not exist
            [array addObject:[NSString stringWithCString:cname]];
                              ^
NSObject+additions.m:78:30: warning: method '+stringWithCString:' not
found (return type defaults to 'id')
            [array addObject:[NSString stringWithCString:cname]];
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSObject+additions.m:99:30: warning: implicit declaration of function
'class_get_meta_class' is invalid in C99 [-Wimplicit-function-declaration]
    return methods_for_class(class_get_meta_class(self));
                             ^
NSObject+additions.m:99:30: warning: incompatible integer to pointer
conversion passing 'int' to parameter of type 'Class'
    return methods_for_class(class_get_meta_class(self));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
NSObject+additions.m:33:41: note: passing argument to parameter 'class' here
static NSArray *methods_for_class(Class class)
                                        ^
4 warnings and 7 errors generated.
gmake[5]: *** [obj/ObjectiveC.obj/NSObject+additions.m.o] Error 1
gmake[4]: *** [internal-bundle-run-compile-submake] Error 2
gmake[3]: *** [ObjectiveC.all.bundle.variables] Error 2
gmake[2]: *** [internal-all] Error 2


cheers,
Sebastian


>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep




reply via email to

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