🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42773

Installing gcc on m68k-hp-hpux

#42773
From: Rick Mc Leod of the Clan Mac Leo...
Date: Fri, 20 Oct 1995 00:00
31 lines
1879 bytes
Yo,
  My make terminates after compiling compiling enquire.c:

----------------------------------------------------------
        ./xgcc -B./  -DIN_GCC -I../hp-include   -I./include    -DNO_MEM
-DNO_LONG_DOUBLE_IO -O0
-I. -c ./enquire.c
        ./xgcc -B./  -DIN_GCC -I../hp-include   -I./include  enquire.o -o
enquire
collect2: ld returned 1 exit status
enquire.o(.text+0x39e): undefined reference to `__main'
*** Error code 1

Stop.
-----------------------------------------------------------
I've compiled and installed bin-utils-2.5.2, bison, & flex.
gcc-2.7.0 is configured '--with-gnu-as'
The (rather ancient) box only has the bundled C compiler to
start with...

Should I be using older versions of gnu? or is my configuration
in error? What is 'collect2'? (a replacement for ld?) I am
reluctant to redefine NAME_MAIN because I don't really know
the source of the problem.

Any ideas appreciated...
 
+------------------------------------------------------------------------+
!     Rick Mc Leod - some guy with enough knowledge to be dangerous	 !
!  MTI, 100 Carpenter Drive #202 Sterling VA 20164 - email: rxm@mti.com	 !
+------------------------------------------------------------------------+
Technical Details
Message-ID: <3980@mtigate.mti.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,fad3206587857df8,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: fcda7,fad3206587857df8,start
X-Google-Attributes: gidfcda7,public
From: rxm@mti.com (Rick Mc Leod of the Clan Mac Leod)
Subject: Installing gcc on m68k-hp-hpux
Date: 1995/10/20
Message-ID: <3980@mtigate.mti.com>
X-Deja-AN: 117836910
sender: news@mtigate.mti.com
followup-to: gnu.gcc.help
content-type: text/plain; charset=us-ascii
organization: MTI
x-url: news:gnu.gcc.help
mime-version: 1.0
newsgroups: gnu.gcc.help,comp.sys.hp.hpux
x-mailer: Mozilla 1.1N (X11; I; SunOS 5.3 sun4m)