discuss-gnustep
[Top][All Lists]
Advanced

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

Re: _MIN_a problem on Solaris


From: Andreas Höschler
Subject: Re: _MIN_a problem on Solaris
Date: Mon, 30 Jul 2007 18:49:30 +0200

Hi all,

Responding to my own postting ...

I am trying to build the latest GNustep/Etoule tree on Soalris 10 and am encountering the following error at several places inthe Etoile 0.2 tree:

Making all in TRXML...
make[4]: Entering directory `/src/Etoile-0.2/Services/User/Jabber/TRXML'
Making all for library TRXML...
 Compiling file TRXMLNode.m ...
In file included from /opt/GNUstep/System/Library/Headers/Foundation/NSString.h:30, from /opt/GNUstep/System/Library/Headers/Foundation/NSGeometry.h:31, from /opt/GNUstep/System/Library/Headers/Foundation/NSAffineTransform.h:33, from /opt/GNUstep/System/Library/Headers/Foundation/Foundation.h:38,
                 from TRXMLNode.h:9,
                 from TRXMLNode.m:9:
/opt/GNUstep/System/Library/Headers/Foundation/NSRange.h: In function `NSUnionRange': /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: warning: implicit declaration of function `typeof' /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: error: parse error before "_MIN_a" /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: error: parse error before "_MIN_b" /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: error: `_MIN_a' undeclared (first use in this function) /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: error: (Each undeclared identifier is reported only once /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: error: for each function it appears in.) /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:184: error: `_MIN_b' undeclared (first use in this function) /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:185: error: parse error before "_MAX_a" /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:185: error: parse error before "_MAX_b" /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:185: error: `_MAX_a' undeclared (first use in this function) /opt/GNUstep/System/Library/Headers/Foundation/NSRange.h:185: error: `_MAX_b' undeclared (first use in this function)

I checked all the given files but have no idea what could be wrong here. I am stuck! Anyone else had thi sproblem or knows what gcc is tryingto tell me?

Replacing all occurances of typeof in the following files

        pico /src/core/base/Headers/Additions/GNUstepBase/preface.h
        pico /src/core/base/Headers/Foundation/NSRange.h
        pico /src/core/base/Headers/Foundation/NSGeometry.h

with __typeof__ and reinstalling base seems to fix the problem!?

Regards,

 Andreas








reply via email to

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