While compiling ProC application on AIX...getting the following error

       proc  iname=v4_mcdr_6010

ProC/C++: Release 10.2.0.1.0 - Production on Fri Jul 2 11:15:52 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

System default option values taken from: /edw/ora10gclient/10.2.0/client/precomp/admin/pcscfg.cfg

Parser error at line 756, column 32, file /usr/include/sys/thread.h:
Error at line 756, column 32 in file /usr/include/sys/thread.h
        sigset_t        sigmask;
...............................1
PCC-F-02209, Macro invocation has incorrect number of arguments
Syntax error at line 756, column 25, file /usr/include/sys/thread.h:
Error at line 756, column 25 in file /usr/include/sys/thread.h
        sigset_t        sigmask;
........................1
PCC-S-02201, Encountered the symbol "1" when expecting one of the following:

   ( * an identifier,

Syntax error at line 756, column 25, file /usr/include/sys/thread.h:
Error at line 756, column 25 in file /usr/include/sys/thread.h
        sigset_t        sigmask;
........................1
PCC-S-02201, Encountered the symbol ")" when expecting one of the following:

   ; , ( [ * ? | & < > + - / % . ^ | & == != <= >= << >> ++ --
   ->
The symbol "(" was substituted for ")" to continue.

Syntax error at line 246, column 2, file /usr/include/sys/proc.h:
Error at line 246, column 2 in file /usr/include/sys/proc.h
        proc_eye_catch_t                p_eyec;         /* proc eye-catcher */
.1
PCC-S-02201, Encountered the symbol "proc_eye_catch_t" when expecting one of the
 following:

   } char, const, double, enum, float, int, long, ulong_varchar,
   OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
   OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
   OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
   struct, union, unsigned, utext, uvarchar, varchar, void,
   volatile, a typedef name,
The symbol "enum," was substituted for "proc_eye_catch_t" to continue.

Syntax error at line 429, column 3, file /usr/include/sys/proc.h:
Error at line 429, column 3 in file /usr/include/sys/proc.h
         proc_eye_catch_t               pv_eyec;        /* pvproc eye-catcher */
..1
PCC-S-02201, Encountered the symbol "proc_eye_catch_t" when expecting one of the
 following:

   } char, const, double, enum, float, int, long, ulong_varchar,
   OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
   OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
   OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
   struct, union, unsigned, utext, uvarchar, varchar, void,
   volatile, a typedef name,
The symbol "enum," was substituted for "proc_eye_catch_t" to continue.

Syntax error at line 789, column 5, file /usr/include/unistd.h:
Error at line 789, column 5 in file /usr/include/unistd.h
                                {
....1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [
The symbol ";" was substituted for "{" to continue.

Syntax error at line 189, column 1, file v4_mcdr_6010.pc:
Error at line 189, column 1 in file v4_mcdr_6010.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [
The symbol ";" was substituted for "{" to continue.

Syntax error at line 1607, column 1, file v4_mcdr_6010.pc:
Error at line 1607, column 1 in file v4_mcdr_6010.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [
The symbol ";" was substituted for "{" to continue.

Syntax error at line 1615, column 1, file v4_mcdr_6010.pc:
Error at line 1615, column 1 in file v4_mcdr_6010.pc
char file_name[40];
1
PCC-S-02201, Encountered the symbol "char" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "char" to continue.

Syntax error at line 1628, column 1, file v4_mcdr_6010.pc:
Error at line 1628, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1659, column 1, file v4_mcdr_6010.pc:
Error at line 1659, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1683, column 1, file v4_mcdr_6010.pc:
Error at line 1683, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1713, column 1, file v4_mcdr_6010.pc:
Error at line 1713, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1740, column 1, file v4_mcdr_6010.pc:
Error at line 1740, column 1 in file v4_mcdr_6010.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "{" to continue.

Syntax error at line 1746, column 17, file v4_mcdr_6010.pc:
Error at line 1746, column 17 in file v4_mcdr_6010.pc
check_env(char *var)
................1
PCC-S-02201, Encountered the symbol "var" when expecting one of the following:

   ( ) [ * const, volatile,

Syntax error at line 0, column 0, file v4_mcdr_6010.pc:
Error at line 0, column 0 in file v4_mcdr_6010.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:

   ; : an identifier, end-exec, random_terminal

Error at line 0, column 0 in file v4_mcdr_6010.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: 1254-004 The error code from the last command is 1.

Stop.

Edited 3 Years Ago by mike_2000_17: Fixed formatting

Hi , I am also facing the same errors when I tried to use Multithreading in a Proc program on AIX 5.3 . Can Anybody pls help on this problem.

Hi Sachin, You can easily get rid of this precompilation error by precompiling the program by the option code=ansi. I tried this and the code compiled successfully.

Thank you Sholiem....
I make the changes in pcscfg.cfg file and the code was precompiled successfully.
Can you please let me know how to make this change without touching pcscfg.cfg file as you know that We can't modify this file as it is write protected.So each time I can't ask DBA to make change in the file.At command prompt,I ran code=ansi....But it's not working.I have to make change in the configuration file.So please suggest me how to add this option???????

While compiling Pro*C application on AIX...getting the following error

   proc  iname=v4_mcdr_6010

Pro*C/C++: Release 10.2.0.1.0 - Production on Fri Jul 2 11:15:52 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

System default option values taken from: /edw/ora10gclient/10.2.0/client/precomp/admin/pcscfg.cfg

Parser error at line 756, column 32, file /usr/include/sys/thread.h:
Error at line 756, column 32 in file /usr/include/sys/thread.h
        sigset_t        sigmask;
...............................1
PCC-F-02209, Macro invocation has incorrect number of arguments
Syntax error at line 756, column 25, file /usr/include/sys/thread.h:
Error at line 756, column 25 in file /usr/include/sys/thread.h
        sigset_t        sigmask;
........................1
PCC-S-02201, Encountered the symbol "1" when expecting one of the following:

   ( * an identifier,

Syntax error at line 756, column 25, file /usr/include/sys/thread.h:
Error at line 756, column 25 in file /usr/include/sys/thread.h
        sigset_t        sigmask;
........................1
PCC-S-02201, Encountered the symbol ")" when expecting one of the following:

   ; , ( [ * ? | & < > + - / % . ^ | & == != <= >= << >> ++ --
   ->
The symbol "(" was substituted for ")" to continue.

Syntax error at line 246, column 2, file /usr/include/sys/proc.h:
Error at line 246, column 2 in file /usr/include/sys/proc.h
        proc_eye_catch_t                p_eyec;         /* proc eye-catcher */
.1
PCC-S-02201, Encountered the symbol "proc_eye_catch_t" when expecting one of the
 following:

   } char, const, double, enum, float, int, long, ulong_varchar,
   OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
   OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
   OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
   struct, union, unsigned, utext, uvarchar, varchar, void,
   volatile, a typedef name,
The symbol "enum," was substituted for "proc_eye_catch_t" to continue.

Syntax error at line 429, column 3, file /usr/include/sys/proc.h:
Error at line 429, column 3 in file /usr/include/sys/proc.h
         proc_eye_catch_t               pv_eyec;        /* pvproc eye-catcher */
..1
PCC-S-02201, Encountered the symbol "proc_eye_catch_t" when expecting one of the
 following:

   } char, const, double, enum, float, int, long, ulong_varchar,
   OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
   OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
   OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
   struct, union, unsigned, utext, uvarchar, varchar, void,
   volatile, a typedef name,
The symbol "enum," was substituted for "proc_eye_catch_t" to continue.

Syntax error at line 789, column 5, file /usr/include/unistd.h:
Error at line 789, column 5 in file /usr/include/unistd.h
                                {
....1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [
The symbol ";" was substituted for "{" to continue.

Syntax error at line 189, column 1, file v4_mcdr_6010.pc:
Error at line 189, column 1 in file v4_mcdr_6010.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [
The symbol ";" was substituted for "{" to continue.

Syntax error at line 1607, column 1, file v4_mcdr_6010.pc:
Error at line 1607, column 1 in file v4_mcdr_6010.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [
The symbol ";" was substituted for "{" to continue.

Syntax error at line 1615, column 1, file v4_mcdr_6010.pc:
Error at line 1615, column 1 in file v4_mcdr_6010.pc
char file_name[40];
1
PCC-S-02201, Encountered the symbol "char" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "char" to continue.

Syntax error at line 1628, column 1, file v4_mcdr_6010.pc:
Error at line 1628, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1659, column 1, file v4_mcdr_6010.pc:
Error at line 1659, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1683, column 1, file v4_mcdr_6010.pc:
Error at line 1683, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1713, column 1, file v4_mcdr_6010.pc:
Error at line 1713, column 1 in file v4_mcdr_6010.pc
int n;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "int" to continue.

Syntax error at line 1740, column 1, file v4_mcdr_6010.pc:
Error at line 1740, column 1 in file v4_mcdr_6010.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:

   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "{" to continue.

Syntax error at line 1746, column 17, file v4_mcdr_6010.pc:
Error at line 1746, column 17 in file v4_mcdr_6010.pc
check_env(char *var)
................1
PCC-S-02201, Encountered the symbol "var" when expecting one of the following:

   ( ) [ * const, volatile,

Syntax error at line 0, column 0, file v4_mcdr_6010.pc:
Error at line 0, column 0 in file v4_mcdr_6010.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:

   ; : an identifier, end-exec, random_terminal

Error at line 0, column 0 in file v4_mcdr_6010.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: 1254-004 The error code from the last command is 1.

Stop.

Edited 3 Years Ago by mike_2000_17: Fixed formatting

Can you please tell what changes did you make in the file pcscfg.cfg. ..? May be I can help you with something...

This article has been dead for over six months. Start a new discussion instead.