🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #409

ld++ questions

#409
From: K.N. Kumar
Date: Thu, 27 Apr 1989 05:30
98 lines
6112 bytes
Hi folks,
	I am trying to install g++.1.34.2 on our Sun3
running SUNOS.3.4

I had installed bison and gcc.1.34. before trying to install
g++.
I executed, config.g++ sun3 and all the required links were setup.

g++ and c++, the driver and compiler seem to compile without errors.

However when ld.c was being compiled the following errors were
generated. Is there a bug in ld.c or did I miss anything else 
for the installation.
I intend to install all the gnu-software in the dir /usr/local/lib/gnu.
I did edit the make files to reflect this nonstandard path.

Below is the error log I got. Any pointers. Thanks in advance.
**************************************************************

gcc -g -DSOS -DESKIT -O  ld.c -o ld
ld.c:463: parse error before `,'
ld.c: In function main:
ld.c:584: structure has no member named `a_toolversion'
ld.c:585: `M_SPARC' undeclared (first use this function)
ld.c:585: (Each undeclared identifier is reported only once
ld.c:585: for each function it appears in.)
ld.c: In function layout_ctors_and_dtors:
ld.c:1850: storage size of `r1' isn't known
ld.c:1850: storage size of `r2' isn't known
ld.c:1890: `M_SPARC' undeclared (first use this function)
ld.c:1902: invalid use of undefined type `struct reloc_info_sparc'
ld.c:1903: invalid use of undefined type `struct reloc_info_sparc'
ld.c:1936: `r1' undeclared (first use this function)
ld.c:1937: `r2' undeclared (first use this function)
ld.c:1939: `RELOC_32' undeclared (first use this function)
ld.c:1956: invalid use of undefined type `struct reloc_info_sparc'
ld.c:1973: invalid use of undefined type `struct reloc_info_sparc'
ld.c:1994: invalid use of undefined type `struct reloc_info_sparc'
ld.c:1995: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2004: invalid use of undefined type `struct reloc_info_sparc'
ld.c: In function write_header:
ld.c:2502: `M_SPARC' undeclared (first use this function)
ld.c: In function perform_relocation:
ld.c:2719: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2719: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2725: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2728: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2729: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2731: variable `type' has initializer but incomplete type
ld.c:2731: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2731: storage size of `type' isn't known
ld.c:2744: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2840: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2840: `RELOC_DISP8' undeclared (first use this function)
ld.c:2840: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2840: `RELOC_WDISP22' undeclared (first use this function)
ld.c:2847: `type' undeclared (first use this function)
ld.c:2849: `RELOC_8' undeclared (first use this function)
ld.c:2850: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2853: `RELOC_LO10' undeclared (first use this function)
ld.c:2855: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2858: `RELOC_13' undeclared (first use this function)
ld.c:2861: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2864: `RELOC_16' undeclared (first use this function)
ld.c:2864: `RELOC_DISP16' undeclared (first use this function)
ld.c:2865: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2868: `RELOC_22' undeclared (first use this function)
ld.c:2871: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2874: `RELOC_HI22' undeclared (first use this function)
ld.c:2877: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2883: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2886: `RELOC_WDISP30' undeclared (first use this function)
ld.c:2889: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2892: `RELOC_32' undeclared (first use this function)
ld.c:2893: invalid use of undefined type `struct reloc_info_sparc'
ld.c: In function coptxtrel:
ld.c:2975: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2976: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2978: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2990: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2991: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2994: invalid use of undefined type `struct reloc_info_sparc'
ld.c:2998: invalid use of undefined type `struct reloc_info_sparc'
ld.c: In function copdatrel:
ld.c:3017: invalid use of undefined type `struct reloc_info_sparc'
ld.c:3018: invalid use of undefined type `struct reloc_info_sparc'
ld.c:3020: invalid use of undefined type `struct reloc_info_sparc'
ld.c:3023: invalid use of undefined type `struct reloc_info_sparc'
ld.c:3030: invalid use of undefined type `struct reloc_info_sparc'
*** Error code 1

Stop.
****************************************************************

      kumar        UUCP:...!rochester!ur-valhalla!kumar                                            INTERNET: kumar@ee.rochester.edu        
                        US-Mail: K.N.Kumar.                                                                      212D Conant Road                                                                Rochester NY 14623                                            
                                                                                                    
   " Let noble thoughts come from all directions - Rig veda "
Technical Details
Message-ID: <2138@valhalla.ee.rochester.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!uhura.cc.rochester.edu!ur-valhalla!kumar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!uhura.cc.rochester.edu!ur-valhalla!kumar
From: kumar@galaxy.ee.rochester.edu (K.N. Kumar)
Newsgroups: gnu.g++,comp.lang.c++
Subject: ld++ questions
Summary: trouble compiling linker for g++
Keywords: g++, ld++
Message-ID: <2138@valhalla.ee.rochester.edu>
Date: 27 Apr 89 05:30:01 GMT
Sender: usenet@valhalla.ee.rochester.edu
Reply-To: kumar@ee.rochester.edu (K.N. Kumar)
Organization: University of Rochester E.E Department
Lines: 98