On Wed, 13 May 2009 21:57:11 +0200 [email protected]  wrote:
> I thought things were running too smoothly.  I got P9P to compile on
> the Lemote Yeeloong with only very frequent ocurrences of warnings
> (they seem like compile-time warnings) to the effect that each of
> getcontext, makecontext and swapcontext "is not implemented and will
> always fail".
> 
> Now, the Yeeloong is a notebook based on a MIPS cpu and endowed with
> Open Architecture, Open BIOS (called PMON) and Linux (Debian).  The
> man page for getcontext() seems to suggest that it exists, but
> executing, say, acme fails with:
> 
> "threadalloc getcontext: function not implemented"
> 
> So close to getting there, but I must be missing something.  Does
> anyone know what?
> 
> ++L
> 

See $PLAN9/include/u.h. You may need to add something to the
/* OS-specific crap */ section. Adding

#include <pthread.h>
#define PLAN9PORT_USING_PTHREAD 1

for your version of linux just might do the trick.

Reply via email to