jdk1.4 on FreeBSD 5.2.1
Manfred Riem
mriem at manorrock.org
Fri Jun 25 17:01:50 PDT 2004
Hi Doug,
Did you update your ports tree before attempting this?
Manfred
> -----Original Message-----
> From: owner-freebsd-java at freebsd.org
> [mailto:owner-freebsd-java at freebsd.org] On Behalf Of Doug Hockin
> Sent: Saturday, June 26, 2004 1:33 AM
> To: freebsd-java at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to
> "freebsd-java-unsubscribe at freebsd.org"
>
More information about the freebsd-java
mailing list