[gnu.g++.bug] One more bug.

kha@idt.unit.no (04/17/89)

One more bug on sun3-os4 when compiing libg++1.34.0: the linker still
complaints when linking the programs in the tests subdirectory.:
Undefined symbols:
 __DYNAMIC 

This error message doesn't appear when compiling the library for Sun3
and os3.4


                                        Knut-Haavard Aksnes.

schmidt@zola.ics.uci.edu (Doug Schmidt) (04/17/89)

In article <8904170434.AA11415@mime.unit.no> kha@idt.unit.no writes:
++ One more bug on sun3-os4 when compiing libg++1.34.0: the linker still
++ complaints when linking the programs in the tests subdirectory.:
++ Undefined symbols:
++  __DYNAMIC 
++ 
++ This error message doesn't appear when compiling the library for Sun3
++ and os3.4

Look very carefully at the STARTFILE_SPEC in tm.h.  I'll bet you are
not using the correct crt0+.o file when running ld++.

To find out whether you are, try compiling a simple program using

g++ -v foo.cc

The last line of the output should look something like this:

----------------------------------------
 /usr/public/lib/gnu/gcc-ld++ -C -C /usr/public/lib/gnu/crt0+.o foo.o
-lg++ /usr/public/lib/gnu/gcc-gnulib -lc
----------------------------------------

(of course, your directory structure may differ).  You are probably
getting /lib/crt0.o, which accounts for your troubles.  Changing the
appropriate lines in tm.h in the ./config/tm.h directory should do the
trick.  

This works for me.  Please let me know if you have additional problems.

Doug        
--
On a clear day, under blue skies, there is no need to seek.
And asking about Buddha                +------------------------+
Is like proclaiming innocence,         | schmidt@ics.uci.edu    |
With loot in your pocket.              | office: (714) 856-4043 |