bug-gnustep
[Top][All Lists]
Advanced

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

[bug #35777] GSWeb build on Mac OS X fails due to object_getClass()


From: Graham Lee
Subject: [bug #35777] GSWeb build on Mac OS X fails due to object_getClass()
Date: Fri, 09 Mar 2012 21:54:31 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10

URL:
  <http://savannah.gnu.org/bugs/?35777>

                 Summary: GSWeb build on Mac OS X fails due to
object_getClass()
                 Project: GNUstep
            Submitted by: leeg
            Submitted on: Fri 09 Mar 2012 09:54:30 PM GMT
                Category: gsweb
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Building for apple-apple-apple fails with this error:

$ make
This is gnustep-make 2.6.2. Type 'make print-gnustep-make-help' for help.
Making all in GSWeb ...
Making build-headers for framework WebObjects...
Making all for framework WebObjects...
 Compiling file GSWConstants.m ...
In file included from GSWeb.h:176,
                 from GSWConstants.m:37:
GSWDynamicElement.h: In function
‘GSWDynamicElement_evaluateValueInContext’:
GSWDynamicElement.h:62: error: implicit declaration of function
‘object_getClass’
GSWDynamicElement.h:62: warning: comparison between pointer and integer
make[3]: *** [obj/WebObjects/WebObjects.obj/GSWConstants.m.o] Error 1
make[2]: *** [internal-framework-run-compile-submake] Error 2
make[1]: *** [WebObjects.all.framework.variables] Error 2
make: *** [internal-all] Error 2

On the new Apple Objective-C runtime, the API for getting a class
(objc_getClass()) takes a name, not an instance. Therefore I've patched this
by using the -class method, which should work with any Objective-C runtime.


Index: GSWeb/GSWDynamicElement.h
===================================================================
--- GSWeb/GSWDynamicElement.h   (revision 34917)
+++ GSWeb/GSWDynamicElement.h   (working copy)
@@ -58,8 +58,7 @@
 BOOL GSWDynamicElement_evaluateValueInContext(GSWDynamicElement*
element,Class standardClass,
                                               GSWIMP_BOOL imp,GSWAssociation*
condition,GSWContext* context)
 {
-  // was object_get_class
-  if (imp && object_getClass(element)==standardClass)
+  if (imp && ([element class]==standardClass))
     {
       return (*imp)(element,evaluateConditionInContextSEL,
                     condition,context);





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35777>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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