javaop.h type collision on AIX

David Edelsohn dje@watson.ibm.com
Sat Nov 14 16:06:00 GMT 1998


>>>>> Per Bothner writes:

Per> It seems like there is a third problem:  Why are we seeing the
Per> conflicting definition anyway?  Is AIX polluting the application
Per> namespace, or is there something else going on?

	Appended is the end of the Make output before the failure.  The
include file lineage is java/parse.c includes a number of standard headers
which include <sys/types.h> which includes <sys/inttypes.h> which defines
int8.  int8 only is suppose to be typedef'ed if _ALL_SOURCE is defined,
which GCC does not.  I cannot find a source of that definition, but those
typedefs somehow are slipping through.

David

stage1/xgcc -Bstage1/ -B/usr/local/powerpc-ibm-aix4.3.1.0/bin/ -c  -DIN_GCC    -W -Wall -O2 -g -O2     -I. -I.. -I/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java -I/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/.. -I/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/../config -I/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/../../include /.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/parse.c
In file included from ./parse.y:50:
include/stdlib.h:561: warning: `EXIT_FAILURE' redefined
include/stdlib.h:98: warning: this is the location of the previous definition
In file included from /.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/jcf.h:28,
                 from ./parse.y:66:
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/javaop.h:29: conflicting types for `int8'
/usr/include/sys/inttypes.h:584: previous declaration of `int8'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c: In function `java_lex':
In file included from ./parse.y:2081:
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:448: warning: variable `c' might be clobbered by `longjmp' or `vfork'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:505: warning: `seen_star' might be used uninitialized in this function
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:581: warning: variable `literal_index' might be clobbered by `longjmp' or `vfork'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:674: warning: variable `stage' might be clobbered by `longjmp' or `vfork'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:675: warning: variable `seen_digit' might be clobbered by `longjmp' or `vfork'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:676: warning: variable `seen_exponent' might be clobbered by `longjmp' or `vfork'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:677: warning: variable `fflag' might be clobbered by `longjmp' or `vfork'
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/lex.c:740: warning: variable `type' might be clobbered by `longjmp' or `vfork'
./parse.y: In function `method_header':
./parse.y:2989: warning: `meth_name' might be used uninitialized in this function
./parse.y: In function `get_printable_method_name':
./parse.y:3982: warning: `name' might be used uninitialized in this function
./parse.y: In function `read_import_dir':
./parse.y:4574: warning: `len' might be used uninitialized in this function
./parse.y: In function `find_in_imports_on_demand':
./parse.y:4618: warning: `node_to_use' might be used uninitialized in this function
./parse.y:4620: warning: `cl' might be used uninitialized in this function
./parse.y: In function `resolve_qualified_expression_name':
./parse.y:5732: warning: `field_decl' might be used uninitialized in this function
./parse.y: In function `patch_method_invocation_stmt':
./parse.y:6065: warning: `class_to_search' might be used uninitialized in this function
./parse.y: In function `patch_assignment':
./parse.y:7363: warning: `lhs_type' might be used uninitialized in this function
./parse.y: In function `patch_binop':
./parse.y:7811: warning: `prom_type' might be used uninitialized in this function
./parse.y: In function `patch_unaryop':
./parse.y:8331: warning: `prom_type' might be used uninitialized in this function
./parse.y: In function `build_try_statement':
./parse.y:9461: warning: `rff' might be used uninitialized in this function
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/javaop.h: At top level:
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/javaop.h:108: warning: `WORD_TO_FLOAT' defined but not used
/.../watson.ibm.com/fs/system/local/applications/gnu.build/devo/egcs/gcc/java/javaop.h:127: warning: `WORDS_TO_DOUBLE' defined but not used
make[3]: *** [parse.o] Error 1
make[3]: Leaving directory `/a/rios10/homes/rios10.5/tmp/egcs/gcc/java'
make[2]: *** [jc1] Error 2
make[2]: Leaving directory `/a/rios10/homes/rios10.5/tmp/egcs/gcc'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/a/rios10/homes/rios10.5/tmp/egcs/gcc'
make: *** [bootstrap-lean] Error 2




More information about the Gcc-bugs mailing list