My Oracle Support Banner

Compilation to Pro*C will fail if relink all is executed (Doc ID 2428128.1)

Last updated on JULY 03, 2023

Applies to:

Precompilers - Version 10.2.0.5 to 12.2.0.1 [Release 10.2 to 12.2]
Generic UNIX

Symptoms

If you execute "relink all" of the database software,
After that, Pro*C compilation will fail.

$ make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk build EXE=sample1 OBJS=sample1.o
make -f /u01/app/oracle/product/12.2.0/dbhome_1/precomp/demo/proc/demo_proc.mk PROCFLAGS="" PCCSRC=sample1 I_SYM=include= pc1
make[1]: Entering directory `/u01/app/oracle/product/12.2.0/dbhome_1/precomp/demo/proc'
proc  iname=sample1 include=. include=/u01/app/oracle/product/12.2.0/dbhome_1/precomp/public include=/u01/app/oracle/product/12.2.0/dbhome_1/rdbms/public include=/u01/app/oracle/product/12.2.0/dbhome_1/rdbms/demo include=/u01/app/oracle/product/12.2.0/dbhome_1/plsql/public include=/u01/app/oracle/product/12.2.0/dbhome_1/network/public

Pro*C/C++: Release 12.2.0.1.0 - Production on Thu Aug 30 08:33:47 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /u01/app/oracle/product/12.2.0/dbhome_1/precomp/admin/pcscfg.cfg

Error at line 33, column 11 in file /usr/include/stdio.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 15, column 10 in file /usr/include/_G_config.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 51, column 11 in file /usr/include/wchar.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 50, column 10 in file /usr/include/libio.h
#include <stdarg.h>
.........1
PCC-S-02015, unable to open include file
Syntax error at line 307, column 3, file /usr/include/libio.h:
Error at line 307, column 3 in file /usr/include/libio.h
 size_t __pad5;
..1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:
...

Changes

Refer to the following manual and compile to $ORACLE_HOME/precomp/admin/pcscfg.cfg make necessary changes.

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/lnpcc/precompiler-options.html#GUID-43E60380-8B54-4528-A76F-5A78A46F05D4

For example

-Before

sys_include=($ORACLE_HOME/precomp/public,/usr/include,/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.4/include,/usr/lib64/gcc/x86_64-suse-linux/4.8/include)

-After

sys_include=($ORACLE_HOME/precomp/public,/usr/include,/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include,/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include,/usr/lib64/gcc/x86_64-suse-linux/4.8/include)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.