Pro*C compile linker question
Date: Fri, 5 Aug 1994 20:54:15 GMT
Message-ID: <1994Aug5.205415.21562_at_bcarh54a.bnr.ca>
We are running Oracle 7.0.16 with Pro*C 1.5 on HP9000/755. I have a question on compiling Pro*C using the demo make file provided by Oracle. As shown on the listing below, if I include the libraries "-lnlsrtl -lcv6 -lcore" twice, the linker works.
Can someone explains? Sorry if it is a faq.
$ uname -a
HP-UX myhost A.09.01 A 9000/755 2008762962 two-user license
$ make -f proc.mk USERID=/ sample1
/disc3/oracle7016/bin/proc ireclen=132 oreclen=132 select_error=no iname=sample 1.pc
Pro*C: Release 1.5.10.1.0 - Production on Fri Aug 5 16:31:16 1994
Copyright (c) Oracle Corporation 1979, 1992. All rights reserved.
Precompiling sample1.pc
cc -I. -O -Aa -Wl,-aarchive -L/disc3/oracle7016/lib -o sample1 sample1.c /disc3/
oracle7016/lib/libsql.a /disc3/oracle7016/lib/osntab.o -lsqlnet -lora /disc3/ora
cle7016/lib/libpls.a -lsqlnet -lnlsrtl -lcv6 -lcore -lcl -lm
/bin/ld: Unsatisfied symbols:
lihninfo (code)
liicop (code) liicpc (code) liiccp (code) liipad (code) litnum (code)
lisplth (code)
liicps (code)
liicpu (code)
linbyte (code)
lispln (code) lisply (code) lii42b (code)
lilinfo (code)
*** Error code 1
Stop.
$ diff proc.mk.orig proc.mk
132,133c132
< CORELIBS=$(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL) $(LLIBCV6) \
< $(LLIBCORE)
--- > CORELIBS=$(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE)Received on Fri Aug 05 1994 - 22:54:15 CEST
$ cp proc.mk.orig proc.mk
$ touch sample1.pc
$ make -f proc.mk USERID=/ sample1
/disc3/oracle7016/bin/proc ireclen=132 oreclen=132 select_error=no iname=sample 1.pc Pro*C: Release 1.5.10.1.0 - Production on Fri Aug 5 16:29:46 1994 Copyright (c) Oracle Corporation 1979, 1992. All rights reserved. Precompiling sample1.pc cc -I. -O -Aa -Wl,-aarchive -L/disc3/oracle7016/lib -o sample1 sample1.c /disc3/ oracle7016/lib/libsql.a /disc3/oracle7016/lib/osntab.o -lsqlnet -lora /disc3/ora cle7016/lib/libpls.a -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lcl - lm ^ ^ ^ | | | Duplicate libraries $ =========================================================================== Thanks, Ray -- ======================================================================== Raymond Chan | Internet: raychan_at_bnr.ca Northern Telecom Limited. | Phone: (613) 763-7814 ======================================================================== The opinions expressed here are solely my own and do not reflect the opinions of Bell Northern Research or Northern Telecom ========================================================================