This discussion is archived
0 Replies Latest reply: Sep 3, 2012 2:47 AM by 959612 RSS

Problem during compilation PCC-S-02201 error

959612 Newbie
Currently Being Moderated
Hi,

I am currently working in a compilation of a Pro C code and getting PCC-S-02201 error. I am using Sun Solaris unix with Oracke 9.2. The error details are as below:--


lont02a003vu% make
make[1]: Entering directory `/export/home/arbor/manish/newbem/PRP_BEM/build'
/product/oracle/9.2.0/bin/proc sqlcheck=syntax CHAR_MAP=VARCHAR2, DBMS=V8 iname=../pc/prp_bem.pc oname=../c/prp_bem.c include=/usr/include include=../inc include=../obj include=../common/inc include=/include include=/product/oracle/9.2.0/precomp/public

Pro*C/C++: Release 9.2.0.8.0 - Production on Mon Sep 3 10:38:50 2012

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

System default option values taken from: /product/oracle/9.2.0/precomp/admin/pcscfg.cfg

Syntax error at line 69, column 16, file /usr/include/sys/uio.h:
Error at line 69, column 16 in file /usr/include/sys/uio.h
char lloff_t uiooffset; /* file offset */
...............1
PCC-S-02201, Encountered the symbol "_uio_offset" when expecting one of the foll
owing:

; , : ( [
The symbol "," was substituted for "_uio_offset" to continue.

Syntax error at line 72, column 16, file /usr/include/sys/uio.h:
Error at line 72, column 16 in file /usr/include/sys/uio.h
char lloff_t uiolimit; /* u-limit (maximum byte offset) */
...............1
PCC-S-02201, Encountered the symbol "_uio_limit" when expecting one of the follo
wing:

; , : ( [
The symbol "," was substituted for "_uio_limit" to continue.

Syntax error at line 57, column 35, file /usr/include/sys/rwstlock.h:
Error at line 57, column 35 in file /usr/include/sys/rwstlock.h
extern void rwst_enter(rwstlock_t *, krw_t);
..................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 58, column 38, file /usr/include/sys/rwstlock.h:
Error at line 58, column 38 in file /usr/include/sys/rwstlock.h
extern int rwst_enter_sig(rwstlock_t *, krw_t);
.....................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 59, column 34, file /usr/include/sys/rwstlock.h:
Error at line 59, column 34 in file /usr/include/sys/rwstlock.h
extern void rwst_exit(rwstlock_t *);
.................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 60, column 34, file /usr/include/sys/rwstlock.h:
Error at line 60, column 34 in file /usr/include/sys/rwstlock.h
extern void rwst_init(rwstlock_t *, char *, krw_type_t, void *);
.................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 61, column 37, file /usr/include/sys/rwstlock.h:
Error at line 61, column 37 in file /usr/include/sys/rwstlock.h
extern void rwst_destroy(rwstlock_t *);
....................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 62, column 38, file /usr/include/sys/rwstlock.h:
Error at line 62, column 38 in file /usr/include/sys/rwstlock.h
extern int rwst_lock_held(rwstlock_t *, krw_t);
.....................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 63, column 37, file /usr/include/sys/rwstlock.h:
Error at line 63, column 37 in file /usr/include/sys/rwstlock.h
extern int rwst_tryenter(rwstlock_t *, krw_t);
....................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 88, column 37, file /usr/include/sys/vmem.h:
Error at line 88, column 37 in file /usr/include/sys/vmem.h
typedef void *(vmem_alloc_t)(vmem_t *, size_t, int);
....................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 89, column 35, file /usr/include/sys/vmem.h:
Error at line 89, column 35 in file /usr/include/sys/vmem.h
typedef void (vmem_free_t)(vmem_t *, void *, size_t);
..................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 95, column 39, file /usr/include/sys/vmem.h:
Error at line 95, column 39 in file /usr/include/sys/vmem.h
typedef void *(vmem_ximport_t)(vmem_t *, size_t *, int);
......................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 105, column 15, file /usr/include/sys/vmem.h:
Error at line 105, column 15 in file /usr/include/sys/vmem.h
extern vmem_t vmem_create(const char , void *, size_t, size_t,
..............1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

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

Syntax error at line 106, column 5, file /usr/include/sys/vmem.h:
Error at line 106, column 5 in file /usr/include/sys/vmem.h
vmem_alloc_t *, vmem_free_t *, vmem_t *, size_t, int);
....1
PCC-S-02201, Encountered the symbol "vmem_alloc_t" when expecting one of the fol
lowing:

... 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 "exec," was substituted for "vmem_alloc_t" to continue.

Syntax error at line 107, column 1, file /usr/include/sys/vmem.h:
Error at line 107, column 1 in file /usr/include/sys/vmem.h
extern vmem_t vmem_xcreate(const char , void *, size_t, size_t,
1
PCC-S-02201, Encountered the symbol "extern" when expecting one of the following
:

, )

Error at line 0, column 0 in file ../pc/prp_bem.pc
PCC-F-02102, Fatal error while doing C preprocessing
make[1]: *** [../obj/prp_bem.o] Error 1
make[1]: Leaving directory `/export/home/arbor/manish/newbem/PRP_BEM/build'
make: *** [all] Error 2


And my pcscfg.cfg file looks as follows :--

sys_include=(/usr/include,$ORACLE_HOME/precomp/public,/usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/include)ltype=short
DEFINE=__sparc
include=$(ORACLE_HOME)/precomp/public
include=$(ORACLE_HOME)/precomp/hdrs
include=$(ORACLE_HOME)/tpcc2x_2/src
include=$(ORACLE_HOME)/precomp/include
include=$(ORACLE_HOME)/oracore/include
include=$(ORACLE_HOME)/oracore/public
include=$(ORACLE_HOME)/rdbms/include
include=$(ORACLE_HOME)/rdbms/public
include=$(ORACLE_HOME)/rdbms/demo
include=$(ORACLE_HOME)/nlsrtl/include
include=$(ORACLE_HOME)/nlsrtl/public
include=$(ORACLE_HOME)/network_src/include
include=$(ORACLE_HOME)/network_src/public
include=$(ORACLE_HOME)/network/include
include=$(ORACLE_HOME)/network/public
include=$(ORACLE_HOME)/plsql/public
ltype=short
MODE=ANSI
CODE=ANSI_C
lines=yes
SQLCHECK=SEMANTICS


I have tried going through all the forums, But not able to come up with possible solution. Please let me know if any one has come across the same error and solved it.

Thank you.

Legend

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