Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: [Help] Error in running OCI samples.

Re: [Help] Error in running OCI samples.

From: Yi Cai <ycai_at_hempseed.com>
Date: 1997/07/04
Message-ID: <33BC55C1.D01514CE@hempseed.com>#1/1

Junyoung Jeong wrote:
>
> Hi. everyone.
>
> I want to learn about OCI, so compile OCI sample sources
> which is in $ORA_HOME/rdbms/demo.
>
> 1. copy *.c *.h to my temporary directory.
>
> 2. copy $ORA_HOME/rdbms/lib/oracle.mk to same directory
>
> 3. edit oracle.mk, because I use gcc
> CC=cc ---> CC=gcc
> RCC=cc -I. -O -xcg92 ---> RCC=gcc -I. -O -xcg92
> CFLAGS= ---> -ggdb // for debugging
>
> 4. Complie. (like comments in oracle.mk
> make -f oracle.mk cdemo1
>
> 5. running.
> >cdemo1
> >Bus Error. Core dumped
> >
> >gdb cdemo1 core
> ...
> #0 0xd0764 in upilgn ()
> (gdb) where
> #0 0xd0764 in upilgn ()
> #1 0xd1de0 in upilog ()
> #2 0x2a62c in ocilog ()
> #3 0x260cc in main ()
> (gdb)
>
> What is problem?
>
> Other samples (cdemo2.c, cdemo3.c, ...) make same error.
>
> I use Oracle 7.2.3, gcc 2.7.2.1, Solaris 2.5.1 on SUN Ultra Sparc 1.
>
> thanks in advance.

Maybe you should modify the makefile to secify the OCI library's directory.

I never compiled OCI programs under unix, but I compiled on Win32. In my case, I should specify OCIW73.LIB's directory in my C compiler. This LIB file gives user program entries to OCIXXX.DLL, which actually implement the functions such as ologon.

-- 
   ___    __    ____          _  _  ____ 
  / __)  /__\  (_  _)        ( \/ )(_  _)
 ( (__  /(__)\  _)(_          \  /  _)(_ 
  \___)(__)(__)(____)         (__) (____)
Received on Fri Jul 04 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US