Re: gcc, Pro*C and SUNWspro libraries

From: Scott Urman <surman_at_wwsun10.us.oracle.com>
Date: 8 Oct 1994 20:05:16 GMT
Message-ID: <376u1s$s66_at_dcsun4.us.oracle.com>


In article <1994Oct7.200122.966_at_news.etc.bc.ca>, Norm Russell <nrussell_at_etc.bc.ca> writes:
|> I received some help from a guy at Oracle Support on possible
|> 'unsupported' use of gcc with Pro*C.
|>
|> The problem I'm having is that the library directory: /opt/SUNWspro/....
|> does not exist on our system.
|>
|> Does anybody know what software package would provide this library? gcc,
|> some SUN product???
|>
|>
|> Here's the help fax I received from Oracle.... (hopefully with no typo's :)
|>
|> =========
|>
|> When using the gcc compile with Pro*C on Solaris, you will have to make
|> the following changes to proc.mk. Please note that gcc is not a
|> supported compile for Pro*C.
|>
|> Change
|> samplec: samplec.c samplec.pc
|> _at_$(ECHO) $(RCC) $(CFLAGS) $(LDFLAGS) -o $@ samplec.c $(PROLDLIBS)
|> to
|> samplec: samplec.c samplec.pc
|> _at_$(ECHO) $(RCC) $(CFLAGS) -Xlinker -u -Xlinker __cg93_libc \
|> -L/opt/SUNWspro/SC2.0.1/cg92 /opt/SUNWspro/SC2.0.1/cg92/__fstd.o \
|> $(LDFLAGS) -o $_at_ samplec.c $(PROLDLIBS)
|> and change
|> RCC=cc -I. -O -xcg92
|> to
|> RCC=gcc -I. -O
|>
|> ==========
|>
|>
|> Norm
|> --
|> Norm Russell, Sr. Database Administrator | Phone: +1 (604) 655-4846
|> B.C. Systems Corporation | Fax: +1 (604) 655-1029
|> Dunsmuir Lodge, Education Technology Centre |
|> P.O. Box 2040, 1515 McTavish Road | OV/ID: VAXBCSC(NRUSSELL)
|> Sidney, B.C. CANADA V8L 3S3 | E-Mail: nrussell_at_etc.bc.ca
|> Disclaimer: The opinions expressed are my own and not those of my employer

I believe that this directory is created by installing the SparcWorks compiler (which is the officially supported compiler). __fstd.o is also shipped in $ORACLE_HOME/lib, because this same problem exists on Solaris for Cobol, for example. And most Cobol shops don't have C, so the library is shipped as part of the Oracle distribution for exactly this reason. I think that Oracle got special permission from Sun to do this, by the way. And the above changes should probably be made to the .pc: target of proc.mk as well, otherwise they will only apply for the samplec program. Received on Sat Oct 08 1994 - 21:05:16 CET

Original text of this message