From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <19aa40d0d968992bace1770aaf2c775e@hamnavoe.com> To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Sat, 8 Mar 2008 20:11:28 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Xen and new venti Topicbox-Message-UUID: 73ee7592-ead3-11e9-9d60-3106f5b1d025 OK, I've found the real cause of the errors which stella@plan9.jp was seeing when linking 9xen kernels: > v4parsecidr: undefined: memcpy in v4parsecidr > _strayintrx: _ctype: not defined In the definition of LIB= in the mkfile, if libc.a is listed before libip.a, you get the above errors (for any kernel, not just xen ones). This is because there are no direct references to libc.a functions from the kernel itself, only from something in libip.a which was added recently. So the linker needs to see libip.a before libc.a in order to know what references to resolve. If you simply move libc.a after libip.a, it works fine without having to change any source code. I've now rebuilt all the 9xen*.gz kernels in /n/sources/xen/xen3 using the current Plan 9 kernel and nventi. They work with Xen 3.0.x; no guarantees about 3.2.x but it's worth trying. -- Richard