Fwd: GCC Probblem #2
irene@kuthpa.net
irene@kuthpa.net
Sun Mar 4 19:27:00 GMT 2001
----- Forwarded message from Tom Rodriguez <rodrigu@mediaone.net> -----
Date: Sun, 4 Mar 2001 17:56:16 -0800
From: Tom Rodriguez <rodrigu@mediaone.net>
Reply-To: Tom Rodriguez <rodrigu@mediaone.net>
Subject: GCC Probblem #2
To: irene@kuthpa.net
Here's the problem:
# gcc test.c
ld: fatal: ld.so.1: /usr/ccs/bin/ld: fatal: relocation error: file
/usr/lib/libld.so.2: symbol dbg_mask: referenced symbol not found
collect2: ld returned 1 exit status
#
FYI: Solaris 2.7
gcc v. 2.95
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 64 bit development:
SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox,
SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx
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".
Since I am not invoking the 65 bit development - I
have since removed those packages.
test.c is the file inclusive with gcc.
Thanks.
Irene Rodriguez
irene@kuthpa.net
----- End forwarded message -----
More information about the Gcc-bugs
mailing list