proc编译出错,急,请好心人帮忙

[复制链接]
查看11 | 回复2 | 2012-5-21 10:19:41 | 显示全部楼层 |阅读模式
从HP-UNIX(版本:B.11.00)Oracle(版本:8.1.5)移植到AIX(版本:5.3.0.0)Oracle(版本:10.2.0)
在HP-UNIX下是编译通过的,但是在AIX下编译出错:
$ make
proc -I/oracle/app/oracle/product/10.2.0/db_1/precomp/public parse=fulluserid=settle/scsettle iname=capture.pc
Pro*C/C++: Release 10.2.0.4.0 - Production on Mon Mar 22 09:49:40 2010
Copyright (c) 1982, 2007, Oracle.All rights reserved.
System default option values taken from: /oracle/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
PCC-I-02106, Userid only used when SQLCHECK = FULL, userid ignored.
Syntax error at line 135, column 2, file /usr/include/standards.h:
Error at line 135, column 2 in file /usr/include/standards.h
#warningThe -qdfp option is required to process DFP code in headers.
.1
PCC-S-02014, Encountered the symbol "warning" when expecting one of the followin
g:
a numeric constant, newline, define, elif, else, endif,
error, if, ifdef, ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
The symbol "newline," was substituted for "warning" to continue.
Syntax error at line 434, column 1, file capture.h:
Error at line 434, column 1 in file capture.h
FILE *sp; /*路径ID*/
1
PCC-S-02201, Encountered the symbol "FILE" when expecting one of the following:
auto, char, const, double, enum, exstern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name, a precompiled header, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql end, exec sql type, exec sql var, exec sql include,
The symbol "enum," was substituted for "FILE" to continue.
Syntax error at line 450, column 2, file capture.h:
Error at line 450, column 2 in file capture.h
size_tFileSize;

/*文件大小*/
.1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:
} 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 "size_t" to continue.
Syntax error at line 466, column 1, file capture.h:
Error at line 466, column 1 in file capture.h
FileList *gList;

/*文件列表头接点*/
1
PCC-S-02201, Encountered the symbol "FileList" when expecting one of the followi
ng:
auto, char, const, double, enum, extern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name, a precompiled header, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql end, exec sql type, exec sql var, exec sql include,
The symbol "enum," was substituted for "FileList" to continue.
Syntax error at line 468, column 1, file capture.h:
Error at line 468, column 1 in file capture.h
FileList *pFileList;
1
PCC-S-02201, Encountered the symbol "FileList" when expecting one of the followi
ng:
auto, char, const, double, enum, extern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name, a precompiled header, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql end, exec sql type, exec sql var, exec sql include,
The symbol "enum," was substituted for "FileList" to continue.
Syntax error at line 520, column 1, file capture.h:
Error at line 520, column 1 in file capture.h
RUNNINGLOGSTRUgRunLogStru;
1
PCC-S-02201, Encountered the symbol "RUNNINGLOGSTRU" when expecting one of the f
ollowing:
auto, char, const, double, enum, extern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name, a precompiled header, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql end, exec sql type, exec sql var, exec sql include,
The symbol "enum," was substituted for "RUNNINGLOGSTRU" to continue.
Syntax error at line 572, column 1, file capture.h:
Error at line 572, column 1 in file capture.h
sigjmp_bufftpenv;
1
PCC-S-02201, Encountered the symbol "sigjmp_buf" when expecting one of the follo
wing:
auto, char, const, double, enum, extern, 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,
typedef, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name, a precompiled header, exec oracle,
exec oracle begin, exec, exec sql, exec sql begin,
exec sql end, exec sql type, exec sql var, exec sql include,
The symbol "enum," was substituted for "sigjmp_buf" to continue.
Syntax error at line 582, column 23, file capture.h:
Error at line 582, column 23 in file capture.h
int GetCfg(ConfigFile *p);


/*取系统配置文件capture.ini*/
......................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Syntax error at line 584, column 24, file capture.h:
Error at line 584, column 24 in file capture.h
int ReadCfg(ConfigFile *p,int count);


