This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compilation problem on SunOS 4.1.3_U1


Hi,

I encountered the following error when trying to compile gcc 2.95.3 on
SunOS 4.1.3_U1

 /export/tool/build/UTKgcc/sunos-objdir/gcc/xgcc
-B/export/tool/build/UTKgcc/sunos-objdir/gcc/
-B/usr/local/sparc-sun-sunos4.1.3_U1/bin/ -c -DHAVE_CONFIG_H -g -O2 -I.
-I/export/tool/build/UTKgcc/gcc-2.95.3/libiberty/../include
/export/tool/build/UTKgcc/gcc-2.95.3/libiberty/fdmatch.c -o
pic/fdmatch.o
/export/tool/build/UTKgcc/sunos-objdir/gcc/xgcc
-B/export/tool/build/UTKgcc/sunos-objdir/gcc/
-B/usr/local/sparc-sun-sunos4.1.3_U1/bin/ -c -DHAVE_CONFIG_H -g -O2 -I.
-I/export/tool/build/UTKgcc/gcc-2.95.3/libiberty/../include
/export/tool/build/UTKgcc/gcc-2.95.3/libiberty/fdmatch.c
In file included from /usr/include/sys/types.h:16,
                 from
/export/tool/build/UTKgcc/gcc-2.95.3/libiberty/fdmatch.c:52:
/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?

Thanks and Regards,
-May


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]