Oracle Pro-C exits with "syntax error" PCC-S-02014 on RHEL 8.7 or later
Issue
- Oracle Pro-C exits with "syntax error" PCC-S-02014 on RHEL 8.7
- Pro*C Precompilation Fails With PCC-S-02014 After OS Upgrade OL8.7 From OL8.5 (Doc ID 2931232.1)
- After upgrading to RHEL 8.7, experiencing
glibc-headerspackage causing build failures insys/cdefs.h
Syntax error at line 500, column 20, file /usr/include/sys/cdefs.h:
Error at line 500, column 20 in file /usr/include/sys/cdefs.h
#include <bits/long-double.h>
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 564, column 2, file /usr/include/sys/cdefs.h:
Error at line 564, column 2 in file /usr/include/sys/cdefs.h
#endif /* sys/cdefs.h */
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,
The symbol "define," was substituted for "endif" to continue.
Syntax error at line 30, column 1, file /usr/include/bits/types.h:
Error at line 30, column 1 in file /usr/include/bits/types.h
typedef unsigned char __u_char;
PCC-S-02201, Encountered the symbol "typedef" when expecting one of the following:
; , = ( [
The symbol ";" was substituted for "typedef" to continue.
Environment
- Red Hat Enterprise Linux (RHEL) 8.7 or later
glibc-headers-2.28-211.el8or later- Oracle Database 11.2 / 11g Release 2 / 11gR2
- Oracle Pro-C compiler
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.