Bonjour,
J'ai installé oracle 10g sur une débian Etch, et j'ai renseigné la variable d'environnement ORACLE_HOME (et LD_LIBRARY_PATH ne contient que $ORACLE_HOME/lib). J'ai ajouté dans $ORACLE_HOME/precomp/admin/pcscfg.cfg : /usr/src/linux/include/linux ou /usr/src/linux est un lien vers les headers du noyau (/usr/src/linux-headers-2.6.18-5-686).
J'ai essayé avec gcc version 3.4.6 et 4.1.2.
Quand je lance ma commande proc (via un makefile) j'ai le message :
Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Apr 1 10:31:36 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
Syntax error at line 30, column 33, file /usr/include/linux/compiler.h:
Error at line 30, column 33 in file /usr/include/linux/compiler.h
# define __builtin_warning(x, y...) (1)
................................1
PCC-S-02014, Encountered the symbol "..." when expecting one of the following:
, )
The symbol ")" was substituted for "..." to continue.
Syntax error at line 53, column 26, file /usr/include/linux/compiler.h:
Error at line 53, column 26 in file /usr/include/linux/compiler.h
# include <linux/compiler-gcc4.h>
.........................1
PCC-S-02014, Encountered the symbol "-" when expecting one of the following:
: [ ] > + / . .. an identifier, a numeric constant, define,
elif, else, endif, error, if, ifdef, ifndef, include, line,
pragma, undef, exec, sql, begin, end, var, type, oracle,
an immediate preprocessor command, a C token, create,
function, package, procedure, trigger, or, replace,
Syntax error at line 54, column 2, file /usr/include/linux/compiler.h:
Error at line 54, column 2 in file /usr/include/linux/compiler.h
#elif __GNUC__ == 3
.1
PCC-S-02014, Encountered the symbol "elif" when expecting one of the following:
a numeric constant, newline, define, error, if, ifdef,
ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
The symbol "newline," was substituted for "elif" to continue.
Syntax error at line 55, column 26, file /usr/include/linux/compiler.h:
Error at line 55, column 26 in file /usr/include/linux/compiler.h
# include <linux/compiler-gcc3.h>
.........................1
PCC-S-02014, Encountered the symbol "-" when expecting one of the following:
: [ ] > + / . .. an identifier, a numeric constant, define,
elif, else, endif, error, if, ifdef, ifndef, include, line,
pragma, undef, exec, sql, begin, end, var, type, oracle,
an immediate preprocessor command, a C token, create,
function, package, procedure, trigger, or, replace,
Syntax error at line 56, column 2, file /usr/include/linux/compiler.h:
Error at line 56, column 2 in file /usr/include/linux/compiler.h
#else
.1
PCC-S-02014, Encountered the symbol "else" when expecting one of the following:
a numeric constant, newline, define, error, if, ifdef,
ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
The symbol "define," was substituted for "else" to continue.
Syntax error at line 58, column 2, file /usr/include/linux/compiler.h:
Error at line 58, column 2 in file /usr/include/linux/compiler.h
#endif
.1
PCC-S-02014, Encountered the symbol "endif" when expecting one of the following:
a numeric constant, newline, define, error, if, ifdef,
ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
Syntax error at line 0, column 2151, file (null):
make: *** [linux_ora10_proc] Erreur de segmentation
Pouvez vous m'aider à régler ces problèmes ?
Merci
Partager