Article View: gnu.gcc.help
Article #42574Re: ? problems in objc/class.c when building gcc 2.7.1 on Solaris 2.5
From: Paul F. Kunz
Date: Mon, 27 Nov 1995 00:00
Date: Mon, 27 Nov 1995 00:00
32 lines
2144 bytes
2144 bytes
>>>>> On 24 Nov 1995 16:13:19 GMT, ulf@elc1.ireland.sun.com (Ulf Messner SMI European Software Centre ) said: > Hi, when I'm compiling gcc 2.7.1 on Solaris 2.5 (using gcc 2.6.3), I > get pretty far - beyond the fixincludes - but then I get an > avalanche of errors in class.c: > /opt/ulf/gcc-2.7.1/xgcc -B/opt/ulf/gcc-2.7.1/ -O \ -c -DIN_GCC > -DSVR4 > -I/ext/ulf/gcc-2.6.3/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include > -I./include -I. -I.. -I/opt/ulf/gcc-2.7.1 > -I/opt/ulf/gcc-2.7.1/config class.c class.c:35: conflicting types > for `_objc_lookup_class' > /ext/ulf/gcc-2.6.3/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/objc/objc-api.h:286: > previous declaration of `_objc_lookup_class' class.c: In function > `__objc_add_class_to_hash': class.c:69: invalid type argument of > `->' class.c:72: invalid type argument of `->' class.c:72: > incompatible types in assignment class.c:73: wrong type argument to > unary exclamation mark class.c:79: invalid type argument of `->' > and so on. I must have done something wrong. Without verification by looking at the sources, I think you've run into a change in the typedef for `Class' between gcc 2.6.3 and gcc 2.7.0. The change was made to make gcc conformant with the NeXTSTEP implementation. Trying compiling the Objective-C runtime that comes with gcc 2.7 with gcc 2.7 and you shouldn't have any problems of this type. -- Paul F. Kunz Paul_Kunz@slac.stanford.edu (NeXT mail ok) Stanford Linear Accelerator Center, Stanford University Voice: (415) 926-2884 (NeXT) Fax: (415) 926-3587
Technical Details
Message-ID:
<PFKEB.95Nov26180550@hpkaon.SLAC.Stanford.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<494quv$ip@uk-usenet.uk.sun.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ddfec8166394cebb X-Google-Attributes: gid11318c,public From: pfkeb@hpkaon.SLAC.Stanford.EDU (Paul F. Kunz) Subject: Re: ? problems in objc/class.c when building gcc 2.7.1 on Solaris 2.5 Date: 1995/11/27 Message-ID: <PFKEB.95Nov26180550@hpkaon.SLAC.Stanford.EDU> X-Deja-AN: 120236563 sender: news@unixhub.SLAC.Stanford.EDU references: <494quv$ip@uk-usenet.uk.sun.com> organization: Stanford Linear Accelerator Center reply-to: Paul_Kunz@slac.stanford.edu newsgroups: gnu.gcc.help