trouble building libgcj on FreeBSD 2.2.7
Andrew Haley
aph@pasanda.cygnus.co.uk
Mon May 17 08:39:00 GMT 1999
> Date: Mon, 17 May 1999 08:34:21 -0700
> From: Anthony Green <green@cygnus.com>
>
> Andrew wrote:
> > To start with, configure with --disable-threads and make sure that
> > everything works. We generally use qthreads on Linux and
> > posix-threads on Solaris. Have you tried --enable-threads=qt?
>
> Actually, qthreads isn't in libgcj - although we could consider doing
> that.
Doh! Silly me. Sorry, I should have looked at libgcj to check before
I said that.
> > The problem in your case seems to be that pthread_cancel() is not
> > defined in your pthread.h. I have no idea why that should be, but
> > as far as I know you're working on a system on which we haven't run
> > with POSIX threads, so you're going to have to do some porting work.
>
> Yes, Andrew is right. FreeBSD doesn't provide pthread_cancel(). I
> believe pthread_cancel is actually an optional part of the spec.
>
> pthread_cancel() is used to implement Thread.stop. Thread.stop is
> deprecated, and not using it is a really good idea.
>
> I suppose our two options are
>
> 1) add a configure test for pthread_cancel, and JvFail in Thread.stop
> if it isn't provided, or
>
> 2) simply remove Thread.stop.
I don't think that we should remove Thread.stop, even though it's
deprecated. Option 1 sounds fine to me.
Andrew.
More information about the Java
mailing list