🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1874

Re: One more bug.

#1874
From: Doug Schmidt
Date: Mon, 17 Apr 1989 05:10
36 lines
1909 bytes
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 |
Technical Details
Message-ID: <12159@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!ucla-cs!uci-ics!zola.ics.uci.edu!schmidt
References: <8904170434.AA11415@mime.unit.no>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!ucla-cs!uci-ics!zola.ics.uci.edu!schmidt
From: schmidt@zola.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Re: One more bug.
Message-ID: <12159@paris.ics.uci.edu>
Date: 17 Apr 89 05:10:36 GMT
References: <8904170434.AA11415@mime.unit.no>
Sender: news@paris.ics.uci.edu
Reply-To: Doug Schmidt <schmidt@zola.ics.uci.edu>
Distribution: gnu
Organization: University of California at Irvine: ICS Dept.
Lines: 36