[CFT] Update OpenJDK6 to b21

Jung-uk Kim jkim at FreeBSD.org
Tue Feb 8 18:10:26 UTC 2011


On Tuesday 08 February 2011 12:05 pm, Jung-uk Kim wrote:
> I found the culprit:
>
> http://svn.freebsd.org/viewvc/base?view=revision&revision=206903
>
> It was never MFC'ed.  I guess it worked for me because I am using
> CURRENT.
>
> What's the best way to solve this C++ namespace problem *without*
> explicit extern "C" (i.e., some versions have this already)?
> Will ::thr_self() just work? :-(

I wasn't able to avoid the extern "C".  Instead, I did:

#ifdef __FreeBSD__
#if __FreeBSD_version > 900030
# include <pthread_np.h>
#else
extern "C" int thr_self(long *); // XXX #include <sys/thr.h>
#endif
#endif

It is ugly but it seems working.  The tarball was re-rolled:

http://people.freebsd.org/~jkim/ports-openjdk6-b21_4.tar.bz2

Please try again.

Thanks,

Jung-uk Kim


More information about the freebsd-java mailing list