Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: oracle and redhat PRO*C
Here is a copy of my pcscfg.cfg file and it still produces the same result....
All I have for an LD_LIBRARAY_PATH is /home/oracle/OraHome1/lib
include=$(ORACLE_HOME)/precomp/syshdr include=$(ORACLE_HOME)/precomp/public include=$(ORACLE_HOME)/rdbms/demo include=$(ORACLE_HOME)/rdbms/public include=$(ORACLE_HOME)/network/public include=$(ORACLE_HOME)/plsql/public
#sys_include=($ORACLE_HOME/precomp/public,/usr/i386-glibc21-linux/include,/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include,/usr/include,/usr/include/stubs)
sys_include=(/usr/include/stubs,/usr/i386-glibc21-linux/include,/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include,/usr/include,/usr/include/stubs)
Jon Glickman wrote:
> I have installed oracle's stub patch for redhat 7.1 and oracle 817
> and could finally create a database but Proc gives errors even though
> OCI compiles seems to be a problem with the includes.... the stubs
> are because redhat 7.1 is built with glib2.3 and oracle is built with
> glib 2.2... also it appears oracle has switched to SuSe Linux partly
> because of this...
>
> make -f /home/oracle/OraHome1/precomp/demo/proc/demo_proc.mk
> OBJS=sample1.o EXE=sample1 build
> make[1]: Entering directory `/home/oracle/OraHome1/precomp/demo/proc'
> proc iname=sample1
>
> Pro*C/C++: Release 8.1.7.0.0 - Production on Sat Jun 16 21:02:15 2001
>
> (c) Copyright 2000 Oracle Corporation. All rights reserved.
>
> System default option values taken from:
> /home/oracle/OraHome1/precomp/admin/pcscfg.cfg
>
> Syntax error at line 48, column 3, file
> /usr/include/bits/pthreadtypes.h:
> Error at line 48, column 3 in file /usr/include/bits/pthreadtypes.h
> size_t __guardsize;
> ..1
> PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
> following
> :
> } char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
> The symbol "enum," was substituted for "size_t" to continue.
>
> Syntax error at line 51, column 3, file
> /usr/include/bits/pthreadtypes.h:
> Error at line 51, column 3 in file /usr/include/bits/pthreadtypes.h
> size_t __stacksize;
> ..1
> PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
> following
> :
> } char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
> The symbol "enum," was substituted for "size_t" to continue.
>
> Syntax error at line 67, column 5, file /usr/include/wchar.h:
> Error at line 67, column 5 in file /usr/include/wchar.h
> wint_t __wch;
> ....1
> PCC-S-02201, Encountered the symbol "wint_t" when expecting one of the
> following
> :
>
> char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
> The symbol "enum," was substituted for "wint_t" to continue.
>
> Syntax error at line 29, column 3, file /usr/include/_G_config.h:
> Error at line 29, column 3 in file /usr/include/_G_config.h
> __mbstate_t __state;
> ..1
> PCC-S-02201, Encountered the symbol "__mbstate_t" when expecting one of
> the foll
> owing:
>
> } char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
> The symbol "enum," was substituted for "__mbstate_t" to continue.
>
> Syntax error at line 34, column 3, file /usr/include/_G_config.h:
> Error at line 34, column 3 in file /usr/include/_G_config.h
> __mbstate_t __state;
> ..1
> PCC-S-02201, Encountered the symbol "__mbstate_t" when expecting one of
> the foll
> owing:
>
> } char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
> The symbol "enum," was substituted for "__mbstate_t" to continue.
>
> Syntax error at line 71, column 26, file /usr/include/gconv.h:
> Error at line 71, column 26 in file /usr/include/gconv.h
> unsigned char **, size_t *, int, int);
> .........................1
> PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
> following
> :
>
> ... auto, char, const, double, enum, float, int, long,
> ulong_varchar, OCIBFileLocator OCIBlobLocator,
> OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
> OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
> short, signed, sql_context, sql_cursor, static, struct,
> union, unsigned, utext, uvarchar, varchar, void, volatile,
> a typedef name, exec oracle, exec oracle begin, exec,
> exec sql, exec sql begin, exec sql type, exec sql var,
> The symbol "enum," was substituted for "size_t" to continue.
>
> Syntax error at line 84, column 7, file /usr/include/gconv.h:
> Error at line 84, column 7 in file /usr/include/gconv.h
> size_t *);
> ......1
> PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
> following
> :
>
> ... auto, char, const, double, enum, float, int, long,
> ulong_varchar, OCIBFileLocator OCIBlobLocator,
> OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
> OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
> short, signed, sql_context, sql_cursor, static, struct,
> union, unsigned, utext, uvarchar, varchar, void, volatile,
> a typedef name, exec oracle, exec oracle begin, exec,
> exec sql, exec sql begin, exec sql type, exec sql var,
> The symbol "enum," was substituted for "size_t" to continue.
>
> Syntax error at line 94, column 6, file /usr/include/gconv.h:
> Error at line 94, column 6 in file /usr/include/gconv.h
> size_t *);
> .....1
> PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
> following
> :
>
> ... auto, char, const, double, enum, float, int, long,
> ulong_varchar, OCIBFileLocator OCIBlobLocator,
> OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
> OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
> short, signed, sql_context, sql_cursor, static, struct,
> union, unsigned, utext, uvarchar, varchar, void, volatile,
> a typedef name, exec oracle, exec oracle begin, exec,
> exec sql, exec sql begin, exec sql type, exec sql var,
> The symbol "enum," was substituted for "size_t" to continue.
>
> Syntax error at line 103, column 3, file /usr/include/gconv.h:
> Error at line 103, column 3 in file /usr/include/gconv.h
> __gconv_trans_fct __trans_fct;
> ..1
> PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting
> one of th
> e following:
>
> char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
>
> Syntax error at line 0, column 0, file sample1.pc:
> Error at line 0, column 0 in file sample1.pc
> PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the
> following:
>
> ; : an identifier, end-exec, random_terminal
>
> Error at line 0, column 0 in file sample1.pc
> PCC-F-02102, Fatal error while doing C preprocessing
> make[1]: Leaving directory `/home/oracle/OraHome1/precomp/demo/proc'
Received on Thu Jun 21 2001 - 19:22:21 CDT