Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Pro*C precompilation: Syntax error at line 167, column 45, file /usr/include/sys/cdefs.h

Mehdi GhoulamiOct 12 2024 — edited Oct 12 2024

I'm preparin a new Red Hat Enterprise Linux 8.10 server machine with an oracle-database-ee-19c-1.0 which should also compile some Pro*C code. But when trying to compile a proc code a get this error message:

Pro*C/C++: Release 19.0.0.0.0 - Production on Thu Oct 10 15:44:29 2024 
Version 19.3.0.0.0 
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. 

System default option values taken from: /opt/oracle/product/19c/dbhome_1/precomp/admin/pcscfg.cfg 

Syntax error at line 167, column 45, file /usr/include/sys/cdefs.h: 
Error at line 167, column 45 in file /usr/include/sys/cdefs.h 
#define __glibc_fortify(f, __l, __s, __osz, ...) \ 
............................................1 
PCC-S-02014, Encountered the symbol "..." when expecting one of the following: 

an identifier, define, elif, else, endif, error, if, ifdef, 
ifndef, include, include_next, 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 169, column 9, file /usr/include/sys/cdefs.h: 
Error at line 169, column 9 in file /usr/include/sys/cdefs.h 
? __ ## f ## _alias (__VA_ARGS__) \ 
........1 
PCC-S-02014, Encountered the symbol "##" when expecting one of the following: 

; { } , = : ( ) [ ] * ? | & < > + - / % ~ ! . # @ ^ *= /= %= 
+= -= <<= >>= &&= ||= ^= ~= := | & == != <= >= << >> ++ -- -> 
... .. <> ** => an identifier, a string, a numeric constant, 
a sql string, misc. punctuation, newline, define, elif, else, 
endif, error, if, ifdef, ifndef, include, include_next, line, 
pragma, undef, exec, sql, begin, end, var, type, oracle, 
an immediate preprocessor command, a C token, exec sql, 
exec sql include, exec sql var, exec sql begin, exec sql end, 
end-exec, exec sql type, exec oracle, exec oracle else, 
exec oracle endif, exec oracle begin, a sql hint, create, 
function, package, procedure, trigger, or, replace, 
a C++ token, 

Syntax error at line 183, column 2, file /usr/include/sys/cdefs.h: 
Error at line 183, column 2 in file /usr/include/sys/cdefs.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, include_next, line, pragma, undef, 
an immediate preprocessor command, a C token, 
The symbol "define," was substituted for "endif" to continue. 

Syntax error at line 502, column 20, file /usr/include/sys/cdefs.h: 
Error at line 502, column 20 in file /usr/include/sys/cdefs.h 
#include <bits/long-double.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, 
include_next, 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 566, column 2, file /usr/include/sys/cdefs.h: 
Error at line 566, column 2 in file /usr/include/sys/cdefs.h 
#endif /* sys/cdefs.h */ 
.1 
PCC-S-02014, Encountered the symbol "endif" when expecting one of the following: 

a numeric constant, newline, define, error, if, ifdef, 
ifndef, include, include_next, line, pragma, undef, 
an immediate preprocessor command, a C token, 
The symbol "define," was substituted for "endif" to continue. 

Syntax error at line 26, column 49, file /usr/include/linux/stddef.h: 
Error at line 26, column 49 in file /usr/include/linux/stddef.h 
#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \ 
................................................1 
PCC-S-02014, Encountered the symbol "..." when expecting one of the following: 

, ) 
The symbol ")" was substituted for "..." to continue. 

Error at line 36, column 10 in file /usr/include/stdio.h 
#include <stdarg.h> 
.........1 
PCC-S-02015, unable to open include file 
Error at line 56, column 12 in file /usr/include/stdio.h 
# include <stdarg.h> 
...........1 
PCC-S-02015, unable to open include file 
Error at line 22, column 10 in file CONV_plugins_db_lib.PC 
#include <string> 
.........1 
PCC-S-02015, unable to open include file 
Error at line 23, column 10 in file CONV_plugins_db_lib.PC 
#include <sstream> 
.........1 
PCC-S-02015, unable to open include file 
Error at line 24, column 10 in file CONV_plugins_db_lib.PC 
#include <map> 
.........1 
PCC-S-02015, unable to open include file 
Error at line 22, column 11 in file /opt/oracle/product/19c/dbhome_1/rdbms/publi 
c/oratypes.h 
# include <stdarg.h>

any help please !!!

Comments
Post Details
Added on Oct 12 2024
2 comments
1,060 views