Date: Tue, 8 Feb 2011 13:10:17 -0500 From: Jung-uk Kim <jkim@FreeBSD.org> To: freebsd-java@freebsd.org Cc: Kostik Belousov <kostikbel@gmail.com>, Pieter de Goeje <pieter@degoeje.nl> Subject: Re: [CFT] Update OpenJDK6 to b21 Message-ID: <201102081310.18692.jkim@FreeBSD.org> In-Reply-To: <201102081205.17237.jkim@FreeBSD.org> References: <201101261721.58069.jkim@FreeBSD.org> <20110208054115.GA15525@misty.eyesbeyond.com> <201102081205.17237.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102081310.18692.jkim>