www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Wed, 17 Mar 2010 16:36:05 +0100 |
From: | Vincent Richomme <forumer AT smartmobili DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Re: Linker error with GNustep |
In-Reply-To: | <7c9a06bd4a9de2e0dda29af7ff2aa63f@mail.smartmobili.com> |
References: | <7c9a06bd4a9de2e0dda29af7ff2aa63f AT mail DOT smartmobili DOT com> |
Message-ID: | <e6d04ce1834d6de472ae6548f4a194da@mail.smartmobili.com> |
X-Sender: | forumer AT smartmobili DOT com |
User-Agent: | RoundCube Webmail/0.2 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
> 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 ? I have finally added -lXmu to the command line and it solved my problem, so maybe this dwarf error was not important. However now I have another error but I think it has nothing to do with cygwin : Creating libgnustep-back-017.bundle/Resources/Info-gnustep.plist... plmerge: Uncaught exception NSRangeException, reason: in substringFromRange:, range { 0, 2 } extends beyond size (1) make[3]: *** [libgnustep-back-017.bundle/Resources/Info-gnustep.plist] Error 1 make[3]: *** Deleting file `libgnustep-back-017.bundle/Resources/Info-gnustep.plist' make[2]: *** [libgnustep-back-017.all.bundle.variables] Error 2 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |