Home » Developer & Programmer » Precompilers, OCI & OCCI » PCC-S-02201 Compile error
PCC-S-02201 Compile error [message #161444] Sat, 04 March 2006 03:43 Go to next message
dhonix
Messages: 1
Registered: March 2006
Location: Philippines
Junior Member
When I try to compile my code I get the following:

Pro*C/C++: Release 9.2.0.6.0 - Production on Fri Mar 3 21:44:57 2006

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

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

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

} 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 "lloff_t" to continue.

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

} 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 "lloff_t" to continue.

Syntax error at line 216, column 2, file /usr/include/sys/socket.h:
Error at line 216, column 2 in file /usr/include/sys/socket.h
sa_family_t sa_family; /* address family */
.1
PCC-S-02201, Encountered the symbol "sa_family_t" when expecting one of the foll
owing:

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 "sa_family_t" to continue.

Syntax error at line 26, column 2, file /usr/include/sys/rwstlock.h:
Error at line 26, column 2 in file /usr/include/sys/rwstlock.h
kcondvar_t rwst_rcv;
.1
PCC-S-02201, Encountered the symbol "kcondvar_t" when expecting one of the follo
wing:

} 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,

I am relatively new to using Pro C please do advice if you need any information. Thank you.
Re: PCC-S-02201 Compile error [message #277500 is a reply to message #161444] Tue, 30 October 2007 06:46 Go to previous messageGo to next message
proc-developer
Messages: 2
Registered: October 2007
Junior Member
Hi,
I am also getting same problem with Solaris 10 + Oracle 10
Using compliers
Pro *C/C++ - Release 10.2
CC Compiler - Sun WorkShop 6 update 2 C 5.3

Please suggest what I need to do to resolve this syntax error /usr/include/sys .h files.

Is there anything wrong with compiler version?Error -

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

} 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 "lloff_t" to continue.
Re: PCC-S-02201 Compile error [message #321402 is a reply to message #277500] Tue, 20 May 2008 03:12 Go to previous messageGo to next message
anandrathi
Messages: 2
Registered: May 2008
Junior Member
The problem is with Pro*C Pre Compiler
Explanation :
The uio.h files seeks definition of _LONG_LONG_HTOL which is defined in
/usr/include/sys/isa_defs.h or [some path ]sys/isa_defs.h

isa_defs.h seeks defination of architecture, Which the relevant compiler must be passing
like i386 , __sparc.. etc

Now pro*c dosent implicitly define this macro so ultimately _LONG_LONG_HTOL uio.h dosent
get _LONG_LONG_HTOL definition.

So you must define it explicitly like

DEFINE=__sparc
either at command line or in ${ORACLE_HOME}/precomp/admin/pcscfg.cfg

which will solve this problem

Thanks
Anand Rathi
Systems Architect
Re: PCC-S-02201 Compile error [message #388860 is a reply to message #277500] Thu, 26 February 2009 07:22 Go to previous message
chrismuller
Messages: 1
Registered: February 2009
Junior Member
Hi Anand

I had this exact problem, stumbled across this forum, and your explanation and solution was 100%.

Thanks alot
Previous Topic: sys.dbms_system.ksdwrt syntax
Next Topic: Pro*C: cursor leak with cursor array
Goto Forum:
  


Current Time: Fri Dec 27 03:58:20 CST 2024