problem: in compiling cpplib.o, 'uchar' defined in gcc/cpphash.h and /usr/include/sys/types.h. log: xlc -c -g -DIN_GCC -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.3.1/gcc -I../ ../gcc-3.3.1/gcc/. -I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include ../../gcc-3.3.1/gcc/cpplib.c -o cpplib.o ../../gcc-3.3.1/gcc/cpphash.h", line 32.23: 1506-334 (S) Identifier uchar h as already been defined on line 175 of "/usr/include/sys/types.h my fix: comment out line 32 result: build continued build was from full distribution gcc-3.3.1.tar.gz. build done with "make bootstrap" configuration options, from gcc -v: Configured with: ../gcc-3.3.1/configure --prefix=/usr/local --libdir=/usr/local/ gcclib --program-suffix=3.3.1 --enable-threads=aix --enable-languages=c,c++ --di sable-libgcj --disable-multilib Thread model: aix gcc version 3.3.1
Fixed on the mainline by: 2003-01-20 Zack Weinberg <zack@codesourcery.com> * configure.in: Check for system-provided 'uchar' type. * configure, config.in: Regenerate. * cpphash.h: Only typedef 'uchar' if the system doesn't. This orginally caused by: 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk> * cpphash.h (cpp_macro): Move here, and make expansion a union. * cppmacro.c (cpp_macro): Remove. (enter_macro_context, replace_args, warn_of_redefinition, _cpp_create_definition, cpp_macro_definition): Update.
Postponed until GCC 3.3.3.
Here is the patch which fixed it: <http://gcc.gnu.org/ml/gcc-patches/2003-01/msg01412.html>.
Gabriel - OK to backport to 3.3 branch?
Subject: Re: [3.3 Regression] build failure due to defines of uchar in cpphash.h and sys/types.h "zack at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes: | Gabriel - OK to backport to 3.3 branch? Yes. Thanks! -- Gaby
Done.
Subject: Bug 12505 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: zack@gcc.gnu.org 2003-12-02 01:56:18 Modified files: gcc : ChangeLog configure.in config.in configure cpphash.h Log message: PR 12505 * configure.in: Check for system-provided 'uchar' type. * configure, config.in: Regenerate. * cpphash.h: Only typedef 'uchar' if the system doesn't. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.814&r2=1.16114.2.815 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.in.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.627.2.18&r2=1.627.2.19 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.in.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.146.2.6&r2=1.146.2.7 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/configure.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.641.2.21&r2=1.641.2.22 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpphash.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.172.4.1&r2=1.172.4.2