PCC-S-02201 Error while compiling Proc program

Discussion in 'C' started by narayananml, Apr 3, 2006.

  1. narayananml

    narayananml New Member

    Joined:
    Apr 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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]:
     
  2. coderzone

    coderzone Super Moderator

    Joined:
    Jul 25, 2004
    Messages:
    736
    Likes Received:
    38
    Trophy Points:
    28
    Without the code its difficult to tell why the errors are occuring but you can try replacing __va_list with va_list probably.
     
  3. narayananml

    narayananml New Member

    Joined:
    Apr 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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
     

    Attached Files:

    • ProC.zip
      File size:
      14.3 KB
      Views:
      512
  4. Ayshwarya

    Ayshwarya New Member

    Joined:
    Jun 21, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

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

    Thanks in advance-
    Ayshwarya
     
  5. Aldo

    Aldo New Member

    Joined:
    Nov 5, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    HI !!!
    i have the same problem ... Please confirm if you can solve ??


    helppp
    thank's !
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice