[Bug other/12505] New: build failure due to defines of uchar in cpphash.h and sys/types.h

stuart_yarus at compusa dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 3 19:37:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12505

           Summary: build failure due to defines of uchar in cpphash.h and
                    sys/types.h
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stuart_yarus at compusa dot com
                CC: gcc-bugs at gcc dot gnu dot org,stuart_yarus at compusa
                    dot com
 GCC build triplet: powerpc-ibm-aix4.1.5.0
  GCC host triplet: powerpc-ibm-aix4.1.5.0
GCC target triplet: powerpc-ibm-aix4.1.5.0

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



More information about the Gcc-bugs mailing list