This discussion is archived
1 Reply Latest reply: Feb 18, 2013 7:22 AM by 943610 RSS

pro*c compile error - PCC-S-02201 ERROR

826947 Newbie
Currently Being Moderated
HP유닉스 - B.11.31 / ORACLE 11 환경에서
아래와 같이 컴파일 에러가 발생합니다.

vi pcscfg.cfg 환경은 아래와 같습니다. 어떻게 해야 할까요?

sys_include=(/usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/precomp/public,/usr/include,/usr/lib)
ltype=short
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

krbpdt1t:/shome1/mmmsidev/pgm/include>make
proc DYNAMIC=ANSI iname=tranlib tranlib.pc include=/usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/precomp/public include=/usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/rdbms/public include=/usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/rdbms/demo include=/usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/plsql/public include=/usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/network/public

Pro*C/C++: Release 11.1.0.7.0 - Production on Mon Feb 18 22:02:58 2013

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

System default option values taken from: /usr/oracle11_1/app/oracle11/product/11.1.7/dbhome_1/precomp/admin/pcscfg.cfg

Syntax error at line 17, column 8, file tranlib.pc:
Error at line 17, column 8 in file tranlib.pc
FILE *LogFd;
.......1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

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

Syntax error at line 136, column 22, file tranlib.pc:
Error at line 136, column 22 in file tranlib.pc
time_t seconds;
.....................1
PCC-S-02201, Encountered the symbol "seconds" when expecting one of the followin
g:

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

Syntax error at line 366, column 6, file tranlib.pc:
Error at line 366, column 6 in file tranlib.pc
FILE lib_fopen(char mode, char file_name)
.....1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

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

Syntax error at line 403, column 45, file tranlib.pc:
Error at line 403, column 45 in file tranlib.pc
int lib_fread(char read_buf, int read_len, FILE read_fd)
............................................1
PCC-S-02201, Encountered the symbol "FILE" 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, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "FILE" to continue.

Syntax error at line 426, column 48, file tranlib.pc:
Error at line 426, column 48 in file tranlib.pc
int lib_fwrite(char write_buf, int write_len, FILE write_fd)
...............................................1
PCC-S-02201, Encountered the symbol "FILE" 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, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "FILE" to continue.

Syntax error at line 440, column 22, file tranlib.pc:
Error at line 440, column 22 in file tranlib.pc
void lib_fclose(FILE *fd)
.....................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Error at line 0, column 0 in file tranlib.pc
PCC-F-02102, Fatal error while doing C preprocessing
*** Error exit code 1
  • 1. Re: pro*c compile error - PCC-S-02201 ERROR
    943610 Newbie
    Currently Being Moderated
    stdio.h definitely not included. If it was and if you had bad include path, the error would be different:
    Error at line 1, column 10 in file test.h
    #include <stdio.h>
    .........1
    PCC-S-02015, unable to open include file
    Add the missing "#include <stdio.h>" in your .pc file or .h files it includes.

    Edited by: 940607 on Feb 18, 2013 7:21 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points