Problems compiling C process on Oracle 10 databases

We are in the process of trying to move to Oracle 10 and are having problems with some of our C processes. Just wondering if anyone out there has come across the same problem and has found a solution. Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

c compile

I have assisted with 10g moves on unix (several flavors) and windows.

I have not yet run into any problem with C compiles. There are necessary changes to the sctproc.mk (or windows sctproc.pl) and a few other tweaks.

What platform and what problems?

Dave
---------------
Dave Hill, RTS Inc.
OCP Oracle DBA
www.rtsdba.com
--------------
Cherish the good times, endure the bad,
for this too will pass.

c compile

We are on unix and are trying to move to 10g. Some of the processes compile fine and others trigger syntax errors for guarpfe.h, guastdf.h, and stdio.h files. What kind of changes did you make to your sctproc.mk file and what kind of tweaks did you have to do? Here are some of the syntax errors I get when I try to compile a process.

Syntax error at line 500, column 9, file /u01/app/sct/D10711/general/c/guastdf.h:
Error at line 500, column 9 in file /u01/app/sct/D10711/general/c/guastdf.h
FNSTRUC exefile;
........1
PCC-S-02201, Encountered the symbol "exefile" when expecting one of the followin
g:

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

Syntax error at line 122, column 21, file /u01/app/sct/D10711/general/c/guarpfe.h:
Error at line 122, column 21 in file /u01/app/sct/D10711/general/c/guarpfe.h
int report(selfcn_t selfcn,voidfcn_t body,voidfcn_t head,voidfcn_t foot);
....................1
PCC-S-02201, Encountered the symbol "selfcn" when expecting one of the following
:

, )

Error at line 0, column 0 in file zhrtrtc.pc
PCC-F-02102, Fatal error while doing C preprocessing
*** Error exit code 1

c compile

Here is the difference list between a 9i and 10g sctproc.mk file on a AIX server using IBM(R) XL C Enterprise Edition V7.0

XXX
diff prod/general/c/sctproc.mk prod9i/general/c/sctproc.mk
35,36c35
< #CC=cc
< CC=oraxlc
---
> CC=cc
41c40
< #STRIP=-s
---
> STRIP=-s
60c59
< DBMS= dbms=v8 unsafe_null=yes
---
> DBMS= dbms=v8
102,103c101
< #CFLAGS=-I. -I$(GINC) -I$(ORACLE_HOME)/precomp/public -I$(GENC) -O $(ANSI) $(STRIP) $(CCHECK) $(ENV)
< CFLAGS=-I. -I$(GINC) -I$(GENC) -I$(ORACLE_HOME)/precomp/public $(ANSI) $(STRIP) $(OPT) $(CCHECK) $(ENV)
---
> CFLAGS=-I. -I$(GINC) -I$(ORACLE_HOME)/precomp/public -I$(GENC) -O $(ANSI) $(STRIP) $(CCHECK) $(ENV)

XXX

---------------
Dave Hill, RTS Inc.
OCP Oracle DBA
www.rtsdba.com
--------------
Cherish the good times, endure the bad,
for this too will pass.