Article View: gnu.gcc.help
Article #50697GCC 2.4.5 -traditional problem on RS6000 AIX 3.2?
From: Paul Smith
Date: Wed, 11 Aug 1993 14:29
Date: Wed, 11 Aug 1993 14:29
32 lines
2396 bytes
2396 bytes
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.
What a pain.
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?
paul
_____________________________________________________________________________
/ \
Paul D. Smith | That's the thing about being a boxer:
<psmith@wellfleet.com> | even when you're at the top of your field,
Wellfleet Communications, Inc. | people still hit you in the head.
Network Management Development | -- Paula Poundstone
\_____________________________________________________________________________/
Technical Details
Message-ID:
<9308111427.AA09260@lemming.wellfleet>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!news.dfn.de!darwin.sura.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!wellfleet.COM!psmithShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e4cd3c955ba44f4f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-11 07:46:23 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!news.dfn.de!darwin.sura.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!wellfleet.COM!psmith From: psmith@wellfleet.COM (Paul Smith) Newsgroups: gnu.gcc.help Subject: GCC 2.4.5 -traditional problem on RS6000 AIX 3.2? Date: 11 Aug 1993 10:29:04 -0400 Organization: GNUs Not Usenet Lines: 32 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9308111427.AA09260@lemming.wellfleet> Reply-To: psmith@wellfleet.com