This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: compilation problem on SunOS 4.1.3_U1
- From: mike stump <mrs at windriver dot com>
- To: gcc-bugs at gcc dot gnu dot org, gcc at gcc dot gnu dot org, may-tsai at ti dot com
- Date: Mon, 18 Mar 2002 12:42:43 -0800 (PST)
- Subject: Re: compilation problem on SunOS 4.1.3_U1
> Date: Mon, 18 Mar 2002 14:17:08 -0600
> From: "Hsueh-Mei Tsai(May Tsai)" <may-tsai@ti.com>
> To: gcc-bugs@gcc.gnu.org, gcc@gcc.gnu.org
You only need to pick the most relevant address to send to.
> I encountered the following error when trying to compile gcc 2.95.3 on
> SunOS 4.1.3_U1
> /usr/include/sys/stdtypes.h:27: conflicting types for `size_t'
> /export/tool/build/UTKgcc/sunos-objdir/gcc/include/stddef.h:170:
> previous declaration of `size_t'
> /usr/include/sys/stdtypes.h:28: warning: redefinition of `ptrdiff_t'
> /export/tool/build/UTKgcc/sunos-objdir/gcc/include/stddef.h:118:
> warning: `ptrdiff_t' previously declared here
> /usr/include/sys/stdtypes.h:30: warning: redefinition of `wchar_t'
> /export/tool/build/UTKgcc/sunos-objdir/gcc/include/stddef.h:255:
> warning: `wchar_t' previously declared here
> make: *** [fdmatch.o] Error 1
> Basically, redefinition of types size_t, prtdiff_t and wchar_t that
> causes conflicting types so compiler bump out. Anyway to get around
> or fix it?
Yes, you would need to re-port the software to work on SunOS 4.1.3.
There is a porting manual, should you feel the urge to undertake the
task. It won't specifically tell you how to fix this error, though.
Most the rest of us, have fixed the problem, bu upgrading to Solaris
2.5.1, or later. Offhand, that may be the easiest solution to this
problem.