[Bug 230321] java/openjdk8 - SCTP do not work
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 3 07:52:15 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230321
Bug ID: 230321
Summary: java/openjdk8 - SCTP do not work
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: java at FreeBSD.org
Reporter: timo.voelker at fh-muenster.de
Assignee: java at FreeBSD.org
Flags: maintainer-feedback?(java at FreeBSD.org)
Created attachment 195811
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=195811&action=edit
patch file
I found an issue with SCTP support in OpenJDK8 for FreeBSD. In my example
https://github.com/msvoelker/java-sctp/
it happened that OpenJDK8 calls sendmsg with an buffer address != NULL and a
buffer length of 0, which is an invalid argument for FreeBSD. I found the code
lines in the function Java_sun_nio_ch_sctp_SctpChannelImpl_send0 of
jdk/src/solaris/native/sun/nio/ch/sctp/SctpChannelImpl.c
Besides that, I changed two ifdef statements for FreeBSD (see attached patch
file). If I copy this patch file to the files directory of the OpenJDK8 port,
I'm able to install OpenJDK and to run the example application.
sudo cp patch-jdk-src-solaris-native-sun-nio-ch-sctp-SctpChannelImpl.c
/usr/ports/java/openjdk8/files
cd /usr/ports/java/openjdk8
sudo make install
I just saw that hwh found this issue already for OpenJDK7.
https://lists.freebsd.org/pipermail/freebsd-java/2010-September/008906.html
Thanks,
Timo
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-java
mailing list