This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Linker error with GNustep
- From: Vincent Richomme <forumer at smartmobili dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 17 Mar 2010 16:24:57 +0100
- Subject: Linker error with GNustep
Hi,
I wanted to compile gnustep on cygwin and I followed the following guide:
http://gnustep.made-it.com/BuildGuide/
I can sump up by :
A) GNUstep-make
svn co http://svn.gna.org/svn/gnustep/tools/make/trunk/ gnustep-make
cd gnustep-make
./configure --prefix=/usr/GNUstep --with-layout=gnustep \
--with-config-file=/usr/GNUstep/Local/Configuration/GNUstep.conf
make && make install
cd ..
B) Setup GNustep
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
and add the following lines at the bottom of /etc/profile:
# Setup GNUstep variables so we can run/compile stuff
echo Setting up GNUstep Environment...
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
C) GNUstep-base
svn co http://svn.gna.org/svn/gnustep/libs/base/trunk/ gnustep-base
cd gnustep-base
./configure --enable-libffi
--with-default-config=/usr/GNUstep/Local/Configuration/GNUstep.conf
make && make install
cd ..
D) GNUstep-gui
svn co http://svn.gna.org/svn/gnustep/libs/gui/trunk/ gnustep-gui
Apply this patch :
Index: Source/NSButtonCell.m
===================================================================
--- Source/NSButtonCell.m (revision 29993)
+++ Source/NSButtonCell.m (working copy)
@@ -38,7 +38,7 @@
#include <Foundation/NSException.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSValue.h>
-#include <GNUstepBase/GSCategories.h>
+//#include <GNUstepBase/GSCategories.h>
#include "AppKit/AppKitExceptions.h"
#include "AppKit/NSApplication.h"
Index: Source/NSMenuItem.m
===================================================================
--- Source/NSMenuItem.m (revision 29993)
+++ Source/NSMenuItem.m (working copy)
@@ -33,7 +33,7 @@
#include <Foundation/NSDictionary.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSException.h>
-#include <GNUstepBase/GSCategories.h>
+//#include <GNUstepBase/GSCategories.h>
#include "AppKit/NSCell.h"
#include "AppKit/NSEvent.h"
#include "AppKit/NSImage.h"
Index: Source/NSBitmapImageRep+JPEG.m
===================================================================
--- Source/NSBitmapImageRep+JPEG.m (revision 29993)
+++ Source/NSBitmapImageRep+JPEG.m (working copy)
@@ -56,7 +56,7 @@
#include <jpeglib.h>
#if defined(__CYGWIN__)
/* Cygwin uses a patched jpeg */
-#define GSTEP_PROGRESSIVE_CODEC
+//#define GSTEP_PROGRESSIVE_CODEC
#endif
#include <setjmp.h>
cd gnustep-gui
./configure
make && make install
cd ..
D)GNUstep-back
svn co http://svn.gna.org/svn/gnustep/libs/back/trunk/ gnustep-back
cd gnustep-back
./configure --enable-server=x11 --enable-graphics=cairo
make && make install
and I get the following error
Making all for bundle libgnustep-back-017...
Linking bundle libgnustep-back-017 ...
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: Dwarf
Error: found dwarf version '0', this reader only handles version 2 and 3
information.
./x11/obj/subproject.o:context.c:(.text+0x1906): undefined reference to
`_XmuLookupStandardColormap'
collect2: ld returned 1 exit status
make[4]: *** [libgnustep-back-017.bundle/./libgnustep-back-017.dll] Error
1
make[3]: *** [internal-bundle-run-compile-submake] Error 2
make[2]: *** [libgnustep-back-017.all.bundle.variables] Error 2
I understand that GNustep is using a missing reference but I find the
error message
about dwarf a bit weird.
Is it normal ?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple