Michael Thaler schrieb:
> Hi,
> 
> I am trying to compile gorm from svn and the the following compile error:
> 
> Making all for app Gorm...
>  Compiling file Gorm.m ...
>  Compiling file main.m ...
>  Linking app Gorm ...
> GormCore/./obj/libGormCore.so: undefined reference to `class_nextMethodList'
> collect2: ld returned 1 exit status
> make[2]: *** [Gorm.app/./Gorm] Error 1
> make[1]: *** [internal-app-run-compile-submake] Error 2
> make: *** [Gorm.all.app.variables] Error 2
> 
> Does someone know what's wrong here? What do I have to do to fix this?

To me this looks like Gorm has a private copy (slightly changed) of the
base function GSObjCMethodNames from the file
base/source/Additions/GSObjcRuntime.m. In that file we now have a local
definition of class_nextMethodList when we aren't using the Next
runtime. Something similar to that would be needed here.

#define class_nextMethodList(aClass,anIterator) (({\
  if (*(anIterator) == 0) \
    *((struct objc_method_list**)(anIterator)) = (aClass)->methods; \
  else \
    *(anIterator) = (*((struct
objc_method_list**)(anIterator)))->method_next; \
}), *(anIterator))


Most likely at some point base exported this definition to make it
easier to port between different runtimes and somehow this got removed.

Fred


_______________________________________________
Help-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnustep

Reply via email to