From owner-freebsd-java@FreeBSD.ORG Sat Jun 26 00:01:50 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4F5C16A4CE for ; Sat, 26 Jun 2004 00:01:50 +0000 (GMT) Received: from smtpout01-04.mesa1.secureserver.net (smtpout01-04.mesa1.secureserver.net [64.202.165.79]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D06E43D45 for ; Sat, 26 Jun 2004 00:01:48 +0000 (GMT) (envelope-from mriem@manorrock.org) Received: (qmail 6649 invoked from network); 26 Jun 2004 00:01:38 -0000 Received: from unknown (212.187.123.12) by smtpout01-04.mesa1.secureserver.net (64.202.165.79) with ESMTP; 26 Jun 2004 00:01:38 -0000 From: "Manfred Riem" To: "'Doug Hockin'" Date: Sat, 26 Jun 2004 02:01:41 +0200 Organization: Manor 'n Rock MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcRbDMNy5JnUVQR8TmeToda4tRQXdAAA+AxQ In-Reply-To: <40DCB620.5050204@staffware-spokane.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-Id: <20040626000148.2D06E43D45@mx1.FreeBSD.org> cc: freebsd-java@freebsd.org Subject: RE: jdk1.4 on FreeBSD 5.2.1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mriem@manorrock.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 00:01:50 -0000 Hi Doug, Did you update your ports tree before attempting this? Manfred > -----Original Message----- > From: owner-freebsd-java@freebsd.org > [mailto:owner-freebsd-java@freebsd.org] On Behalf Of Doug Hockin > Sent: Saturday, June 26, 2004 1:33 AM > To: freebsd-java@freebsd.org > Subject: jdk1.4 on FreeBSD 5.2.1 > > I got a patch error when attempting to port jdk1.4 to 5.2.1. > I used these files: > > j2sdk-1_4_2-src-scsl.zip > j2sdk-1_4_2-bin-scsl.zip > bsd-jdk14-patches-6.tar.gz > > I had to change the Makefile in the port area to reference > version 6 of the patches rather than version 5. It gave an > error when attempting to checksum the patch file (checksum > missing?), so I ran the command: > > make NO_CHECKSUM=yes install > > The end make output looks like this: > > > |Index: j2se/src/solaris/native/sun/nio/ch/NativeThread.c > > |=================================================================== > > |RCS file: > > > |/var/jcvs/javasrc_1_4_scsl/j2se/src/solaris/native/sun/nio/ch/NativeT > > |hread.c,v > > |retrieving revision 1.1.1.2 > > |retrieving revision 1.4 > > |diff -u -r1.1.1.2 -r1.4 > > |--- j2se/src/solaris/native/sun/nio/ch/NativeThread.c > 22 Oct 2003 23:03:50 -0000 1.1.1.2 > > |+++ j2se/src/solaris/native/sun/nio/ch/NativeThread.c > 27 Oct 2003 12:16:42 -0000 1.4 > > -------------------------- > > Patching file > j2se/src/solaris/native/sun/nio/ch/NativeThread.c using Plan A... > > Hunk #1 succeeded at 5. > > Hmm... The next patch looks like a unified diff to me... > > The text leading up to this was: > > -------------------------- > > |Index: j2se/src/solaris/native/sun/nio/ch/Net.c > > |=================================================================== > > |RCS file: > > > |/var/jcvs/javasrc_1_4_scsl/j2se/src/solaris/native/sun/nio/ch/Net.c,v > > |retrieving revision 1.1.1.3 > > |retrieving revision 1.6 > > |diff -u -r1.1.1.3 -r1.6 > > |--- j2se/src/solaris/native/sun/nio/ch/Net.c 22 Oct > 2003 23:03:50 -0000 1.1.1.3 > > |+++ j2se/src/solaris/native/sun/nio/ch/Net.c 27 Oct > 2003 12:16:42 -0000 1.6 > > -------------------------- > > Patching file j2se/src/solaris/native/sun/nio/ch/Net.c > using Plan A... > > Hunk #1 succeeded at 283. > > done > > ===> Applying FreeBSD patches for jdk-1.4.2p6 > > 1 out of 1 hunks failed--saving rejects to > > ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c.rej > >>> Patch patch-PlainDatagramSocketImpl.c failed to apply cleanly. > > *** Error code 1 > > > > Stop in /usr/ports/java/jdk14. > > > > Compilation exited abnormally with code 1 at Fri Jun 25 15:23:43 > > And the .rej file looks like this: > > > *************** > > *** 2034,2042 **** > > /* > > * Join the multicast group. > > */ > > - // XXXBSD: fix for BSD (re-implement with KAME ?) > > - // if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? > IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP), > > - if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? 1 : 0), > > (char *) &mname, mname_len) < 0) { > > > > /* > > --- 2034,2040 ---- > > /* > > * Join the multicast group. > > */ > > + if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? > > + IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP), > > (char *) &mname, mname_len) < 0) { > > > > /* > > -- Doug > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to > "freebsd-java-unsubscribe@freebsd.org" >