gcc-2.95.2 on HP-UX 10.20 and unresolved __main()

Jeffrey A Law law@cygnus.com
Wed Nov 10 20:48:00 GMT 1999


  In message < 567.942273629@brown.pfcs.com >you write:
  > I like to think I followed the directions on the build/install.  Twice.
  > 
  > No problems reported on either, but when I try to compile/link anything I
  > get messages like this:
  > 
  >  % gcc hello.c
  >  /usr/lib/dld.sl: Unresolved symbol: __main (code)  from /usr/local/lib/gcc
  > -lib/hppa2.0-hp-hpux10.20/2.95.2/collect2
  >  gcc: Internal compiler error: program collect2 got fatal signal 6
Let me guess, you built with HP's make.  It mucks things up by trying to
rebuild/relink code during the make install phase.  What you see above is a
symptom of that braindamage.

Start over and use a make that works :)

jeff



More information about the Gcc-bugs mailing list