Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Join Date
    Feb 2004
    Posts
    7

    Unhappy Unanswered: Error Compile Proc*

    Hi all,

    I tried to compile the sample programs for Oracle Pro*C in
    $ORACLE_HOME/precomp/demo
    OS: Unix
    DB: Oracle 8.1.5
    Command: proc sample1.pc

    I get an error message (see below).

    Pro*C/C++: Release 8.1.5.0.0 - Production on Mié Feb 4 17:46:40 2004

    (c) Copyright 1999 Oracle Corporation. All rights reserved.

    Valores de la opción por defecto del sistema tomados de: /usr/users/oracle/oracle/precomp/admin/pcscfg.cfg

    Error de sintaxis en la línea 150, columna 21, fichero /usr/include/stdio.h:
    Error en la línea 150, columna 21 del fichero /usr/include/stdio.h
    extern size_t fread __((void *, size_t, size_t, FILE *));
    ....................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 151, columna 22, fichero /usr/include/stdio.h:
    Error en la línea 151, columna 22 del fichero /usr/include/stdio.h
    extern size_t fwrite __((const void *, size_t, size_t, FILE *));
    .....................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 156, columna 20, fichero /usr/include/stdio.h:
    Error en la línea 156, columna 20 del fichero /usr/include/stdio.h
    extern int _flsbuf __((int, FILE *));
    ...................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 157, columna 20, fichero /usr/include/stdio.h:
    Error en la línea 157, columna 20 del fichero /usr/include/stdio.h
    extern int _filbuf __((FILE *));
    ...................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 158, columna 20, fichero /usr/include/stdio.h:
    Error en la línea 158, columna 20 del fichero /usr/include/stdio.h
    extern int ferror __((FILE *));
    ...................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 159, columna 18, fichero /usr/include/stdio.h:
    Error en la línea 159, columna 18 del fichero /usr/include/stdio.h
    extern int feof __((FILE *));
    .................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 160, columna 23, fichero /usr/include/stdio.h:
    Error en la línea 160, columna 23 del fichero /usr/include/stdio.h
    extern void clearerr __((FILE *));
    ......................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 161, columna 21, fichero /usr/include/stdio.h:
    Error en la línea 161, columna 21 del fichero /usr/include/stdio.h
    extern int putchar __((int));
    ....................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 162, columna 21, fichero /usr/include/stdio.h:
    Error en la línea 162, columna 21 del fichero /usr/include/stdio.h
    extern int getchar __((void));
    ....................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 163, columna 18, fichero /usr/include/stdio.h:
    Error en la línea 163, columna 18 del fichero /usr/include/stdio.h
    extern int putc __((int, FILE *));
    .................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 164, columna 18, fichero /usr/include/stdio.h:
    Error en la línea 164, columna 18 del fichero /usr/include/stdio.h
    extern int getc __((FILE *));
    .................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 165, columna 19, fichero /usr/include/stdio.h:
    Error en la línea 165, columna 19 del fichero /usr/include/stdio.h
    extern int remove __((const char *));
    ..................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 166, columna 19, fichero /usr/include/stdio.h:
    Error en la línea 166, columna 19 del fichero /usr/include/stdio.h
    extern int rename __((const char *, const char *));
    ..................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 167, columna 23, fichero /usr/include/stdio.h:
    Error en la línea 167, columna 23 del fichero /usr/include/stdio.h
    extern FILE *tmpfile __((void));
    ......................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 168, columna 22, fichero /usr/include/stdio.h:
    Error en la línea 168, columna 22 del fichero /usr/include/stdio.h
    extern char *tmpnam __((char *));
    .....................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 169, columna 20, fichero /usr/include/stdio.h:
    Error en la línea 169, columna 20 del fichero /usr/include/stdio.h
    extern int fclose __((FILE *));
    ...................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 170, columna 20, fichero /usr/include/stdio.h:
    Error en la línea 170, columna 20 del fichero /usr/include/stdio.h
    extern int fflush __((FILE *));
    ...................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 171, columna 20, fichero /usr/include/stdio.h:
    Error en la línea 171, columna 20 del fichero /usr/include/stdio.h
    extern FILE *fopen __((const char *, const char *));
    ...................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 172, columna 23, fichero /usr/include/stdio.h:
    Error en la línea 172, columna 23 del fichero /usr/include/stdio.h
    extern FILE *freopen __((const char *, const char *, FILE *));
    ......................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 173, columna 21, fichero /usr/include/stdio.h:
    Error en la línea 173, columna 21 del fichero /usr/include/stdio.h
    extern void setbuf __((FILE *, char *));
    ....................1
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

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

    Error de sintaxis en la línea 174, columna 21, fichero /usr/include/stdio.h:
    Error en la línea 174, columna 21 del fichero /usr/include/stdio.h
    extern int setvbuf __((FILE *, char *, int, size_t));
    PCC-S-02201, Encountered the symbol "__args__" when expecting one of the followi
    ng:

    ; , = ( [

    Error de sintaxis en la línea 0, columna 0, fichero sample1.pc:
    Error en la línea 0, columna 0 del fichero sample1.pc
    PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:

    ; : an identifier, end-exec, random_terminal

    Error en la línea 0, columna 0 del fichero sample1.pc
    PCC-F-02102, Error fatal al realizar el preprocesamiento de C

    What's the matter?

    Best Regards,
    Elisa
    From Spain

  2. #2
    Join Date
    Nov 2003
    Location
    down on the cube farm, left then right then another left
    Posts
    467
    My Spanish is not very good (i.e. nearly non-existent). My 3 year-old has had more Spanish then I (definitely a deficiency of US culture in general, but not wanting to start a cultural discourse I move on).

    Could you translate this line?:
    Valores de la opción por defecto del sistema tomados de: /usr/users/oracle/oracle/precomp/admin/pcscfg.cfg?

    To me it says something about defective tomatos (I refer you to my first paragraph) :-). Is it possible that someone might have modified this config file (pcscfg.cfg)? Perhaps something is set wrong because the error relates to stdio.h (this is a basic C library so I would doubt that) or the way you are including stdio.h. You are not including it twice are you?

    If you could post the code you are trying to compile that might help.
    NOTE: Please disregard the label "Senior Member".

  3. #3
    Join Date
    Apr 2003
    Location
    NY
    Posts
    208
    Dont you get enough Dora the explorer?????????

  4. #4
    Join Date
    Nov 2003
    Location
    down on the cube farm, left then right then another left
    Posts
    467
    I believe Dora is a cable show. Even though I live in a major metro area the cable line stops about 1/2 mile from my house. (I live in an established high acreage area and running new cable does not pay). I mostly watch videos with the little nipper anyway.
    NOTE: Please disregard the label "Senior Member".

  5. #5
    Join Date
    Jan 2004
    Posts
    370
    You'll need to use the make file to compile the program.

    make -f demo_proc.mk sample1

  6. #6
    Join Date
    Nov 2003
    Location
    down on the cube farm, left then right then another left
    Posts
    467
    Skywriter: Glad you do not spend all your time watching Dora.
    NOTE: Please disregard the label "Senior Member".

  7. #7
    Join Date
    Apr 2003
    Location
    NY
    Posts
    208
    I believe Dora is on Saturdays on PBS but am not positive.

    When choosing a location for my house I made cable a requirment as I can not live without the broadband.

  8. #8
    Join Date
    Nov 2003
    Location
    down on the cube farm, left then right then another left
    Posts
    467
    I can get broadband (DSL :-) )!

    When choosing my house the (Minnesota) Twins were on their way to winning their first World Series (1987), broadband was not an issue.
    NOTE: Please disregard the label "Senior Member".

  9. #9
    Join Date
    Jan 2004
    Posts
    370
    Dora?

    Yo nunca he oído de ello

  10. #10
    Join Date
    Apr 2003
    Location
    NY
    Posts
    208
    Yeah, what he said

  11. #11
    Join Date
    Feb 2004
    Posts
    7

    Red face

    Originally posted by Todd Barkus
    My Spanish is not very good (i.e. nearly non-existent). My 3 year-old has had more Spanish then I (definitely a deficiency of US culture in general, but not wanting to start a cultural discourse I move on).

    Could you translate this line?:
    Valores de la opción por defecto del sistema tomados de: /usr/users/oracle/oracle/precomp/admin/pcscfg.cfg?

    To me it says something about defective tomatos (I refer you to my first paragraph) :-). Is it possible that someone might have modified this config file (pcscfg.cfg)? Perhaps something is set wrong because the error relates to stdio.h (this is a basic C library so I would doubt that) or the way you are including stdio.h. You are not including it twice are you?

    If you could post the code you are trying to compile that might help.


    The line says: System default option values taken from /usr/users/oracle/oracle/precomp/admin/pcscfg.cfg

    the file pcscfg.cfg is:

    sys_include=(/usr/local/include, $ORACLE_HOME/precomp/public, /usr/include)
    include=($ORACLE_HOME/precomp/public)
    include=($ORACLE_HOME/rdbms/demo)
    include=($ORACLE_HOME/network/public)
    include=($ORACLE_HOME/plsql/public)
    include=($ORACLE_HOME/precomp/syshdr)
    code=ansi_c

    I don't Know where is the problem? What is wrong? Please I need compile now.
    Thanks

    Elisa

    pd: sorry my English is not very good.

  12. #12
    Join Date
    Nov 2003
    Location
    down on the cube farm, left then right then another left
    Posts
    467
    Your English is better than my Spanish.

    Earlier in this thread Skywriter said
    "You'll need to use the make file to compile the program.

    make -f demo_proc.mk sample1

    "

    Use the make file and you should get everything you need. Because ProC is a preprocessor to C the stuff in the make file needs to give hints to the C compiler about handling things (I.E. it is not as simple as saying cc file.c or in your case "proc file.pc"). Keep us informed, there are several people here to help.

    Skywriter: Ok show off :-) would you please translate "Dora? Yo nunca he oído de ello".

    PS - Just so people do not think I am totally unworldly; I am currently taking a French course to augment the 3 years of French I had in high school (lo these many years ago). I would have taken a Spanish class except that there were no basic Spanish classes offered.
    NOTE: Please disregard the label "Senior Member".

  13. #13
    Join Date
    Feb 2004
    Posts
    7

    Red face

    Ufffff......... I executed the next sentence:

    make -f demo_proc.mk sample1

    and it showed the sames errors.... (

    "Dora? Yo nunca he oido de ello" = "Dora? I have never heard about it"

    Thanks.....

  14. #14
    Join Date
    Nov 2003
    Location
    down on the cube farm, left then right then another left
    Posts
    467
    OK. Then let us take this approach. Can you post your stdio.h file (just the part around line 150)? Maybe that will point us in a new direction.
    NOTE: Please disregard the label "Senior Member".

  15. #15
    Join Date
    Feb 2004
    Posts
    7
    Originally posted by Todd Barkus
    OK. Then let us take this approach. Can you post your stdio.h file (just the part around line 150)? Maybe that will point us in a new direction.
    Do you think that stdio.h file is the problem? I think that problem is in the configuration file.... do you really want to see the stdio.file?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •