SUMMARY: CC Compiler Problem

From: by way of Diego_Fernando Londono (jcaro@colomsat.net.co)
Date: Wed May 08 1996 - 08:56:34 CDT


I wrote:

>Hello Managers
>
>We have a SUN Netra 20 running a Solaris 2.4.
>
>We have recently installed the SPARCworks Common Tools 0.0, SPARCworks 3.1
>and the SPARCCompiler C 4.0, packages from SunSoft Workshop package, but
>when try to test it with a program like this:
>#include <stdio.h>
>
>main()
>{
>
> printf("hello world\n");
>
>}
>
>the compiler issues the error message: "stdio.h file not found". Where can
>I find that file??, where are the related and others libraries??.
>

Thanks to :

 Casper Dik <casper@holland.Sun.COM>
 Rahul Roy <roy@bluestone.com>
 baingra@sandia.gov (Bryan Ingram)
 Michael Wright ED23 <michael@morticia.msfc.nasa.gov>
 Nicky Ayoub <Nicky.Ayoub@Microchip.COM>
 Robert Fulwiler <bobf@psa.pencom.com>
 Milt Webb <milt@iqsc.com>
 stots@elbit.co.il (Haim Stotsky)
 bleary@state.ma.us
 mike@trdlnk.com (Michael Sullivan)
 khb@gammara.Eng.Sun.COM (Keith Bierman-khb@chiba.eng.sun.com::SunPro)
 "Carlos E. Caicedo" <ccaicedo@atenea.ucauca.edu.co>
 Francis Liu <fxl@pulse.itd.uts.edu.au>

The most accurate answers were those originated by Casper Dik and Francis
Liu. they say:

CASPER DICK
>
>The Netra's come preinstalled with a less than full OS installation.
>You need to get the OS CD out and install some extra software.
>
>The solaris FAQ says:
>
>6.2) What about the linker, the assembler and make?
>
> Solaris ships with everything you need, except for the compiler.
> All this stuff lives in /usr/ccs/bin and /usr/ccs/lib.
> If you still can't find it, make sure you have the following
> packages installed on your system:
>
> for tools (sccs, lex, yacc, make, nm, truss, ld, as):
> SUNWbtool, SUNWsprot, SUNWtoo
> for libraries & headers:
> SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
> SUNWdfbh, SUNWcg6h
> for ucb compat:
> SUNWsra, SUNWsrh
>
> These packages are all on the Solaris 2.x CD.
>
> --- end of excerpt from the FAQ
>
>Questions marked with a * or + have been changed or added since
>the FAQ was last posted
>
>The most recently posted version of the FAQ is available from
><http://www.fwi.uva.nl/pub/solaris/solaris2/>
>

AND FRANCIS LIU:
>I think because you have a Netra you don't have all the system
>components you need to be able to compile. Check that you have
>the following packages installed :
>SUNWhea
>SUNWsrh
>SUNWbtool
>SUNWlibC and/or SUNWlimCf
>SUNWsprot
>SUNWtoo
>and possible more packages.
>
>If you don't have them, get your Solaris media out and pkgadd(1m) them.
>
>

GRACIAS!!!!

 ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
(___)(___)(___)(___)(___)(___)(___)(___)(___)(___)
        __ __ ___
  ____ ( ) ____ /__\ ____ / __) __
 ( ___) )(__ ( _ \ /(__)\ (_ _)\__ \ /__\
  )__) (____) )___/(__)(__) _)(_ (___/ /(__)\
 (____) (__) (____) (__)(__)
 ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
(___)(___)(___)(___)(___)(___)(___)(___)(___)(___)
 
 
Diego Fernando Londono Londono
  Internet Division Manager
      COLOMSAT S.A.
E-Mail: dlondono@colomsat.net.co
        dlondono@uniandes.edu.co



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:59 CDT