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! I can't link Pro-C files under 7.3.2

Re: Help! I can't link Pro-C files under 7.3.2

From: John Strange <jstrange_at_imtn.dsccc.com>
Date: 1997/02/21
Message-ID: <5ek784$k67@camelot.dsccc.com>

copy the proc*.mk to your directory and try it. If it works, start chopping it down.

Look under the $ORACLE_HOME directory for the proc* directory. Look under the proc* directory for demo
If the demos were not installed try the lib directory.

oracle (oracle_at_nightmare.com) wrote:

: ------------2ADF47E9795D4
: Content-Transfer-Encoding: 7bit
: Content-Type: text/plain; charset=us-ascii
 

: Ken Frank wrote:
: >
: > I am trying to compile some C programs which use embedded SQL,
: > but am not having any luck getting anything to link. I am doing this
: > on an RS6000 (AIX 4.1.5) and Oracle 7.3.2.
: >
: > I'm able to precompile (with "proc") fine, but am unable to figure out
: > what libraries I need to link against.
: >
: > Here's what my C-Compile command looks like:
: >
: > cc $FILE.c -o $FILE.exe -DUNIX -DAIX -DORACLE \
: > -I$MY_INCL_DIR \
: > -lc -lm \
: > -L$MY_LIB_DIR -lmylib \
: > -L$ORACLE_HOME/lib \
: > -lsql -lsqlnet -lnlsrtl3 -lc3v6 -lcore3 -lld -lxa
: >
: > However, compile fails at link-time with these errors:
: >
: > ld: 0711-317 ERROR: Undefined symbol: .upih2o
: > ld: 0711-317 ERROR: Undefined symbol: .upiico
: > ld: 0711-317 ERROR: Undefined symbol: .upipi
: > [about 40 lines snipped]
: > ld: 0711-317 ERROR: Undefined symbol: .upihmi
: > ld: 0711-317 ERROR: Undefined symbol: .upidsc
: > ld: 0711-317 ERROR: Undefined symbol: .kpurpc
: > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
: > information.
: >
: > I've searched every ".a" file in $ORACLE_HOME/lib and cannot
: > find ANY of these symbols ("grep", and "ar -tv | grep"). I've
: > also seen mention of a "-lora", but we don't have any files
: > ANYWHERE called "libora.a".
: >
: > Forgive my cluelessness, but I don't have any manuals, and I'm
: > used to Ingres (cc $FILE.c -L$ING_LIB_DIR -lingres -lc -lm), and
: > Oracle's libraries have me completely confused! The "demo"
: > proc.mk file didn't enlighten me any, either.
: >
: > Thanks in advance,
: > Ken Frank
: > ken_at_mn.csoft.com
 

: Those objects are defined in oracle client archive. Include either
: -lclient or the shared library -lclntsh. They should then be defined.
: I would use oracles proc.mk file as a template and just make changes to
: it.

: ------------2ADF47E9795D4
: Content-Transfer-Encoding: 7bit
: Content-Type: text/html; charset=us-ascii
 

: <HTML><BODY>
 

: <DT>Ken Frank wrote:<BR>
: &gt;&nbsp;<BR>
: &gt; I am trying to compile some C programs which use embedded SQL,<BR>
: &gt; but am not having any luck getting anything to link.&nbsp; I am doing
: this<BR>
: &gt; on an RS6000 (AIX 4.1.5) and Oracle 7.3.2.<BR>
: &gt;&nbsp;<BR>
: &gt; I'm able to precompile (with &quot;proc&quot;) fine, but am unable
: to figure out<BR>
: &gt; what libraries I need to link against.<BR>
: &gt;&nbsp;<BR>
: &gt; Here's what my C-Compile command looks like:<BR>
: &gt;&nbsp;<BR>
: &gt; cc $FILE.c -o $FILE.exe -DUNIX -DAIX -DORACLE&nbsp;&nbsp; \<BR>
: &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I$MY_INCL_DIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
: \<BR>
: &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lc -lm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
: \<BR>
: &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L$MY_LIB_DIR&nbsp;&nbsp;&nbsp;
: -lmylib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
: \<BR>
: &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L$ORACLE_HOME/lib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
: \<BR>
: &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lsql -lsqlnet -lnlsrtl3
: -lc3v6 -lcore3 -lld -lxa<BR>
: &gt;&nbsp;<BR>
: &gt; However, compile fails at link-time with these errors:<BR>
: &gt;&nbsp;<BR>
: &gt; ld: 0711-317 ERROR: Undefined symbol: .upih2o<BR>
: &gt; ld: 0711-317 ERROR: Undefined symbol: .upiico<BR>
: &gt; ld: 0711-317 ERROR: Undefined symbol: .upipi<BR>
: &gt; [about 40 lines snipped]<BR>
: &gt; ld: 0711-317 ERROR: Undefined symbol: .upihmi<BR>
: &gt; ld: 0711-317 ERROR: Undefined symbol: .upidsc<BR>
: &gt; ld: 0711-317 ERROR: Undefined symbol: .kpurpc<BR>
: &gt; ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more<BR>
: &gt; information.<BR>
: &gt;&nbsp;<BR>
: &gt; I've searched every &quot;.a&quot; file in $ORACLE_HOME/lib and cannot<BR>
: &gt; find ANY of these symbols (&quot;grep&quot;, and &quot;ar -tv | grep&quot;).&nbsp;
: I've<BR>
: &gt; also seen mention of a &quot;-lora&quot;, but we don't have any files<BR>
: &gt; ANYWHERE called &quot;libora.a&quot;.<BR>
: &gt;&nbsp;<BR>
: &gt; Forgive my cluelessness, but I don't have any manuals, and I'm<BR>
: &gt; used to Ingres (cc $FILE.c -L$ING_LIB_DIR -lingres -lc -lm), and<BR>
: &gt; Oracle's libraries have me completely confused!&nbsp; The &quot;demo&quot;<BR>
: &gt; proc.mk file didn't enlighten me any, either.<BR>
: &gt;&nbsp;<BR>
: &gt; Thanks in advance,<BR>
: &gt; Ken Frank<BR>
: &gt; ken_at_mn.csoft.com<BR>
: &nbsp;</DT>
 

: <DT>Those objects are defined in oracle client archive.&nbsp; Include either
: -lclient or the shared library -lclntsh.&nbsp; They should then be defined.&nbsp;
: I would use oracles proc.mk file as a template and just make changes to
: it.</DT>
 

: <DT>&nbsp;</DT>
 

: <DT>&nbsp;</DT>
 

: </BODY>
: </HTML>
: ------------2ADF47E9795D4--

--
This posting represents the personal opinions of the author. It is not the
official opinion or policy of the author's employer. Warranty expired when you
opened this article and I will not be responsible for its contents or use.
Received on Fri Feb 21 1997 - 00:00:00 CST

Original text of this message

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