Oracle Pro-C exits with "syntax error" PCC-S-02014 on RHEL 8.7 or later

Solution Unverified - Updated -

Issue

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.el8 or 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content