Home » Developer & Programmer » Precompilers, OCI & OCCI » Pro*c compilation error (Oracle10g, HP-UX 11v2, RHEL4)
Pro*c compilation error [message #276378] Thu, 25 October 2007 01:14 Go to next message
ankurjain
Messages: 11
Registered: July 2007
Location: Vadodara, Gujarat, India
Junior Member
Hi guys,

I am using oracle 10g, proc 10.2.0.1.0.
I am having a strange problem. I don't know wheather its a env problem or installation problem or the behaviour of proc on the two platforms (HP-UX11 and Linux RHEL4 ).

I have Oracle 10g installed on HP-UX and RHEL4 Linux. Now the *.pc files compile fine on HP-UX, but they produce lots of errors on Linux Sad

Can't understand why.

On HP-UX i am using cc compiler and on Linux gcc-3.4.6 compiler .

If anybody got any idea .. please reply ...

The error messages in Linux area as follows :

Syntax error at line 200, column 23, file incident.pc:
Error at line 200, column 23 in file incident.pc
static MisIncidentRec   *misInciRecords = NULL; /*Global pointer for all the Inc
ident records*/
......................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

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

Syntax error at line 203, column 28, file incident.pc:
Error at line 203, column 28 in file incident.pc
static MisUpdateIncidentCb InciCallbacks[MIS_MAX_INCI_CALLBACKS];
...........................1
PCC-S-02201, Encountered the symbol "InciCallbacks" when expecting one of the fo
llowing:

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

Syntax error at line 213, column 52, file incident.pc:
Error at line 213, column 52 in file incident.pc
static void UpdateGlobalCopyOnInsert(MisIncidentRec* pIncidentRec);
...................................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

   , )

[Updated on: Thu, 25 October 2007 02:41] by Moderator

Report message to a moderator

Re: Pro*c compilation error [message #276418 is a reply to message #276378] Thu, 25 October 2007 02:13 Go to previous messageGo to next message
Michel Cadot
Messages: 58638
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
What is the command you use to precompile?

Regards
Michel
Re: Pro*c compilation error [message #276431 is a reply to message #276418] Thu, 25 October 2007 02:34 Go to previous message
ankurjain
Messages: 11
Registered: July 2007
Location: Vadodara, Gujarat, India
Junior Member
here is the o/p from the makefile on linux


Quote:

proc LINES=YES CODE=ANSI_C HOLD_CURSOR=NO RELEASE_CURSOR=NO MODE=ORACLE DEFINE=ORACLE10 SQLCHECK=SEMANTICS USERID=mis/mis@skoda INCLUDE=. INCLUDE=/home/ankur/tms/adm/wr/mis/include INCLUDE=/home/tmsadmin/tms/adm/wr/mis/include INCLUDE=/home/ankur/tms/mis/include INCLUDE=/home/tmsadmin/tms/mis/include INCLUDE=/home/ankur/tms/adm/wr/include INCLUDE=/home/tmsadmin/tms/adm/wr/include INCLUDE=/home/ankur/tms/include INCLUDE=/home/tmsadmin/tms/include INCLUDE=/home/ankur/tms/local/include INCLUDE=/home/tmsadmin/tms/local/include INCLUDE=/home/ankur/tms/include/compat/Linux INCLUDE=/home/tmsadmin/tms/include/compat/Linux INCLUDE=/u02/app/oracle/product/10.2.0.1.0/precomp/public INCLUDE=/home/ankur/tms/include INCLUDE=/home/tmsadmin/tms_e_r511f_bin/local/include/ INCLUDE=/usr/X11/include INCLUDE=/usr/include iname=incident.pc

Pro*C/C++: Release 10.2.0.1.0 - Production on Thu Oct 25 10:36:29 2007

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

System default option values taken from: /u02/app/oracle/product/10.2.0.1.0/precomp/admin/pcscfg.cfg

rm error.h
rm tp* -f
gcc -DORACLE10 -I. -I/home/ankur/tms/adm/wr/mis/include -I/home/tmsadmin/tms/adm/wr/mis/include -I/home/ankur/tms/mis/include -I/home/tmsadmin/tms/mis/include -I/home/ankur/tms/adm/wr/include -I/home/tmsadmin/tms/adm/wr/include -I/home/ankur/tms/include -I/home/tmsadmin/tms/include -I/home/ankur/tms/local/include -I/home/tmsadmin/tms/local/include -I/home/ankur/tms/include/compat/Linux -I/home/tmsadmin/tms/include/compat/Linux -I/u02/app/oracle/product/10.2.0.1.0/precomp/public -I/home/ankur/tms/include -I/home/tmsadmin/tms_e_r511f_bin/local/include/ -I/usr/X11/include -I/usr/include -MMD -g -DPIC -fpic -c incident.c -o incident.o
incident.pc: In function `MisGetAllIncidentRecords':
incident.pc:328: error: `EXEC' undeclared (first use in this function)
incident.pc:328: error: (Each undeclared identifier is reported only once
incident.pc:328: error: for each function it appears in.)
incident.pc:328: error: syntax error before "SQL"
incident.pc:400: error: syntax error before "SQL"
incident.pc:408: error: syntax error before "SQL"
incident.pc:423: error: syntax error before "SQL"
incident.pc:434: error: syntax error before "SQL"
incident.pc: In function `MisUpdateIncidentRecord':
incident.pc:549: error: `EXEC' undeclared (first use in this function)
incident.pc:549: error: syntax error before "SQL"
incident.pc: In function `MisInsertIncidentRecord':
incident.pc:678: error: `EXEC' undeclared (first use in this function)
incident.pc:678: error: syntax error before "SQL"
incident.pc: In function `MisInciGetFilteredInciRec':
incident.pc:876: error: `EXEC' undeclared (first use in this function)
incident.pc:876: error: syntax error before "SQL"
incident.pc:890: error: syntax error before "SQL"
incident.pc:978: error: syntax error before "SQL"
incident.pc:985: error: syntax error before "SQL"
.......
Previous Topic: Error in Pro*c compilation
Next Topic: How will connect to database from C++
Goto Forum:
  


Current Time: Thu Jul 31 15:37:57 CDT 2014

Total time taken to generate the page: 0.05739 seconds