Article View: gnu.gcc.help
Article #51265Re: gcc-2.4.1 install problem with AIX 1.3 (PS/2)
From: Minh Tran-Le
Date: Mon, 07 Jun 1993 15:38
Date: Mon, 07 Jun 1993 15:38
72 lines
3230 bytes
3230 bytes
Ron.Ciminero@uc.edu (Ronald N. Ciminero) writes:
>I have experienced a problem while attempting to compile gcc-2.4.1
>on an IBM PS/2 MOD 77 running AIX 1.3 with Ver. 1.1 of the C compiler. A short
>copy of the makefile output appears below.
>The makefile was created using,
> % configure --target=i386-ibm-aix
>and the first pass was invoked, but not completed, using
> % make LANGUAGES=c >& ERRORS &
>Thanks for help!
>Ron
>--------------------------------------------------------------------
>R. N. Ciminero Bitnet: ciminero@ucbeh
>University of Cincinnati Internet: Ron.Ciminero@UC.Edu
>College of Applied Science ciminero@caseet.cas.uc.edu
> Voice: (513)556-4244
>------------------------------------------------------------------------------
>In file included from /usr/include/mbcs.h:23, from /usr/include/stdio.h:223, fro
>m ./libgcc2.c:1270:
>/usr/include/stddef.h:18: warning: `offsetof' redefined
>./gstddef.h:211: warning: this is the location of the previous definition
>In file included from ./libgcc2.c:1270:
>/usr/include/stdio.h:141: conflicting types for `size_t'
>./gstddef.h:125: previous declaration of `size_t'
>In file included from /usr/include/mbcs.h:23, from /usr/include/stdio.h:223, fro
>m ./libgcc2.c:1270:
>/usr/include/stddef.h:13: redefinition of `ptrdiff_t'
>./gstddef.h:84: `ptrdiff_t' previously declared here
>/usr/include/stddef.h:14: redefinition of `size_t'
>/usr/include/stdio.h:141: `size_t' previously declared here
>/usr/include/stddef.h:23: conflicting types for `wchar_t'
>./gstddef.h:171: previous declaration of `wchar_t'
>In file included from ./libgcc2.c:1270:
>/usr/include/stdio.h:227: redefinition of `wchar_t'
>/usr/include/stddef.h:23: `wchar_t' previously declared here
>*** Error code 1
>Stop.
The system headers on aix ps/2 have inconsistent definitions for:
size_t, ptrdiff_t and wchar_t. And they are not protected against
redefinition.
Here is for example how you need to modify your /usr/include/stddef.h:
...
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
typedef int ptrdiff_t;
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
...
/*
* MBCS typedefs
*/
#ifndef _WCHAR_T
#define _WCHAR_T
typedef unsigned long wchar_t; /* wide character */
#endif
You need to to the same sort of thing for stdio.h, sys/types.h and stdlib.h.
Minh Tran-Le.
Technical Details
Message-ID:
<1uvnd3$5c0a@paris.intellicorp.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!usc!cs.utexas.edu!uunet!icmv.intellicorp.com!paris.intellicorp.com!not-for-mailReferences:
<9306070958.AA02052@caseet.cas.uc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b0acbcac5116808 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-07 09:49:31 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!usc!cs.utexas.edu!uunet!icmv.intellicorp.com!paris.intellicorp.com!not-for-mail From: mtranle@paris.intellicorp.com (Minh Tran-Le) Newsgroups: gnu.gcc.help Subject: Re: gcc-2.4.1 install problem with AIX 1.3 (PS/2) Date: 7 Jun 1993 08:38:11 -0700 Organization: IntelliCorp, Mountain View CA. Lines: 72 Distribution: gnu Message-ID: <1uvnd3$5c0a@paris.intellicorp.com> References: <9306070958.AA02052@caseet.cas.uc.edu> Reply-To: tranle@intellicorp.com NNTP-Posting-Host: paris.intellicorp.com