Article View: gnu.gcc.help
Article #50722Re: GCC 2.4.5 -traditional problem on RS6000 AIX 3.2?
From: Deepan PATEL
Date: Sun, 15 Aug 1993 09:51
Date: Sun, 15 Aug 1993 09:51
34 lines
2403 bytes
2403 bytes
Paul Smith (psmith@wellfleet.COM) wrote: : I've successfully compiled GCC 2.4.5 on AIX 3.2 and it seems to work : fine if invoked as "gcc", but whenever I try to run it as "gcc : -traditional" for packages which require K&R C, I get numerous compile : errors (for example, trying to compile perl 4.036--but there are : others). : At first glance the problem seems to be that the AIX header files aren't : correct, in that they don't use __STDC__ to mark off ANSI vs. K&R : constructs... instead prototypes (for example) are marked off with : _NO_PROTO: but _NO_PROTO doesn't seem to be defined *anywhere* in the : standard headers; I suppose the AIX K&R C compiler defines it : automatically behind your back. : This is just one instance, though; even putting -D_NO_PROTO on the gcc : -traditional compile line still leads to errors, with invalid keywords, : etc. : I realize that, if indeed this is the problem, this is a bug in AIX not : in GCC, but I'm hoping someone will have some hints for using GCC on AIX : systems... or should I just continue what I'm doing now and be forced : to compile perl, etc. with AIX cc? Try adding -D_ALL_SOURCE. There is nothing wrong with AIX in that respect, its just that it needs a bit of (irritating) tweaking here and there. You may find better hints in the aix newsgroup (comp.sys.aix ??) --------------------------------------------------------------------------- Deepan Patel International Institute for Advanced Computer Applications Applied Systems Analysis patel@iiasa.ac.at IIASA, A-2361 Laxenburg, Austria ---------------------------------------------------------------------------
Technical Details
Message-ID:
<1993Aug15.095126.5855@iiasa.ac.at>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!news.univie.ac.at!iiasa.ac.at!patelReferences:
<9308111427.AA09260@lemming.wellfleet>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e4cd3c955ba44f4f X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-15 03:11:35 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!news.univie.ac.at!iiasa.ac.at!patel From: patel@iiasa.ac.at (Deepan PATEL) Subject: Re: GCC 2.4.5 -traditional problem on RS6000 AIX 3.2? Message-ID: <1993Aug15.095126.5855@iiasa.ac.at> Sender: news@iiasa.ac.at Organization: IIASA, Laxenburg, Austria X-Newsreader: TIN [version 1.2 PL0] References: <9308111427.AA09260@lemming.wellfleet> Distribution: gnu Date: Sun, 15 Aug 1993 09:51:26 GMT Lines: 34