>After reading all the FAQ, newsgroups and so on it gives the follwing error
>when compiling a sample program:
>$gcc -o main main.c
>ld: fatal: file values-Xa.o: cannot open file; errno=2
>ld: fatal: File processing errors. No output written to main
>make: *** [main] Error 1
>ld is on the path (I'm using the one that came with solaris)
>I read the FAQ's but it talks about installing packages that I allready
>have.
You haven't installed SUNWarc (it is mentioned in the FAQ):
/usr/ccs/lib/values-Xa.o is in package SUNWarc
system SUNWarc Archive Libraries
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.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.