From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <676c3c4f0607061319r25765e59pc566320f1b2d4e69@mail.gmail.com> Date: Thu, 6 Jul 2006 16:19:27 -0400 From: "Richard Bilson" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] OT: plan9port compilation failure In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Topicbox-Message-UUID: 73af376c-ead1-11e9-9d60-3106f5b1d025 On 7/6/06, ISHWAR RATTAN wrote: > > Did a fresh cvs checkout and tried to compile. > > System is (via uname -a): > SunOS cps222 5.10 Generic_118833-03 sun4u sparc SUNW,Sun-Blade-100 > > In plan9 directory (via ./INSTALL): > > ... > >>> cd /home/user/rattan/plan9/src/libthread; mk all > 9c -I. pthread.c > sparc-ucontext.h:20: error: conflicting types for 'makecontext' > /usr/include/ucontext.h:43: error: previous declaration of 'makecontext' was here There's a block of code that is #ifdef __sun__ in threadimpl.h that breaks Solaris. I was just in the process of preparing a diff when I was distracted by other things. In particular, this block is unnecessary and harmful: #if defined(__sun__) # define mcontext libthread_mcontext # define mcontext_t libthread_mcontext_t # define ucontext libthread_ucontext # define ucontext_t libthread_ucontext_t # include "sparc-ucontext.h" #endif Having eliminated that, however, it's working well for me.