discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Building gnuStep on panther


From: Yves de Champlain
Subject: Re: Building gnuStep on panther
Date: Sun, 06 Jun 2004 12:36:18 -0400


Le 04-06-05, à 02:28, discuss-gnustep-request@gnu.org a écrit :

  Linking library libgnustep-gui ...
ld: for architecture ppc
ld: warning undefined symbols:
___objc_exec_class
_objc_get_class
_objc_msg_lookup
_objc_msg_lookup_super
___objc_class_name_Protocol
_objc_free
etc.

The problem here is that you are linking the wrong Objective-C runtime
library.  Because your programs are compiled using the -fgnu-runtime
option, they call functions within the GNU runtime, which are all those
missing symbols.  The Apple runtime has similar functions but the names
are different.

Yves wrote
Do you have a libgcc.dylib in /usr/local/lib ?

I would have thought you should be looking for the whereabouts of
libobjc.dylib.  That should be in /usr/local/lib and  should solve your
problem presuming that within the GNU build process '-L/usr/local/lib'
is given as an option to ld before '-lobjc'.  ( See the man page for
ld.)  Unless this happens the linker will find /usr/lib/libobjc.dylib,
which is the Apple runtime.

that makes a lot of sense but I find the GNUstep build process a little
opaque. gnustep-libobjc installs in $GNUSTEPBASE/System/Library/Libraries and $GNUSTEPBASE/System/Library/Headers. adding an LDFLAGS -L/... does not
help while adding CPPFLAGS -I/... breaks everything

But is there some way to see more than "compiling NSstuff.m..." ?

thanks

yves




reply via email to

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