[gnu.g++.bug] Help building gnu g++ for sun 3 os 4.1

vbhatt@dude.epps.kodak.com (Vijay Bhatt) (09/11/90)

I have a working version (1.37.1 )of gnu gcc installed using gas, and
had also managed to compile and install version 1.37.0 of gnu g++.
When trying to compile a small program with g++, it responds with
example.o: Undefined symbol ___main referenced from text segment
(basically it seems that the loader cannot get to  main).

In any case, after Installing g++ I build libg++ version 1.37. It built without any
compilation problems.

When running the test0 manually or any of the other tests in libg++/tests, 
the system responds with segmentation fault.

Incidently I am using sun3-os4 and I have the latest verisons of GAS and
BISON istalled.

Could someone please help me on overcoming the segmentation fault.

ps: I made the gnu gcc with the system ld and  g++ had its own ld.c.
Also my cc1plus seems to be ok since there were no compilation errors, due
to it.
I have tried some previously posted suggestions but they don,t seem to
work for me.


Thanks
Vijay.

vbhatt@epps.kodak.com