🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52279

Are these bugs?

#52279
From: meissner
Date: Wed, 09 Dec 1992 02:50
34 lines
1721 bytes
| I've had some problems for a while now, but always could go around them
| with ultrix 4.2 cc when needed. It's just that I would like to use gcc
| all the time so if someone could answer this I would appreciate it.
| 
| gcc 2.2.2 on ultrix 4.2 says this when making perl:
| 
| In file included from /usr/include/sys/param.h:305, from perl.h:138, from perly.c:38:
| /usr/include/sys/types.h:114: syntax error before `char'
| 
| The lines in /usr/include/sys/types.h looks like this:
| 
| 110	typedef
| 111	#ifdef __mips
| 112		signed
| 113	#endif /* __mips */
| 114			char	s_char;
| 
| What about it? Why is that an error?

What is happening is that the Ultrix include files now evidently
include the "signed" keyword.  You must have compiled perl with the
-traditional option, which forces gcc to disable the keywords
'signed', 'const', and 'volatile', since pre-ANSI compilers did not
support for them.  You could add:

	-Dsigned=__signed__

to the compile lines.

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID: <9212091250.AA14454@curley.osf.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!osf.ORG!meissner
References: meissner@osf.ORG

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bb1ac7c2e86e3cbf,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-12-09 05:01:54 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Subject: Are these bugs?
Message-ID: <9212091250.AA14454@curley.osf.org>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: meissner@osf.ORG
Distribution: gnu
Date: Wed, 9 Dec 1992 02:50:25 GMT
Lines: 34