Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Configuration of Pro*C/C++ 8.1.5 (Oracle 8.1.5) on Red Hat 6.0 Linux (2.2.5-15 kernel)
Hello,
I installed Pro*C/C++ 8.1.5 on a Red Hat 6.0 (2.2.5-15 kernel) Linux machine running Oracle 8.1.5 Enterprise Edition and I am experiencing problems when compiling a .c file successfully produced by the Pro*C precompiler from the sample1.pc program. In other words the first step - Pro*C precompilation - works and I get sample1.c and sample1.o (and a sample1.lis - what is that?) files, but then the subsequent C compilation errors out with this message:
/usr/bin/ld: cannot open -laio: No such file or directory.
Here is the full screen of the error:
gmake -f /u01/app/oracle/product/8.1.5/precomp/demo/proc/demo_proc.mk
OBJS=sample1.o EXE=sample1 build
gmake[1]: Entering directory
`/u01/app/oracle/product/8.1.5/precomp/demo/proc'
cc -o sample1 sample1.o -L/u01/app/oracle/product/8.1.5/lib/ -lclntsh
-lclient8 /u01/app/oracle/product/8.1.5/lib/libsql8.a-lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8
/u01/app/oracle/product/8.1.5/lib/scorept.o
/u01/app/oracle/product/8.1.5/lib/sscoreed.o
/u01/app/oracle/product/8.1.5/rdbms/lib/kpudfo.o
/u01/app/oracle/product/8.1.5/lib/nautab.o
/u01/app/oracle/product/8.1.5/lib/naeet.o
/u01/app/oracle/product/8.1.5/lib/naect.o
/u01/app/oracle/product/8.1.5/lib/naedhs.o `cat
/u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8 -lnro8
`cat /u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8 -lclient8 -lvsn8 -lcommon8 -lskgxp8 -lgeneric8 -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat
/u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8 -lnro8
`cat /u01/app/oracle/product/8.1.5/network/lib/ldflags` -ln8 -lnl8
It looks like the linker ld thinks that the options -laio are a file it needs to use?
The OS compiler has been working fine on its own. I've used it to
compile a number of pure C apps.
I configured Pro*C as described in the installation documentation -
environment variables, the
$ORACLE_HOME/precomp/admin/pcscfg.cfg file, etc. I tried to compile the
$ORACLE_HOME/precomp/demo/proc/sample1.pc programs like this:
make -f demo_proc.mk sample1
and received an error "cannot find stddef.h as well as other .h files".
I searched the file system for this header file and found it in the
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/src/linux-2.2.5/include/linux
directories, so I added the lines
include=/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
include=/usr/src/linux-2.2.5/include/linux
to the pcscfg.cfg file.
Please let me know if you've encountered similar or the same problems or if you know how to resolve them.
Thanks,
Krassimir Georgiev Received on Sat Jun 24 2000 - 00:00:00 CDT