From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 3 Mar 2008 01:46:39 -0700 From: David Morris To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] plan9port build failure on Linux (debian) Message-ID: <20080303084639.GB24732@morris-clan.net> References: <20080303042017.GE14610@morris-clan.net> <20080303084557.GA24732@morris-clan.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080303084557.GA24732@morris-clan.net> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Topicbox-Message-UUID: 6d5bc9be-ead3-11e9-9d60-3106f5b1d025 On Mon, Mar 03, 2008 at 01:23:06PM +0800, Hongzheng Wang wrote: > Hi, > > I have just cvsed and rebuilt the whole system. No error > occurs. And my system is Debian sid. So, I think the > problem you encountered might due to some missing or > mismatched packages on your debian box. Perhaps, the > install.log in /usr/local/plan9/ would be helpful to > discover what's wrong during installation. Well, one step forward, one step back.... install.log was no help, the message I quoted was everything relevant. I took a stab at running gdb through yacc, but the compiler optimized the code to the point finding the problem was nearly impossible.....best I can say is its somewhere in the dofmt() function (lib9/fmt/dofmt.c) or something it calls. So I pulled out my VERY slow laptop and spent a few hours letting it compile plan9port. This time the build worked, so looks like some lenny/sid packages don't work well together. Hmm, or another possibility occurs to me. I use the AMD64 kernel (2.6.22-3-amd64) on my desktop, but i686 on the laptop (2.6.22-3-i686). Any chance that could cause a problem? I tried copying the "pure lenny" install to the main system file structure, but that clearly does not work because wmii (the application I need plan9port for) does not run. So, any ideas on how to fix the build process? The problem stems from yacc.c at line #2173 in the sprint() function. Could I replace that with the standard library sprintf() function as a stop-gap measure? --David