Date: Sat, 26 Jun 2004 02:01:41 +0200 From: "Manfred Riem" <mriem@manorrock.org> To: "'Doug Hockin'" <dhockin@staffware-spokane.com> Cc: freebsd-java@freebsd.org Subject: RE: jdk1.4 on FreeBSD 5.2.1 Message-ID: <20040626000148.2D06E43D45@mx1.FreeBSD.org> In-Reply-To: <40DCB620.5050204@staffware-spokane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040626000148.2D06E43D45>