Re: HELP!!! - Problems with OCI Demo Files
Date: 1997/04/07
Message-ID: <3349BD6B.302C_at_nightmare.com>
Markus Michael Mayer wrote:
Hi,
We are currently trying to setup an Oracle7.1 System (in a SunOS
5.4.
environment) for OCI-Development (in C). When we try to build ("make
-f
oracle.mk cdemo1" for example)the
Demo-Files that are included with the
Oracle-Documentation we just get the following result:
ld -dy /home2/oracle/lib/crti.o /home2/oracle/lib/crt1.o
/home2/oracle/lib/__fstd.o
-L/home2/oracle/lib -o cdemo1 cdemo1.o /home2/oracle/lib/libocic.a
/home2/oracle/lib/osntab.o -lsqlnet
-lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lsocket -lnsl -lm -ldl -laio -lposix4 -Y P,:/usr/ccs/lib:/usr/lib -Qy -lc
/home2/oracle/lib/crtn.o
-lcore -lsocket -lnsl -lm -ldl -laio -lposix4 -Y P,:/usr/ccs/lib:/usr/lib
-Qy -lc /home2/oracle/lib/crtn.o
ld: warning: option -YP appears more than once, first setting taken ld: warning: option -Q appears more than once, first setting taken ld: warning: file /home2/oracle/lib/crtn.o: attempted multipleinclusion
of file
Undefined first referenced symbol in filenscontrol
/home2/oracle/lib/libora.a(upicdc.o)
osnqrn
/home2/oracle/lib/libora.a(osncon.o)
osnqtg
/home2/oracle/lib/libora.a(osncon.o)
nldtr1
/home2/oracle/lib/libora.a(osncon.o)
sosngun
/home2/oracle/lib/libora.a(osncon.o)
sosngpgn
/home2/oracle/lib/libora.a(osncon.o)
snlfnexed
/home2/oracle/lib/libora.a(osncon.o)
osnqig1
/home2/oracle/lib/libora.a(osncon.o)
snlfngenv
/home2/oracle/lib/libora.a(osncon.o)
ld: fatal: Symbol referencing errors. No output written to cdemo1 make: Fatal error: Command failed for target `cdemo1'
These are our environment variables:
LOGNAME=histu14
ORACLE_SID=test1
NLS_LANG=German_Germany.WE8ISO8859P1
MAIL=/usr/mail/histu14
TERM=xterm
HOSTTYPE=sparc
PATH=/usr/bin:/mnt1/histu14/bin:/usr/ccs/bin:/home2/oracle/bin:/usr/ucb:/usr/local/bin:/usr/openwin/bin:.
HOME=/mnt1/histu14
SHELL=/usr/local/bin/bash
LINES=35
PS1=$PWD >
HZ=100
DISPLAY=fgipc9:0
ORACLE_HOME=/home2/oracle
OSTYPE=SunOS5
SHLVL=1
BASH=/usr/local/bin/bash
TZ=MET
_=/usr/bin/env
Does anyone know what we are doing wrong ???
Thanx in advance,
Markus
Hi,
We are currently trying to setup an Oracle7.1 System (in a SunOS
5.4.
environment) for OCI-Development (in C). When we try to build ("make
-f
oracle.mk cdemo1" for example)the
Demo-Files that are included with the
Oracle-Documentation we just get the following result:
ld -dy /home2/oracle/lib/crti.o /home2/oracle/lib/crt1.o
/home2/oracle/lib/__fstd.o
-L/home2/oracle/lib -o cdemo1 cdemo1.o /home2/oracle/lib/libocic.a
/home2/oracle/lib/osntab.o -lsqlnet
-lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lsocket -lnsl -lm -ldl -laio -lposix4 -Y P,:/usr/ccs/lib:/usr/lib -Qy -lc
/home2/oracle/lib/crtn.o
-lcore -lsocket -lnsl -lm -ldl -laio -lposix4 -Y P,:/usr/ccs/lib:/usr/lib
-Qy -lc /home2/oracle/lib/crtn.o
ld: warning: option -YP appears more than once, first setting taken ld: warning: option -Q appears more than once, first setting taken ld: warning: file /home2/oracle/lib/crtn.o: attempted multipleinclusion
of file
Undefined first referenced symbol in filenscontrol
/home2/oracle/lib/libora.a(upicdc.o)
osnqrn
/home2/oracle/lib/libora.a(osncon.o)
osnqtg
/home2/oracle/lib/libora.a(osncon.o)
nldtr1
/home2/oracle/lib/libora.a(osncon.o)
sosngun
/home2/oracle/lib/libora.a(osncon.o)
sosngpgn
/home2/oracle/lib/libora.a(osncon.o)
snlfnexed
/home2/oracle/lib/libora.a(osncon.o)
osnqig1
/home2/oracle/lib/libora.a(osncon.o)
snlfngenv
/home2/oracle/lib/libora.a(osncon.o)
ld: fatal: Symbol referencing errors. No output written to cdemo1 make: Fatal error: Command failed for target `cdemo1'
These are our environment variables:
LOGNAME=histu14
ORACLE_SID=test1
NLS_LANG=German_Germany.WE8ISO8859P1
MAIL=/usr/mail/histu14
TERM=xterm
HOSTTYPE=sparc
PATH=/usr/bin:/mnt1/histu14/bin:/usr/ccs/bin:/home2/oracle/bin:/usr/ucb:/usr/local/bin:/usr/openwin/bin:.
HOME=/mnt1/histu14
SHELL=/usr/local/bin/bash
LINES=35
PS1=$PWD >
HZ=100
DISPLAY=fgipc9:0
ORACLE_HOME=/home2/oracle
OSTYPE=SunOS5
SHLVL=1
BASH=/usr/local/bin/bash
TZ=MET
_=/usr/bin/env
Does anyone know what we are doing wrong ???
Thanx in advance,
Markus
Markus,
These symbols are defined in your libsqlnet.a in the ORACLE_HOME/lib. At install time the libnetwork.a archive is merged with libsqlnet.a. If you do an:
% nm -R libnetwork.a |grep nscontrol
You should get something like:
[12] | 56| 1332|FUNC |GLOB |0 |4 |libnetwork.a:nsctl.o:nscontrol
You should get the same thing if you do the "nm" on libsqlnet.a. If the function is defined in libnetwork.a but not in libsqlnet.a then do the following:
% cd $ORACLE_HOME/lib % mergelib -olibsqlnet.a libnetwork.a % ar cr libsqlnet.a ntcontab.o
If the symbols are not defined in libnetwork or libsqlnet then you will probably need to install sqlnet V2 again. Received on Mon Apr 07 1997 - 00:00:00 CEST