Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Compilation error in old code migration
Hi all,
We are trying to port all of our old applications from Solaris 8/Oracle
9 to Solaris 10/Oracle 10g but having trouble recompiling the binaries.
This is what we do and the error we get:
cc ../src/PServer.c -DSOLARIS_PORT -g -xs -DDEBUG -I.
-I../ThirdParty/open
ssl-0.9.8a/include -I../include -I../include
-D_POSIX_C_SOURCE=199506L -D__EXT
ENSIONS__ -D_THREADED -DOPENSOCKETAFTERINIT -I../include -c -o
./PServer.o
/oracle_home/oracle/product/10.2.0/bin/proc ireclen=512 oreclen=512
sqlcheck=ful
l userid=qa/qa_at_qa code=ANSI_C
include=../ThirdParty/openssl-0.9.8a/include inclu
de=../include include=/usr/include
include=/oracle_home/oracle/product/10.2.0/pr
ecomp/public include=../include iname=../src/DBServer.pc
oname=../src/DBServer.c
Pro*C/C++: Release 10.2.0.2.0 - Production on Mon Nov 13 16:38:07 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from:
/oracle_home/oracle/product/10.2.0/prec
omp/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.
.... some more errors...
Error at line 0, column 0 in file ../src/DBServer.pc
PCC-F-02102, Fatal error while doing C preprocessing
gmake: *** [DBServer.o] Error 1
What are we doing wrong here? Appreciate any help. Thanks, Received on Wed Nov 15 2006 - 09:29:02 CST
![]() |
![]() |