gnustep-dev
[Top][All Lists]
Advanced

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

Re: Compilation error on Solaris...


From: Fred Kiefer
Subject: Re: Compilation error on Solaris...
Date: Wed, 28 Apr 2010 08:55:20 +0200

That's an interesting problem you found here. NSGraphicsContext uses an 
instance variable of NSThread directly to find and set the current context. 
This instance variable is public, not private as your compiler claims, but it 
might get hidden, wen GS_EXPOSE(NSThread) is not set.
One question here is why your compiler would decide to build base with hidden 
ivars. GS_EXPOSE is defined as:

#define GS_EXPOSE(X)    (!GS_NONFRAGILE || defined(EXPOSE_##X##_IVARS))

And I don't expect your gcc to support non fragile ivars. Just to make sure we 
could define EXPOSE_NSThread_IVARS in NSGraphicsContext before we import the 
header.
Another question is why nobody noticed this issue before. The code in 
NSThread.h hasn't changed for two months at least.

Both of these issues sound very strange to me. Are you sure, you are using an 
up to date version of the code?
Fred


-------- Original-Nachricht --------
> Datum: Wed, 28 Apr 2010 00:36:35 -0400
> Von: Gregory Casamento <address@hidden>
> An: Developer GNUstep <address@hidden>
> Betreff: Compilation error on Solaris...

>  Compiling file NSFormCell.m ...
>  Compiling file NSGraphicsContext.m ...
> NSGraphicsContext.m: In function 'GSCurrentContext':
> NSGraphicsContext.m:100: warning: instance variable '_gcontext' is
> @private; this will be a hard error in the future
> NSGraphicsContext.m: In function '+[NSGraphicsContext
> setCurrentContext:]':
> NSGraphicsContext.m:169: error: instance variable '_gcontext' is
> declared private
> NSGraphicsContext.m:169: error: instance variable '_gcontext' is
> declared private
> make[4]: *** [obj/libgnustep-gui.obj/NSGraphicsContext.m.o] Error 1
> 
> I'm getting this using both GCC 3.x and 4.x on Solaris.  I don't seem
> to be getting the same error on Linux.
> 
> GC
> -- 
> Gregory Casamento - GNUstep Lead/Principal Consultant, OLC, Inc.
> yahoo/skype: greg_casamento, aol: gjcasa
> (240)274-9630 (Cell)
> 
> 
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnustep-dev

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01




reply via email to

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