From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 19 Oct 2004 15:35:33 -0700 From: Micah Stetson To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] plan9ports won't compile: undefined ref to getcallerpc Message-ID: <20041019223533.GA28331@epaphras> References: <1430953d041019133570d3ef35@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Topicbox-Message-UUID: f0f69caa-eacd-11e9-9e20-41e7f4b1d025 > > reference to getcallerpc. I opened fdwait.c and it includes libc.h, > > which defines getcallerpc, so I am not sure what is causing the error. ... > Okay, I was able to reproduce your problem on Gentoo x86 with the same compiler. > Simply remove lib/lib9.a and run ./INSTALL again. > > Not sure why this fixes it (don't have time to look into it right > now), but it does. I actually ran into this yesterday. It's gnu as. It doesn't return an error status when it fails to open the assembly source. Mkmk.sh:40 interprets this to mean that the assembly source was there, and so it doesn't try to build getcallerpc from the C source. Getcallerpc is actually in the C source, so it doesn't get linked into lib9.a. Micah