/*读系统各项参数*/
.......................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Syntax error at line 588, column 52, file capture.h:
Error at line 588, column 52 in file capture.h
int FindItemCfg(char *group,char *item,char *value,ConfigFile *cfg,int count);
/*查找参数配置项*/
...................................................1
PCC-S-02201, Encountered the symbol "ConfigFile" when expecting one of the follo
wing:
... 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 "enum," was substituted for "ConfigFile" to continue.
Syntax error at line 590, column 37, file capture.h:
Error at line 590, column 37 in file capture.h
int GetGolbeVar(const int source_id,ConfigFile *p);


/*获取全局信息*/
....................................1
PCC-S-02201, Encountered the symbol "ConfigFile" when expecting one of the follo
wing:
... 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 "enum," was substituted for "ConfigFile" to continue.
Syntax error at line 596, column 32, file capture.h:
Error at line 596, column 32 in file capture.h
int ReadFileCfgList(ConfigFile *p,int count,char *szConfigId,ListFileInfo* FileI
nfo);/*读取文件列表信息*/
...............................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Syntax error at line 622, column 51, file capture.h:
Error at line 622, column 51 in file capture.h
int UpdateRunningLog(char flag,char * runningname,RUNNINGLOGSTRU runlog);/*修
改运行日志*/
..................................................1
PCC-S-02201, Encountered the symbol "RUNNINGLOGSTRU" when expecting one of the f
ollowing:
... 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 "enum," was substituted for "RUNNINGLOGSTRU" to continue.
Syntax error at line 642, column 32, file capture.h:
Error at line 642, column 32 in file capture.h
void InitFileListNode(FileList *p);


/*初始化文件列表节点*/
...............................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Syntax error at line 644, column 28, file capture.h:
Error at line 644, column 28 in file capture.h
void FreeFileList(FileList *p);


