Re: WOW/PLSQL Gateway on Solaris 2.4

From: Michael Ryan <ryan_at_xsoft.xerox.com>
Date: 1995/05/11
Message-ID: <1995May11.173803.16514_at_xsoft.uucp>#1/1


In article <shinnickD86B7w.Hpw_at_netcom.com>, shinnick_at_netcom.com (Dan Shinnick) writes:
>We are trying to compile the Oracle WOW/PLSQL Gateway on a Sun Sparc4
>running Solaris 2.4 with Oracle 7.1.6 and SQLNetv2 2.1.4. We are
>using the generic Makefile.sun5 (with the environment variables
>changed). Trying to compile wowstub we receive the following error.
>gcc -o wowstub wowstub.o util.o oci.o -L/opt/oracle/lib -locic
>/opt/oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6
>-lcore -lnlsrtl -lcv6 -lcore -lm
>Undefined first referenced
> symbol in file
>socket /opt/oracle/lib/libsqlnet.a(ntt.o)
>If anyone can shed some light on this problem, I would appreciate the help.

(apologies if this is old news)

you need to include -lsocket in your link line.

from my (well Xerox') Makefile, derived from the distributed sun5 Makefile: PROGRAM = wowstub
...
LDLIBS = -xcg92 -lsocket -lnsl  

ORALIBS=$(ORA713_LIBS)  

# directory that contain oratypes.h and other oci demo program header files
# NOTE: There is a bug in oratypes.h - just remove the word "signed" from
# the line CC is complaining about!
 

INCLUDE= -I$(ORACLE_HOME)/rdbms/demo  

#

CSRC= wowstub.c util.c oci.c
COBJ= $(CSRC:.c=.o)
CINC= oci.h wowstub.h
 

all: $(PROGRAM)  

debug: $(PROGRAM)  

$(PROGRAM): $(COBJ)

        $(LINK.c) -o $_at_ $(COBJ) $(ORALIBS) $(LDLIBS)
        

produces the following link command:

[kuma!ryan]/home/ryan/wow(14)% make -n
cc -O -I/disk2/oracle/product/7.1.4/rdbms/demo -xcg92 -L/opt/SUNWspro/SC2.0.1/cg92 -s -o wowstub wowstub.o util.o oci.o -L/disk2/oracle/product/7.1.4/lib -locic /disk2/oracle/product/7.1.4/lib/osntab.o -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lm -xcg92 -lsocket -lnsl

in your case, you would set CC=gcc.

good luck
//michael        

-- 
:: michael ryan , ryan_at_xsoft.xerox.com
:: ob disclaimer: opinions expressed are not those of xerox, corp.
Received on Thu May 11 1995 - 00:00:00 CEST

Original text of this message