HELP!!! - Problems with OCI Demo Files

From: Markus Michael Mayer <e9426302_at_stud1.tuwien.ac.at>
Date: 1997/04/04
Message-ID: <3344DA1C.3A7C_at_stud1.tuwien.ac.at>#1/1


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 multiple inclusion
of file
Undefined                       first referenced
 symbol                             in file
nscontrol                           /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 multiple inclusion
of file
Undefined                       first referenced
 symbol                             in file
nscontrol                           /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 Received on Fri Apr 04 1997 - 00:00:00 CEST

Original text of this message