Linker error

Linker error

Post by Michael Todar » Thu, 27 Jul 2000 04:00:00



    Ok, I just acquired a SPARC 10 and I installed the packages that the
Solaris2 FAQ told me I needed to support a C compiler. I left out the 64bit
ones as I won't need them. Now I get an error when I attempt to compile the
basic "Hello World" program, or any other program for that matter. Here's
the error:

ryoko% gcc hello.c
ld: fatal: ld.so.1: /usr/ccs/bin/ld: fatal: relocation error: file
/usr/lib/libld.so.2: symbol d
bg_mask: referenced symbol not found
ryoko%

Any ideas why this is happening? I have /usr/ccs/bin in my path, along with
/usr/lib so I know that's not the problem. I checked, and
/usr/lib/libld.so.2 exists as well. Thanks in advance for your help.

mike

 
 
 

1. g++ linker errors

Hi NetBSD gurus,

I'm writing some C++ code which uses exceptions.  I'm compiling with g++
on a NetBSD machine and using the flag -fhandle-exceptions.  No problem
there.  But when it comes time to link, there are some undefined symbols
specifically related to exception handling.  Is there a specific library
that I should be linking with in order to use exceptions on NetBSD g++?

Below is a transcript of the errors I received.  BTW, I tried searching
for the symbols via 'nm /usr/lib/*.a | grep exception', but wasn't to
successful.

----------------------BEGIN TRANSCRIPT------------------

Script started on Sat Sep  6 19:01:41 1997
g++ -o cgitest.cgi test.o CGI.o
test.C:9: Undefined symbol `___throw_type_match' referenced from text segment
test.C:12: Undefined symbol `___register_exceptions' referenced from text segment
test.C:12: Undefined symbol `___find_first_exception_table_match' referenced from text segment
test.C:12: Undefined symbol `___unwind_function' referenced from text segment
CGI.C:120: Undefined symbol `___register_exceptions' referenced from text segment
CGI.C:120: Undefined symbol `___find_first_exception_table_match' referenced from text segment
CGI.C:120: Undefined symbol `___unwind_function' referenced from text segment
*** Error code 1

Stop.
Script done on Sat Sep  6 19:01:49 1997

----------------------END TRANSCRIPT----------------------

Thanks for any advice.
--
| Lance Ball
| Imagination is greater than knowledge.  -- A.E.
| 97 E9 02 55 96 39 AE C9  FC AE D1 AF 46 6A AB 7D

2. Microsoft = Ingsoc? They're clearly using some of the same tactics!

3. linker error: 'undefined reference'

4. 'Bringing up interface eth0' on boot

5. linker error on HP 11.0

6. pbm2g3/pbmtext binaries

7. Linker error when creating shared objects under Solaris2.5

8. Mail access problems (with mmdf)

9. Help with GNU linker errors

10. xlC - linker error: unresolved system call BUT it is in libc

11. linker-error-message

12. Linker error with X libraries

13. Problems compiling Pcomm1.2 (Linker error)