From owner-freebsd-java@FreeBSD.ORG Sun Dec 8 04:11:56 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6F3F4FD for ; Sun, 8 Dec 2013 04:11:56 +0000 (UTC) Received: from nm47.bullet.mail.ne1.yahoo.com (nm47.bullet.mail.ne1.yahoo.com [98.138.120.54]) by mx1.freebsd.org (Postfix) with SMTP id 719431FA4 for ; Sun, 8 Dec 2013 04:11:56 +0000 (UTC) Received: from [127.0.0.1] by nm47.bullet.mail.ne1.yahoo.com with NNFMP; 08 Dec 2013 04:11:49 -0000 Received: from [98.138.101.128] by nm47.bullet.mail.ne1.yahoo.com with NNFMP; 08 Dec 2013 04:09:09 -0000 Received: from [106.10.166.120] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 08 Dec 2013 04:09:08 -0000 Received: from [106.10.151.123] by tm9.bullet.mail.sg3.yahoo.com with NNFMP; 08 Dec 2013 04:09:08 -0000 Received: from [127.0.0.1] by omp1005.mail.sg3.yahoo.com with NNFMP; 08 Dec 2013 04:09:08 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 518817.93932.bm@omp1005.mail.sg3.yahoo.com Received: (qmail 30905 invoked by uid 60001); 8 Dec 2013 04:09:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s1024; t=1386475748; bh=r2WxpYaeePPtodMP+qMnb0tqS13bG1ofdKhhewNDHc4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=q8FkzScfbPIo/d9akZmeaG0dfGn5uuTCBrU106bbAf+1ax7P6zA/N7aMlKYudPV/jUlDQqHqkGXz7iMPGK3Aj4aHcYvbIOBPHFZB/gSd2lx+bcgfZ3wosSbuCBbryzvKsUL1SufBmMlfZVVmw4sUhdpwjFLaJt5CRBhBk5jNUo0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VVcEp7EasohyhkMcOZclDy08q3hMAHH/owOBMHex4DC0UJvY7I29SoOScjhto54I7/zoZ9gFan7o8fyjS5Q8xc7iAnWQ+P33c5wum7E/QVx344Ll9v2VhsMpiaKk2DBAu/l45P4h85+01F3Z58fEknXxZb2np64aeljviFPN284=; X-YMail-OSG: 5TWGSrMVM1k323YpGrGY5QHWNgursOemtY6yh809OHdgVBn Jr7Sr5VWiNzpre4rToMpwYxnug00yP9wD9ym7dz6ALg2a99F2hC8iRCMOqLM uzFS_KgbldK0wsWgmoGrsohciGg9_MGVMG3G.LDdpaZq0h4irsQ4_ZaJxqb0 uZhBDGE5orw7puqClp792UVuKrkgfG8g2oxJkDHx3S8Y9RRoZBIVid3_fzzh PZWxsNvdJ3dJnbj0ZVLXPve.kMKlO69cjYAxnb_R4zqWiHLF_qKgbOFIKkr5 T1A0uhQjnaFbNEtOfH6XDL6IyUaCGf0.Gg8aycm23zGJ53AeAB9Z.Yx7vtym Y7ypHN5dGcbp7QfS9fcdazN7lJo43lQcDEjYhT6ahVQswsr1nFnqb32erNiy IAUPTTY_mZ3BMbaue7TF7huAyJaBsPs5lWWWXABC6a2ilwTYa7KsayC8u8Hd UGp.K9Z32o.f1gxLo4rD4I7FDBe.bAn4ZpU5BX9T4FJKBXAeLsn3Fx7BM6tp QmQWkyJNKk3Dcu_UgzBTVYaSsBCtrG4kiCnVYxxAtlyKNtf26lFd88Sn6gf5 v08FuWNRxCrDP6SYrW0w4ct5poXoF9kg_uV7ChwjSV5ulxAKIMpkLtcx_Sf6 8_GHTd1C3Epz31A-- Received: from [219.79.249.253] by web193502.mail.sg3.yahoo.com via HTTP; Sun, 08 Dec 2013 12:09:08 SGT X-Rocket-MIMEInfo: 002.001, T24gU3VuZGF5LCBEZWNlbWJlciA4LCAyMDEzIDM6MzEgQU0sIEdyZWcgTGV3aXMgPGdsZXdpc0BleWVzYmV5b25kLmNvbT4gd3JvdGU6Ck9uIFNhdCwgRGVjIDA3LCAyMDEzIGF0IDExOjA1OjQ1QU0gLTA4MDAsIEdyZWcgTGV3aXMgd3JvdGU6Cj4gT24gU2F0LCBEZWMgMDcsIDIwMTMgYXQgMTA6MjI6MzFBTSArMDEwMCwgQWxiZXJ0IFNoaWggd3JvdGU6Cj4gPsKgIExlIDA2LzEyLzIwMTMgPyAyMjo0MDo0NC0wODAwLCBHcmVnIExld2lzIGEgP2NyaXQKPiA.ID4gQ2FuIHNvbWVvbmUgcGxlYXNlIGRvd25sb2EBMAEBAQE- X-Mailer: YahooMailWebService/0.8.169.609 References: <20131207064044.GA79133@misty.eyesbeyond.com> <20131207092231.GA51378@pcjas.obspm.fr> <20131207190545.GA87007@misty.eyesbeyond.com> <20131207193105.GA17749@misty.eyesbeyond.com> Message-ID: <1386475748.12996.YahooMailNeo@web193502.mail.sg3.yahoo.com> Date: Sun, 8 Dec 2013 12:09:08 +0800 (SGT) From: Patrick Dung Subject: Re: 7u45 update - amd64 testers To: Greg Lewis , Albert Shih In-Reply-To: <20131207193105.GA17749@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-java@freebsd.org" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Patrick Dung List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2013 04:11:56 -0000 On Sunday, December 8, 2013 3:31 AM, Greg Lewis wro= te:=0AOn Sat, Dec 07, 2013 at 11:05:45AM -0800, Greg Lewis wrote:=0A> On Sa= t, Dec 07, 2013 at 10:22:31AM +0100, Albert Shih wrote:=0A> >=A0 Le 06/12/2= 013 ? 22:40:44-0800, Greg Lewis a ?crit=0A> > > Can someone please download= =0A> > > =0A> > > http://people.freebsd.org/~glewis/openjdk7-7u45.diff=0A> = > > =0A> > > and see if it compiles on amd64?=A0 If it does I'll go ahead a= nd commit it.=0A> > > Already tested on i386 locally.=0A> > =0A> > No that'= s not compiles.=0A> > =0A> > On :=0A> > =0A> >=A0 =A0 9.2-STABLE FreeBSD 9= .2-STABLE #11 r258722: Thu Nov 28 23:37:54 CET 2013 =0A> > =0A> >=A0 =A0 k= ernel=A0 /usr/obj/usr/src/sys/GENERIC=A0 amd64=0A> > =0A> > all ports is up= 2date.=0A> > =0A> > Here the logs.=0A> > =0A> > Thanks for your work.=0A> = =0A> Thanks Albert.=A0 That actually looks like a 8.x vs. 9.x problem.=A0 I= t needs=0A> to be fixed regardless.=0A> =0A> On 8.x:=0A> =0A> typedef struc= t sem *=A0 =A0 sem_t;=0A> =0A> On 10.x (and presumably 9.x as well based on= the error)=0A> =0A> typedef struct _sem=A0 =A0 sem_t;=0A> =0A> I think th= e solution is to vary the os_semaphore_t definition in os_bsd.cpp=0A> based= on the FreeBSD version.=A0 Let me test compiling that on 8.x and I'll=0A> = send it out.=0A=0AActually, maybe it's as simple as this.=A0 Can someone gi= ve the following a=0Atry on a 9.x machine?=A0 Preferably amd64 since I stil= l want to make sure=0Awe're ok there.=0A=0Adiff -r 54995aa29dbb src/os/bsd/= vm/os_bsd.cpp=0A--- a/src/os/bsd/vm/os_bsd.cpp=A0=A0=A0 Wed Dec 04 22:06:37= 2013 -0800=0A+++ b/src/os/bsd/vm/os_bsd.cpp=A0=A0=A0 Sat Dec 07 11:29:16 2= 013 -0800=0A@@ -2755,7 +2755,11 @@=0A=A0 =A0 os_semaphore_t _semaphore;=0A= };=0A=0A+#if defined(__FreeBSD__) && __FreeBSD__ > 8=0A+Semaphore::Semaphor= e() : _semaphore() {=0A+#else=0ASemaphore::Semaphore() : _semaphore(0) {=0A= +#endif=0A=A0 SEM_INIT(_semaphore, 0);=0A}=0A=0A-- =0AGreg Lewis=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Email=A0 : glewis@eyesbeyond.c= om=0AEyes Beyond=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Web=A0 =A0= : http://www.eyesbeyond.com/=0AInformation Technology=A0 =A0 =A0 =A0 =A0 = =A0 =A0 FreeBSD : glewis@FreeBSD.org=0A____________________________________= _=0A=0A=0AHi Greg,=0A=0AI could not patch the files using your last diff (I= was using cat file | patch -u -p6)=0AAnyway, I have maually edited os_bsd.= cpp:=0A=0A#if defined(__FreeBSD__) && __FreeBSD__ > 8=0ASemaphore::Semaphor= e() : _semaphore() {=0A#else=0A#Semaphore::Semaphore() : _semaphore(0) {=0A= #endif=0A=A0 SEM_INIT(_semaphore, 0);=0A}=0A=0A=0AIt compiled on my Freebsd= 9.2 x64.=0A=0AI tried to start my jvm application and seems fine.=0A=0ATha= nks and regards,=0APatrick Dung