discuss-gnustep
[Top][All Lists]
Advanced

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

Re: things that fail to build with gcc and libobjc2


From: Wolfgang Lux
Subject: Re: things that fail to build with gcc and libobjc2
Date: Wed, 6 Apr 2011 20:48:29 +0200

Sebastian Reitenbach wrote:

and StepTalk from svn fails to compile with the following error message:
Making all for framework StepTalk...
cc STObjCRuntime.m -c \
             -MMD -MP -pipe -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 -Wno-import - DSTEPTALK_VERSION=0.10.0 -
fconstant-string-class=NSConstantString -I./derived_src -I. -
I/usr/local/include -I/gnustep-
steptalk-0.11.0_writes_to_HOME/GNUstep/Library/Headers -I/usr/local/ include \
              -o obj/StepTalk.obj/STObjCRuntime.m.o
STObjCRuntime.m: In function 'STAllObjectiveCClasses':
STObjCRuntime.m:67: warning: 'objc_next_class' is deprecated (declared at
/usr/local/include/objc/runtime-deprecated.h:41)
STObjCRuntime.m:69: warning: implicit declaration of function
'class_get_class_name'
STObjCRuntime.m:69: warning: passing argument 1 of 'stringWithCString:' makes
pointer from integer without a cast
STObjCRuntime.m: In function 'STSelectorFromString':
STObjCRuntime.m:144: warning: 'sel_register_typed_name' is deprecated
(declared at /usr/local/include/objc/runtime-deprecated.h:73)
STObjCRuntime.m: In function 'STCreateTypedSelector':
STObjCRuntime.m:165: warning: 'sel_get_name' is deprecated (declared at
/usr/local/include/objc/runtime-deprecated.h:59)
STObjCRuntime.m:191: warning: 'sel_register_typed_name' is deprecated
(declared at /usr/local/include/objc/runtime-deprecated.h:73)
STObjCRuntime.m: In function 'STConstructMethodSignatureForSelector':
STObjCRuntime.m:207: warning: 'sel_get_name' is deprecated (declared at
/usr/local/include/objc/runtime-deprecated.h:59)
STObjCRuntime.m: In function 'STMethodSignatureForSelector':
STObjCRuntime.m:250: warning: 'sel_get_type' is deprecated (declared at
/usr/local/include/objc/runtime-deprecated.h:67)
STObjCRuntime.m:255: warning: 'sel_get_type' is deprecated (declared at
/usr/local/include/objc/runtime-deprecated.h:67)
STObjCRuntime.m: At top level:
STObjCRuntime.m:261: warning: 'struct objc_method_list' declared inside
parameter list
STObjCRuntime.m:261: warning: its scope is only this definition or
declaration, which is probably not what you want
STObjCRuntime.m: In function 'selectors_from_list':
STObjCRuntime.m:264: error: dereferencing pointer to incomplete type
STObjCRuntime.m:269: error: dereferencing pointer to incomplete type
STObjCRuntime.m:272: error: dereferencing pointer to incomplete type
STObjCRuntime.m:274: error: dereferencing pointer to incomplete type
STObjCRuntime.m: In function 'STAllObjectiveCSelectors':
STObjCRuntime.m:290: warning: 'objc_next_class' is deprecated (declared at
/usr/local/include/objc/runtime-deprecated.h:41)
STObjCRuntime.m:292: error: dereferencing pointer to incomplete type
STObjCRuntime.m:294: error: dereferencing pointer to incomplete type
STObjCRuntime.m:297: error: dereferencing pointer to incomplete type
STObjCRuntime.m:299: error: dereferencing pointer to incomplete type
STObjCRuntime.m:301: error: dereferencing pointer to incomplete type
gmake[4]: *** [obj/StepTalk.obj/STObjCRuntime.m.o] Error 1
gmake[3]: *** [internal-framework-run-compile-submake] Error 2
gmake[2]: *** [StepTalk.all.framework.variables] Error 2
gmake[2]: Leaving directory `/home/ports/pobj/gnustep-
steptalk-0.11.0/StepTalk-0.11.0/Frameworks/StepTalk'
gmake[1]: *** [internal-all] Error 2
gmake[1]: Leaving directory `/home/ports/pobj/gnustep-
steptalk-0.11.0/StepTalk-0.11.0/Frameworks'
gmake: *** [internal-all] Error 2
*** Error code 2

I've updated STObjCRuntime.m in svn so that it now uses the Objective- C 2 API with the exception of type selectors, which are a GNU extension and not part of Apple's runtime and thus the API. Compiling against libobjc2 you probably still will get deprecated warnings for them (I haven't tested it because I don't have libobjc2 installed anywhere), but given the number of warnings produced by StepTalk, these shouldn't matter much :-(

Wolfgang




reply via email to

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