[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compile problem
From: |
Sandro Magi |
Subject: |
compile problem |
Date: |
Thu, 22 Mar 2001 13:43:04 -0500 |
I was having trouble compiling the gnustep-gui package. These were the
errors:
GSFontInfo.m: In function `+[GSFontInfo encodingForRegistry:encoding:]':
GSFontInfo.m:248: `NSCyrillicStringEncoding' undeclared (first use in this
function)
GSFontInfo.m:248: (Each undeclared identifier is reported only once
GSFontInfo.m:248: for each function it appears in.)
GSFontInfo.m:250: `NSArabicStringEncoding' undeclared (first use in this
function)
GSFontInfo.m:252: `NSGreekStringEncoding' undeclared (first use in this
function)
GSFontInfo.m:254: `NSHebrewStringEncoding' undeclared (first use in this
function)
make[3]: *** [shared_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/GSFontInfo.o] Error
1
make[2]: *** [libgnustep-gui.build] Error 2
make[1]: *** [libgnustep-gui.all.library.variables] Error 2
make[1]: Leaving directory
`/usr/home/smagi/projects/gnustep/gnustep-gui-0.6.7/Source'
make: *** [internal-all] Error 2s
----
Seems that they weren't declared properly(or they weren't being used
properly. I don't think I have out-of-date packages(I just got the newest
release). Anyway, I managed to fix this by looking in GSFontInfo.m for the
problematic lines. I then checked NSString.h in
GNUstep/System/Headers/Foundation, and the only references to Cyrillic,
Arabic, Hebrew and Greek were NSISO* enum definitions. So I changed 'return
NSCyrillicStringEncoding' to 'return NSISOCyrillicStringEncoding' and that
worked fine.
The patch is included on the end of this e-mail. I don't claim to be any
GNUstep expert, so I'm not sure if it's the right thing to do, but I just
wanted to compile the dang thing. ;-) Please cc: me if you want to get in
touch with me(I'm not on the list).
--- GSFontInfo.m Thu Mar 22 13:19:29 2001
***************
*** 245,257 ****
else if ([encoding isEqualToString: @"4"])
return NSISOLatin4StringEncoding;
else if ([encoding isEqualToString: @"5"])
! return NSCyrillicStringEncoding;
else if ([encoding isEqualToString: @"6"])
! return NSArabicStringEncoding;
else if ([encoding isEqualToString: @"7"])
! return NSGreekStringEncoding;
else if ([encoding isEqualToString: @"8"])
! return NSHebrewStringEncoding;
// Other latin encodings are currently not supported
}
else if ([registry isEqualToString: @"iso10646"])
--- 245,257 ----
else if ([encoding isEqualToString: @"4"])
return NSISOLatin4StringEncoding;
else if ([encoding isEqualToString: @"5"])
! return NSISOCyrillicStringEncoding; /* was: return
NSCyrillicStringEncoding;*/
else if ([encoding isEqualToString: @"6"])
! return NSISOArabicStringEncoding; /* was: return
NSArabicStringEncoding;*/
else if ([encoding isEqualToString: @"7"])
! return NSISOGreekStringEncoding; /* was: return NSGreekStringEncoding;*/
else if ([encoding isEqualToString: @"8"])
! return NSISOHebrewStringEncoding; /* was: return
NSHebrewStringEncoding;*/
// Other latin encodings are currently not supported
}
else if ([registry isEqualToString: @"iso10646"])
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
- compile problem,
Sandro Magi <=