help-gnustep
[Top][All Lists]
Advanced

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

Re: gorm compile error


From: Fred Kiefer
Subject: Re: gorm compile error
Date: Mon, 12 Oct 2009 21:15:53 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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




reply via email to

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