Bug 194941 - java/openjdk8 (1.8.0_25) broken
Summary: java/openjdk8 (1.8.0_25) broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-11 09:31 UTC by Jens Grassel
Modified: 2014-11-12 07:19 UTC (History)
2 users (show)

See Also:
freebsd-ports: maintainer-feedback? (java)


Attachments
Fix libnio.so (2.02 KB, patch)
2014-11-11 20:53 UTC, Jung-uk Kim
no flags Details | Diff
Fix libnio.so (2.81 KB, patch)
2014-11-11 23:22 UTC, Jung-uk Kim
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Grassel 2014-11-11 09:31:15 UTC
Hi,

I've upgraded to the latest openjdk8 port and now all kinds of java programs crash instantly if I try to run them. The error message they all share seems to be this one:

UnsatisfiedLinkError[sun.nio.ch.KQueueArrayWrapper.initStructSizes()V]

% java -version
openjdk version "1.8.0_25"
OpenJDK Runtime Environment (build 1.8.0_25-b17)
OpenJDK 64-Bit Server VM (build 25.25-b02, mixed mode)
% uname -a
FreeBSD magni.wegtam.office 10.0-RELEASE-p12 FreeBSD 10.0-RELEASE-p12 #0: Tue Nov  4 05:07:17 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

I tried on 3 machines (all amd64, FreeBSD 10.0) with the same result. For now I have downgraded via portdowngrade to r371759 of the port which works.

Regards,

Jens
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-11 09:31:15 UTC
Auto-assigned to maintainer java@FreeBSD.org
Comment 2 Jung-uk Kim freebsd_committer freebsd_triage 2014-11-11 20:53:57 UTC
Created attachment 149295 [details]
Fix libnio.so

Please try the patch and let me know.
Comment 3 Jung-uk Kim freebsd_committer freebsd_triage 2014-11-11 23:22:39 UTC
Created attachment 149301 [details]
Fix libnio.so

It seems the patch was not complete.  Please ignore the previous one and try this.
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-11-11 23:54:25 UTC
A commit references this bug:

Author: jkim
Date: Tue Nov 11 23:54:00 UTC 2014
New revision: 372474
URL: https://svnweb.freebsd.org/changeset/ports/372474

Log:
  - Fix build on i386 with clang. [1]
  - Fix mismerged libnio.so. [2]

  Reported by:	antoine [1]
  Tested by:	antoine [1]
  PR:		194941 [2]

Changes:
  head/java/openjdk8/Makefile
  head/java/openjdk8/files/patch-bsd
Comment 5 Jung-uk Kim freebsd_committer freebsd_triage 2014-11-11 23:56:09 UTC
The patch was committed (r372474), thanks!
Comment 6 Jens Grassel 2014-11-12 07:19:54 UTC
I've run some heavy java stuff on my machines and it seems to work fine now.

Thank you very much for your work!