/*释放文件链表*/
...........................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Syntax error at line 652, column 8, file capture.h:
Error at line 652, column 8 in file capture.h
size_t GetFileSize(char* lLine,int OffSet);
/*取文件大小*/
.......1
PCC-S-02201, Encountered the symbol "GetFileSize" when expecting one of the foll
owing:
; , = ( [
The symbol ";" was substituted for "GetFileSize" to continue.
Syntax error at line 654, column 10, file capture.h:
Error at line 654, column 10 in file capture.h
FileList * ReadCapPathToFileList(char * lInPath,char * lMatchPatt,char * lLastFi
leName,char *lMaxFileName,FileList *head,int * flag);
.........1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "*" to continue.
Syntax error at line 654, column 107, file capture.h:
Error at line 654, column 107 in file capture.h
FileList * ReadCapPathToFileList(char * lInPath,char * lMatchPatt,char * lLastFi
leName,char *lMaxFileName,FileList *head,int * flag);
................................................................................
..........................1
PCC-S-02201, Encountered the symbol "FileList" when expecting one of the followi
ng:
... 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 "enum," was substituted for "FileList" to continue.
Syntax error at line 660, column 41, file capture.h:
Error at line 660, column 41 in file capture.h
int InitBakEquipmentCfg(int equipmentid,ConfigFile * p,int Count);/*备份主机信息*/
........................................1
PCC-S-02201, Encountered the symbol "ConfigFile" when expecting one of the follo
wing:
... 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 "enum," was substituted for "ConfigFile" to continue.
Syntax error at line 664, column 27, file capture.h:
Error at line 664, column 27 in file capture.h
int MakeModeFile(int mode,FileList * InputFile,FtpInfo *FtpPara,char* CmdFileNam
e,char* CmdOutFile);
..........................1
PCC-S-02201, Encountered the symbol "FileList" when expecting one of the followi
ng:
... 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 "enum," was substituted for "FileList" to continue.
Syntax error at line 670, column 33, file capture.h:
Error at line 670, column 33 in file capture.h
void SortFileListByKey(FileList *first,FileList *p);
/*文件列表排序*/
................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Syntax error at line 670, column 51, file capture.h:
Error at line 670, column 51 in file capture.h
void SortFileListByKey(FileList *first,FileList *p);
/*文件列表排序*/
..................................................1
PCC-S-02201, Encountered the symbol ")" when expecting one of the following:
; , ( [ * ? | &+ - / % . ^ | & == != = > ++ --
->
The symbol "(" was substituted for ")" to continue.
Syntax error at line 676, column 31, file capture.h:
Error at line 676, column 31 in file capture.h
int HandleRemoteFile(int mode,FileList * handlefile);
..............................1
PCC-S-02201, Encountered the symbol "FileList" when expecting one of the followi
ng:
... 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 "enum," was substituted for "FileList" to continue.
Syntax error at line 14, column 1, file capture.pc:
Error at line 14, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 25, column 13, file capture.pc:
Error at line 25, column 13 in file capture.pc
ConfigFile CfgFile[ITEM_NUM];
............1
PCC-S-02201, Encountered the symbol "CfgFile" when expecting one of the followin
g:
; , = : ( [ * ? | &+ - / % . ^ *= /= %= += -= >=
&&= ||= ^= | & == != = > ++ -- ->
The symbol ";" was substituted for "CfgFile" to continue.
Syntax error at line 104, column 22, file capture.pc:
Error at line 104, column 22 in file capture.pc

EXEC ORACLE OPTION(ORACA=YES);
.....................1
PCC-S-02201, Encountered the symbol "1" when expecting one of the following:
an identifier,
The symbol "an identifier, was inserted before "1" to continue.
Syntax error at line 238, column 19, file capture.pc:
Error at line 238, column 19 in file capture.pc

head=(FileList *)malloc(sizeof(FileList));
..................1
PCC-S-02201, Encountered the symbol ")" when expecting one of the following:
( * & + - ~ ! ^ ++ -- ... sizeof, an identifier,
a quoted string, a numeric constant,
Syntax error at line 352, column 1, file capture.pc:
Error at line 352, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 419, column 1, file capture.pc:
Error at line 419, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 432, column 1, file capture.pc:
Error at line 432, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 449, column 1, file capture.pc:
Error at line 449, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 469, column 1, file capture.pc:
Error at line 469, column 1 in file capture.pc
char * str;
1
PCC-S-02201, Encountered the symbol "char" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "char" to continue.
Syntax error at line 498, column 1, file capture.pc:
Error at line 498, column 1 in file capture.pc
int argc;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "int" to continue.
Syntax error at line 523, column 37, file capture.pc:
Error at line 523, column 37 in file capture.pc
int GetGolbeVar(const int source_id,ConfigFile *p)
....................................1
PCC-S-02201, Encountered the symbol "ConfigFile" when expecting one of the follo
wing:
... 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 "enum," was substituted for "ConfigFile" to continue.
Syntax error at line 524, column 1, file capture.pc:
Error at line 524, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 535, column 8, file capture.pc:
Error at line 535, column 8 in file capture.pc
div_t result;
.......1
PCC-S-02201, Encountered the symbol "result" when expecting one of the following
:
; , = : ( [ * ? | &+ - / % . ^ *= /= %= += -= >=
&&= ||= ^= | & == != = > ++ -- ->
The symbol ";" was substituted for "result" to continue.
Syntax error at line 721, column 1, file capture.pc:
Error at line 721, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 742, column 1, file capture.pc:
Error at line 742, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 777, column 1, file capture.pc:
Error at line 777, column 1 in file capture.pc
int LogId;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "int" to continue.
Syntax error at line 835, column 1, file capture.pc:
Error at line 835, column 1 in file capture.pc
int
StaffId;
1
PCC-S-02201, Encountered the symbol "int" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "int" to continue.
Syntax error at line 881, column 1, file capture.pc:
Error at line 881, column 1 in file capture.pc
{
1
PCC-S-02201, Encountered the symbol "{" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "{" to continue.
Syntax error at line 912, column 32, file capture.pc:
Error at line 912, column 32 in file capture.pc
void InitFileListNode(FileList *p)
...............................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:
, )
Error at line 0, column 0 in file capture.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: 1254-004 The error code from the last command is 1.

Stop.
回复

使用道具 举报

千问 | 2012-5-21 10:19:41 | 显示全部楼层
FILE 貌似在stido.h声明的
回复

使用道具 举报

千问 | 2012-5-21 10:19:41 | 显示全部楼层
应该是C编译器的问题,看看你的C编译器版本
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行