Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   PCC-S-02201 Error while compiling Proc program (http://www.go4expert.com/forums/pcc-s-02201-error-compiling-proc-program-t680/)

narayananml 3Apr2006 12:59

PCC-S-02201 Error while compiling Proc program
 
Hi,

The following error message was thing we got while we compiling the Proc File
which was previously running in oracle8 and it is migrated to oracle 9i where we need to recompile it again, can anybody help us from sorting out this problem.

laxwu41 PARTPICK [293]: make -f makefile
rm -f /u02/apps/partpick/src/mfg_file/create_mfg_file.o
rm -f /u02/apps/partpick/src/mfg_file/create_mfg_file.c
rm -f /u02/apps/partpick/bin/mfg_file/create_mfg_file.exe
rm -f /u02/apps/partpick/src/mfg_file/lex_mfg_file.o
rm -f /u02/apps/partpick/src/mfg_file/wac_mfg_file.o
/u01/home/dba/oracle/product/9.2.0.6/bin/proc include=., include=/u02/a
pps/partpick/lib/common, include=/u02/apps/partpick/lib/mdp_common, include=/u
01/home/dba/oracle/product/9.2.0.6/precomp/public, code=ansi_c, dbms=native, sql
check=syntax, userid=partpick/partpick98, lines=yes, errors=yes iname=create_mf
g_file.pc

Pro*C/C++: Release 9.2.0.6.0 - Production on Tue Mar 28 01:08:35 2006

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

System default option values taken from: /u01/home/dba/oracle/product/9.2.0.6/pr
ecomp/admin/pcscfg.cfg

PCC-I-02106, Userid only used when SQLCHECK = FULL, userid ignored.
Syntax error at line 595, column 38, file /usr/include/stdio.h:
Error at line 595, column 38 in file /usr/include/stdio.h
extern int vscanf(const char *, __va_list);
.....................................1
PCC-S-02201, Encountered the symbol "__va_list" when expecting one of the follow
ing:

... 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 "auto," was substituted for "__va_list" to continue.

Syntax error at line 596, column 49, file /usr/include/stdio.h:
Error at line 596, column 49 in file /usr/include/stdio.h
extern int vfscanf(__FILE *, const char *, __va_list);
................................................1
PCC-S-02201, Encountered the symbol "__va_list" when expecting one of the follow
ing:u41 PARTPICK [292]: laxwu41 PARTPICK [292]: laxwu41 PARTPICK [292]: laxwu41
PARTPICK [292]:
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,ICK [292]:
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 "auto," was substituted for "__va_list" to continue.
laxwu41 PARTPICK [292]:
Syntax error at line 597, column 47, file /usr/include/stdio.h:
Error at line 597, column 47 in file /usr/include/stdio.h
extern int vsscanf(char *, const char *, __va_list);
..............................................1
PCC-S-02201, Encountered the symbol "__va_list" when expecting one of the follow
ing:

... 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 "auto," was substituted for "__va_list" to continue.

Syntax error at line 119, column 19, file /usr/include/stdlib.h:
Error at line 119, column 19 in file /usr/include/stdlib.h
extern div_t div(int, int);
..................1
PCC-S-02201, Encountered the symbol "div" when expecting one of the following:

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

Syntax error at line 120, column 20, file /usr/include/stdlib.h:
Error at line 120, column 20 in file /usr/include/stdlib.h
extern ldiv_t ldiv(long int, long int);
...................1
PCC-S-02201, Encountered the symbol "ldiv" when expecting one of the following:

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

Syntax error at line 123, column 32, file /usr/include/stdlib.h:
Error at line 123, column 32 in file /usr/include/stdlib.h
extern int mbtowc(wchar_t *, const char *, size_t);
...............................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 124, column 32, file /usr/include/stdlib.h:
Error at line 124, column 32 in file /usr/include/stdlib.h
extern int wctomb(char *, wchar_t);
...............................1
PCC-S-02201, Encountered the symbol "wchar_t" when expecting one of the followin
g:

... 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 "auto," was substituted for "wchar_t" to continue.

Syntax error at line 125, column 37, file /usr/include/stdlib.h:
Error at line 125, column 37 in file /usr/include/stdlib.h
extern size_t mbstowcs(wchar_t *, const char *, size_t);
....................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, )

Syntax error at line 126, column 51, file /usr/include/stdlib.h:
Error at line 126, column 51 in file /usr/include/stdlib.h
extern size_t wcstombs(char *, const wchar_t *, size_t);
.................................................. 1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

, ( ) [
The symbol "*" was ignored.

Syntax error at line 76, column 7, file /usr/include/sys/sigevent.h:
Error at line 76, column 7 in file /usr/include/sys/sigevent.h
sigval_t __sigev_value; /* signal value */
......1
PCC-S-02201, Encountered the symbol "sigval_t" when expecting one of the followi
ng:

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

Syntax error at line 87, column 7, file /usr/include/sys/sigevent.h:
Error at line 87, column 7 in file /usr/include/sys/sigevent.h
pthread_attr_t *__sigev_notify_attributes;
......1
PCC-S-02201, Encountered the symbol "pthread_attr_t" when expecting one of the f
ollowing:

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

Syntax error at line 427, column 48, file /usr/include/sys/time.h:
Error at line 427, column 48 in file /usr/include/sys/time.h
extern int clock_settime(clockid_t, const struct timespec *);
...............................................1
PCC-S-02201, Encountered the symbol "struct" when expecting one of the following
:

, )

Syntax error at line 428, column 49, file /usr/include/sys/time.h:
Error at line 428, column 49 in file /usr/include/sys/time.h
extern int clock_gettime(clockid_t, struct timespec *);
................................................1
PCC-S-02201, Encountered the symbol "timespec" when expecting one of the followi
ng:

, )

Syntax error at line 0, column 0, file create_mfg_file.pc:
Error at line 0, column 0 in file create_mfg_file.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:

; : an identifier, end-exec, random_terminal

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

Stop.
laxwu41 PARTPICK [294]:

coderzone 3Apr2006 19:34

Re: PCC-S-02201 Error while compiling Proc program
 
Without the code its difficult to tell why the errors are occuring but you can try replacing __va_list with va_list probably.

narayananml 4Apr2006 10:44

Re: PCC-S-02201 Error while compiling Proc program
 
1 Attachment(s)
hi,

There was Proc C program which was allready compiled and running in Oracle 8 on unix environment,this was migrated to oracle 9i. While compiling the pro C programs in Oracle 9i the systems throws error message as stated in error file attachment

I am attaching the zip file which contains the follwoing
1. create_mfg_file
2. stdio
3. error file "comperror"

please get me a solution for this problem

Thanks in advance

Ayshwarya 21Jun2006 11:19

Re: PCC-S-02201 Error while compiling Proc program
 
Hi,

Even I am facing a similar Problem.
Can anyone help on this?

Thanks in advance-
Ayshwarya

Aldo 6Nov2007 00:49

Re: PCC-S-02201 Error while compiling Proc program
 
HI !!!
i have the same problem ... Please confirm if you can solve ??


helppp
thank's !


All times are GMT +5.5. The time now is 10:40.