[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnustep-make on Mac OSX
From: |
Jon Brisbin |
Subject: |
gnustep-make on Mac OSX |
Date: |
Tue, 5 Jul 2005 10:50:57 -0500 |
Thanks for all the help so far with my OSX and Win32 issues :-)
I followed the suggestions of someone here on the list and installed
the baseadd packages instead of the whole gnustep-base shebang. This
worked fine and I was able to compile a program against GSXML, but it
failed on the link, but this time differently:
brisbin-g4osx:~/xportal jbrisbin$ make
Making all for tool xportal...
Linking tool xportal ...
/opt/local/bin/odld: Undefined symbols:
.objc_class_name_GSXMLParser
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/xportal] Error 1
make: *** [xportal.all.tool.variables] Error 2
Do I have issues with my install of gnustep-make? It seems like make
just isn't picking up the libs it's supposed to. My ENV is set
correctly, as far as I know:
MANPATH=/sw/share/man:/sw/man:/opt/local/man:/opt/subversion/man:/usr/
share/man:/usr/local/teTeX/man:/usr/local/man:/sw/lib/perl5/5.8.1/man:/
usr/X11R6/man
TERM_PROGRAM=Apple_Terminal
XDG_DATA_HOME=/sw/share
TERM=xterm-color
SHELL=/bin/bash
PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
GNUSTEP_LOCAL_ROOT=/opt/local/GNUstep/Local
TERM_PROGRAM_VERSION=100.1.8
QTDIR=/sw
JBOSS_HOME=/opt/java/jboss-4.0.1
ANT_HOME=/sw/lib/ant
GNUSTEP_HOST=powerpc-apple-darwin7.9.0
SGML_CATALOG_FILES=/sw/etc/sgml/catalog
USER=jbrisbin
GDK_USE_XFT=1
GUILE_LOAD_PATH=/Users/jbrisbin/GNUstep/Library/Libraries/Guile:/opt/
local/GNUstep/Local/Library/Libraries/Guile:/opt/local/GNUstep/System/
Library/Libraries/Guile
GNUSTEP_NETWORK_ROOT=/opt/local/GNUstep/Local
GNUSTEP_MAKEFILES=/opt/local/GNUstep/System/Library/Makefiles
GNUSTEP_ROOT=/opt/local/GNUstep
GNUSTEP_FLATTENED=yes
__CF_USER_TEXT_ENCODING=0x1F5:0:0
GNOME_DISABLE_CRASH_DIALOG=1
GNUSTEP_HOST_OS=darwin7
GNUSTEP_HOST_VENDOR=apple
PATH=/sw/bin:/sw/sbin:/opt/local/bin:/opt/subversion/bin:/Users/
jbrisbin/GNUstep/Tools:/opt/local/GNUstep/Local/Tools:/opt/local/
GNUstep/System/Tools:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/teTeX/
bin/powerpc-apple-darwin-current:/usr/local/bin:/usr/X11R6/bin
XML_CATALOG_FILES=/sw/etc/xml/catalog
PWD=/Users/jbrisbin
JAVA_HOME=/Library/Java/Home
QMAKESPEC=/sw/share/qt3/mkspecs/darwin-g++
GNUSTEP_HOST_CPU=powerpc
DYLD_FRAMEWORK_PATH=/Users/jbrisbin/GNUstep/Library/Frameworks:/opt/
local/GNUstep/Local/Library/Frameworks:/opt/local/GNUstep/System/
Library/Frameworks
SHLVL=1
HOME=/Users/jbrisbin
GNUSTEP_USER_ROOT=/Users/jbrisbin/GNUstep
DYLD_LIBRARY_PATH=/Users/jbrisbin/GNUstep/Library/Libraries:/opt/local/
GNUstep/Local/Library/Libraries:/opt/local/GNUstep/System/Library/
Libraries
GNUSTEP_SYSTEM_ROOT=/opt/local/GNUstep/System
LOGNAME=jbrisbin
GNUSTEP_PATHLIST=/Users/jbrisbin/GNUstep:/opt/local/GNUstep/Local:/opt/
local/GNUstep/System
XDG_DATA_DIRS=/sw/share
CLASSPATH=/sw/share/java/junit/junit.jar:/sw/share/java/svn-javahl/svn-
javahl.jar:/Users/jbrisbin/GNUstep/Library/Libraries/Java:/opt/local/
GNUstep/Local/Library/Libraries/Java:/opt/local/GNUstep/System/Library/
Libraries/Java
LIBRARY_COMBO=apple-apple-apple
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
SECURITYSESSIONID=212bc0
_=/usr/bin/env
The extra gnustep .dylibs exist in the System/Library/Libraries folder,
so I'm not sure why make isn't picking them up during the linking
process.
Using the darwinports.org gcc4.
Update (before I finished this email...I get side-tracked easily :-):
It looks like gnustep-make isn't picking up my baseadd libraries for
some reason:
brisbin-g4osx:~/xportal jbrisbin$ make messages=yes
Making all for tool xportal...
cd .; \
/opt/local/GNUstep/System/Library/Makefiles/mkinstalldirs ./shared_obj;
\
rm -f obj; \
ln -s ./shared_obj obj
gcc xportal.m -c \
-MMD -MP -DNeXT_Foundation_LIBRARY=1 -DNeXT_GUI_LIBRARY=1
-DNeXT_RUNTIME=1 -dynamic -fno-common -DGSWARN -DGSDIAGNOSE -O2
-fno-strict-aliasing -fnext-runtime -I.
-I/opt/local/GNUstep/System/Library/Headers/ \
-o shared_obj/xportal.o
xportal.m: In function 'main':
xportal.m:11: warning: 'GSXMLDocument' may not respond to '-dump'
xportal.m:11: warning: (Messages without a matching method signature
xportal.m:11: warning: will be assumed to return 'id' and accept
xportal.m:11: warning: '...' as arguments.)
gcc -o shared_obj/xportal \
./shared_obj/xportal.o \
-L/opt/local/GNUstep/System/Library/Libraries/ -lm -framework
Foundation
/opt/local/bin/odld: Undefined symbols:
.objc_class_name_GSXMLParser
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/xportal] Error 1
make: *** [xportal.all.tool.variables] Error 2
If I manually run the gcc command to link the object and add
"-lgnustep-baseadd" it works fine. Why isn't gnustep-make picking up my
baseadd libraries? How do I fix that (manually if I have to)?
Thanks!
Jon Brisbin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnustep-make on Mac OSX,
Jon Brisbin <=