compilation problem on SunOS 4.1.3_U1
Mon Mar 18 12:56:00 GMT 2002
> Date: Mon, 18 Mar 2002 14:17:08 -0600
> From: "Hsueh-Mei Tsai(May Tsai)" <email@example.com>
> To: firstname.lastname@example.org, email@example.com
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'
> previous declaration of `size_t'
> /usr/include/sys/stdtypes.h:28: warning: redefinition of `ptrdiff_t'
> warning: `ptrdiff_t' previously declared here
> /usr/include/sys/stdtypes.h:30: warning: redefinition of `wchar_t'
> 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
More information about the Gcc-bugs