Pro*C compile linker question

From: Raymond Chan <raychan_at_bftzh71.bnr.ca>
Date: 6 Aug 1994 00:32:52 GMT
Message-ID: <31ulnk$3q3_at_bmerha64.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)


$ 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 ========================================================================
Received on Sat Aug 06 1994 - 02:32:52 CEST

Original text of this message