IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Interfaces de programmation Oracle Discussion :

[PRO*C] Erreur make


Sujet :

Interfaces de programmation Oracle

  1. #21
    Membre habitué
    Inscrit en
    Mars 2007
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 14
    Par défaut
    Merci de m'aider.
    Je n'ai jamais toucher à Oracle de ma vie, pourriez-vous me dire comment je dois procéder ??

  2. #22
    Membre habitué
    Inscrit en
    Mars 2007
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 14
    Par défaut Voila ce que j'obtiens après avoir bidouillé
    [oracle@hannah test]$ make -f demo_proc.mk build_static EXE=sample1 OBJS=sample1.o
    make -f /home/oracle/oracle/product/10.2.0/db_1//precomp/demo/proc/demo_proc.mk PROCFLAGS="" PCCSRC=sample1 I_SYM=include= pc1
    make[1]: Entering directory `/tmp/test'
    proc iname=sample1 include=. include=/home/oracle/oracle/product/10.2.0/db_1//precomp/public include=/home/oracle/oracle/product/10.2.0/db_1//rdbms/public include=/home/oracle/oracle/product/10.2.0/db_1//rdbms/demo include=/home/oracle/oracle/product/10.2.0/db_1//plsql/public include=/home/oracle/oracle/product/10.2.0/db_1//network/public

    Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Mar 13 14:04:18 2007

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    System default option values taken from: /home/oracle/oracle/product/10.2.0/db_1//precomp/admin/pcscfg.cfg

    Syntax error at line 72, column 26, file /usr/include/gconv.h:
    Error at line 72, column 26 in file /usr/include/gconv.h
    unsigned char **, size_t *, int, int);
    .........................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    :

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

    Syntax error at line 88, column 7, file /usr/include/gconv.h:
    Error at line 88, column 7 in file /usr/include/gconv.h
    size_t *);
    ......1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    :

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

    Syntax error at line 97, column 6, file /usr/include/gconv.h:
    Error at line 97, column 6 in file /usr/include/gconv.h
    size_t *);
    .....1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    :

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

    Syntax error at line 106, column 3, file /usr/include/gconv.h:
    Error at line 106, column 3 in file /usr/include/gconv.h
    __gconv_trans_fct __trans_fct;
    ..1
    PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting one of th
    e 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,

    Syntax error at line 0, column 0, file sample1.pc:
    Error at line 0, column 0 in file sample1.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 sample1.pc
    PCC-F-02102, Fatal error while doing C preprocessing
    make[1]: *** [pc1] Error 1
    make[1]: Leaving directory `/tmp/test'
    make: *** [sample1.o] Error 2
    [oracle@hannah test]$

  3. #23
    Membre habitué
    Inscrit en
    Mars 2007
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 14
    Par défaut
    Je continue à chercher, où est défini size_t ??? (Encountered the symbol "size_t" when expecting one of the following)

    Je n'arrive pas trouver ...
    Quelle galère !!

  4. #24
    Membre habitué
    Inscrit en
    Mars 2007
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 14
    Par défaut J'arrive à ça maintenant
    [oracle@hannah test]$ make -f demo_proc.mk build_static EXE=sample1 OBJS=sample1.o
    make -f /home/oracle/oracle/product/10.2.0/db_1//precomp/demo/proc/demo_proc.mk PROCFLAGS="" PCCSRC=sample1 I_SYM=include= pc1
    make[1]: Entering directory `/tmp/test'
    proc iname=sample1 include=. include=/home/oracle/oracle/product/10.2.0/db_1//precomp/public include=/home/oracle/oracle/product/10.2.0/db_1//rdbms/public include=/home/oracle/oracle/product/10.2.0/db_1//rdbms/demo include=/home/oracle/oracle/product/10.2.0/db_1//plsql/public include=/home/oracle/oracle/product/10.2.0/db_1//network/public

    Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Mar 13 15:31:38 2007

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    System default option values taken from: /home/oracle/oracle/product/10.2.0/db_1//precomp/admin/pcscfg.cfg

    Semantic error at line 97, column 23, file sample1.pc:
    EXEC SQL CONNECT :username IDENTIFIED BY :password;
    ......................1
    PCC-S-02322, found undefined identifier
    Semantic error at line 97, column 47, file sample1.pc:
    EXEC SQL CONNECT :username IDENTIFIED BY :password;
    ..............................................1
    PCC-S-02322, found undefined identifier
    Semantic error at line 120, column 19, file sample1.pc:
    INTO :emprec INDICATOR :emprec_ind
    ..................1
    PCC-S-02322, found undefined identifier
    Semantic error at line 120, column 37, file sample1.pc:
    INTO :emprec INDICATOR :emprec_ind
    ....................................1
    PCC-S-02322, found undefined identifier
    Semantic error at line 122, column 28, file sample1.pc:
    WHERE EMPNO = :emp_number;
    ...........................1
    PCC-S-02322, found undefined identifier
    make[1]: *** [pc1] Error 1
    make[1]: Leaving directory `/tmp/test'
    make: *** [sample1.o] Error 2


    Est-ce que ça devient bon ???

  5. #25
    Membre Expert
    Avatar de LeoAnderson
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 2 938
    Par défaut
    1. Quelles sont les "bidouilles" que vous avez fait ?
    2. Non, ça ne devient pas bon.

  6. #26
    Membre habitué
    Inscrit en
    Mars 2007
    Messages
    14
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 14
    Par défaut
    En fait ce sont les exemples fournis par Oracle qui ne fonctionnent pas, si on les modifie on arrive compiler. J'arrive compiler un fichier perso, mais pas ceux fournis par oracle.
    Merci de votre aide, pour moi c'est résolu.

  7. #27
    Membre Expert
    Avatar de LeoAnderson
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 2 938
    Par défaut
    Pour moi, c'est loin d'être résolu !

    Si les exemples ne fonctionnent pas c'est qu'il y a un problème !

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 2 PremièrePremière 12

Discussions similaires

  1. Install Hakusho - Erreur make config
    Par Jerome6389 dans le forum Linux
    Réponses: 1
    Dernier message: 15/11/2011, 17h16
  2. [PRO*COBOL] Erreur oracle 1841
    Par copecoy dans le forum Interfaces de programmation
    Réponses: 1
    Dernier message: 03/12/2007, 19h12
  3. Réponses: 1
    Dernier message: 31/08/2007, 13h19
  4. Réponses: 20
    Dernier message: 14/09/2006, 10h56
  5. Erreur Make de Zlib-1.xx
    Par TeddyBEER dans le forum Modules
    Réponses: 1
    Dernier message: 08/09/2006, 15h24

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo