🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53074

Undefined symbol mcount....

#53074
From: Don R. Maszle
Date: Fri, 13 Mar 1992 11:29
19 lines
1260 bytes
There was a posting about this several days ago but I've not seen a
response to it.  I'm having the same problem on our Sun4 system.  In
brief then, here is the repeat.

When I compile with the -pg switch to do profiling, the linker issues
the following error about mcount not being defined.  The line numbers
in each error correspond to entry points into my functions.

>>gcc -c -g -pg -Wall -DDEBUG  -target sun4 -c cancer.c
>>cancer.c:53 (cancer.o): Undefined symbol mcount referenced from text
segment
... etc ...

Is this an installation problem or a bug?  Does my archaic v1.4 have
anything to do with it?

Don Maszle

Don Maszle
Technical Details
Message-ID: <21984@dog.ee.lbl.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ames!agate!dog.ee.lbl.gov!bea.lbl.gov!maze

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,849c2ec53c833c83,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-13 04:14:59 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ames!agate!dog.ee.lbl.gov!bea.lbl.gov!maze
From: maze@bea.lbl.gov (Don R. Maszle)
Newsgroups: gnu.gcc.help
Subject: Undefined symbol mcount....
Followup-To: gnu.gcc.help
Date: 13 Mar 1992 11:29:42 GMT
Organization: Lawrence Berkeley Laboratory, Berkeley
Lines: 19
Distribution: gnu
Message-ID: <21984@dog.ee.lbl.gov>
NNTP-Posting-Host: 128.3.12.45
Keywords: mcount, profile, -pg