PCC-S-02102, Fatal error while doing C preprocessing
While porting my solaris code to redhat linux (RHEL4) my pro*c code is giving following errors,
Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Nov 22 12:38:05 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/oracle/product/10.2.0/client_1/precomp/admin/pcscfg.cfg
Syntax error at line 43, column 1, file /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/stdarg.h:
Error at line 43, column 1 in file /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/stdarg.h
typedef __builtin_va_list __gnuc_va_list;
1
PCC-S-02201, Encountered the symbol "typedef" when expecting one of the following:
; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "typedef" to continue.
Syntax error at line 110, column 9, file /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/stdarg.h:
Error at line 110, column 9 in file /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/stdarg.h
typedef __gnuc_va_list va_list;
........1
PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the following:
auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name,
The symbol "enum," was substituted for "__gnuc_va_list" to continue.
..........................
..........................
..........................
Error at line 0, column 0 in file DB.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: *** [dbfile.o] Error 1
Any clues? I am using Oracle10g and gcc version gcc-3.4.3-9.EL4