GCC: Missing Libraries

GCC: Missing Libraries

Post by Frank Garnat » Fri, 19 Feb 1999 04:00:00



Hi,

maybe this question is stupid or have been asked many times before,
but I dont know the solution:
I installed gcc 2.8.1 on my SUN Ultra60 (Solaris 2.6). The installation
had no problems, but when I wanted to use gcc I realized that there are
libraries missing, especially stdio.h, stdlib.h etc.
Then I installed gcc 2.7.2.3. There I found stdio.h, but it needs
va_list.h,
which is not present in this version, too.
So where can I get the missing libraries? Are they part of any other
package
or of Solaris itself?

Thanks in advance,

Frank

 
 
 

GCC: Missing Libraries

Post by Casper H.S. Dik - Network Security Engine » Fri, 19 Feb 1999 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>maybe this question is stupid or have been asked many times before,
>but I dont know the solution:
>I installed gcc 2.8.1 on my SUN Ultra60 (Solaris 2.6). The installation
>had no problems, but when I wanted to use gcc I realized that there are
>libraries missing, especially stdio.h, stdlib.h etc.
>Then I installed gcc 2.7.2.3. There I found stdio.h, but it needs

You can use gcc 2.8.1 just fine (I'd be wary of using a gcc distribution
that comes with many header files)

You just need to install all of Solaris.  Make sure the packages listed
below are all installed:

The solaris FAQ says:

6.2) Which packages do I need to install to support a C compiler?

    Solaris ships with everything you need, with the exception of the
    compiler itself.  Solaris ships with the include files, make, an
    assembler, linker and libraries.  All this stuff lives in
    /usr/ccs/bin (add it to your PATH before /usr/ucb if that's in your
    PATH as well) /usr/ccs/lib and /usr/include.

    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, SUNWxwinc, SUNWolinc,
            SUNWxglh
        for ucb compat:
            SUNWsra, SUNWsrh

    These packages are all on the Solaris 2.x CDs, except that some
    packages may only exist in some releases and not in others.
    Some packages may be on separate CDs, such as the "Desktop/CDE"
    CD, but all are part of the Solaris "bundle".

    --- 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.wins.uva.nl/pub/solaris/solaris2/>
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.