From owner-freebsd-java Sat Jul 21 20: 7:25 2001 Delivered-To: freebsd-java@freebsd.org Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hub.freebsd.org (Postfix) with ESMTP id 3B19037B408 for ; Sat, 21 Jul 2001 20:07:23 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: by sharmas.dhs.org (Postfix, from userid 500) id 8788F5DD97; Sat, 21 Jul 2001 20:07:40 -0700 (PDT) Date: Sat, 21 Jul 2001 20:07:40 -0700 From: Arun Sharma To: Arun Sharma Cc: java@FreeBSD.ORG Subject: Re: POSIX port of Intel ORP Message-ID: <20010721200740.B32616@sharmas.dhs.org> References: <20010720100944.A13540@sharmas.dhs.org> <20010721025208.A65928@misty.eyesbeyond.com> <20010720104344.A22485@sharmas.dhs.org> <20010721032457.A66507@misty.eyesbeyond.com> <20010721104950.A31627@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <20010721104950.A31627@sharmas.dhs.org>; from arun@sharmas.dhs.org on Sat, Jul 21, 2001 at 10:49:50AM -0700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Jul 21, 2001 at 10:49:50AM -0700, Arun Sharma wrote: > Here is a developer preview of what I have done so far: > > http://www.sharma-home.net/~adsharma/projects/orp/orp-posix-patch.txt.gz > [34 KB] Ok, I've narrowed down the problems to issues with the way FreeBSD restores signal context when linked with libc_r. See my message to -hackers on this topic. I tried using IBM's MxN pthread implementation: http://oss.software.ibm.com/developerworks/opensource/pthreads/ That I'd ported to FreeBSD earlier: http://oss.software.ibm.com/pipermail/pthreads-devel/2001-July/000050.html and bingo! it solved all the problems. My ngpt port is still very rough and untested. I can put up a 4.3-STABLE binary if people here are interested. After compiling, you need to *manually* copy libngpt.so.10 to /usr/local/lib and symlink it to libpthread.so. Here's the patch to use ngpt: --- orp.posix/mains/orp/Makefile- Sat Jul 21 20:05:01 2001 +++ orp.posix/mains/orp/Makefile Sat Jul 21 20:05:21 2001 @@ -35,7 +35,7 @@ ifeq ($(UNAME), FreeBSD) -LINKER_FLAGS = -L/usr/local/lib -lc_r -lglib -lm -lgthread +LINKER_FLAGS = -L/usr/local/lib -lpthread -lglib -lm -lgthread else LINKER_FLAGS = -lglib -ldl -lm -lgthread endif Enjoy! -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message