Re: Non-SunPro Compiler w/Pro*C

From: Norm Russell <nrussell_at_etc.bc.ca>
Date: Fri, 7 Oct 1994 19:48:47 GMT
Message-ID: <1994Oct7.194847.806_at_news.etc.bc.ca>


In article <bradley.1131735697D_at_map> Randy Bradley, bradley_at_marcvm.marc.usda.gov writes:
> In Article <1994Sep30.100503.24165_at_amoco.com>, cmspringer_at_chi.amoco.com
> (Carl Springer) wrote:
> >Has anyone had any luck with C compilers other than SunPRO C with Pro*C on
> Solaris 2? I tried gcc 2.4.5 at one point but it would not work due to
> Oracle's usage of the
> >-xcg92 flag which was not supported at the time in gcc.
> >
> >It'd be nice to avoid buying the Sun compiler, but perhaps there's no other
 way.
> >
>
> gcc 2.5.7 seems to work fine but I'm just on SUN/OS 4.1. Worth a try :-)
>

We have Solaris 2.3 (SunOS 5.3) and have the same problem. I contacted Oracle Support and they faxed me the following:


  

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


   

Hope I didn't make any typo's :)

However, we are still having a problem with the library directory:   /opt/SUNWspro/..... It doesn't exist on our system :-(   

I'm unaware of what software package would provide this directory? Would it be gcc, some SUN product?? Does anybody out there know?

    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
Received on Fri Oct 07 1994 - 20:48:47 CET

Original text of this message