From owner-freebsd-java@freebsd.org Thu Oct 17 20:45:24 2019 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 280CA15D472 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46vLlS0Kd7z3D0y for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0966315D471; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) Delivered-To: java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 07E3115D470 for ; Thu, 17 Oct 2019 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vLlR6KxPz3D0x for ; Thu, 17 Oct 2019 20:45:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BCD012628F for ; Thu, 17 Oct 2019 20:45:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x9HKjNcw076966 for ; Thu, 17 Oct 2019 20:45:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9HKjNNP076965 for java@FreeBSD.org; Thu, 17 Oct 2019 20:45:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-feedback requested: [Bug 241317] java/openjdk8: unsatisfied link of getmntonname0 Date: Thu, 17 Oct 2019 20:45:21 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: easy, patch, patch-ready X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2019 20:45:24 -0000 Bugzilla Automation has asked freebsd-java mailing l= ist for maintainer-feedback: Bug 241317: java/openjdk8: unsatisfied link of getmntonname0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241317 --- Description --- Since the latest update of openjdk8 (openjdk8-8.232.09.1) german/mediathekv= iew broke: clicking on a download button gives no reaction in the GUI and an exception like this (shortened to the relevant part, because java): Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: sun.nio.fs.BsdNativeDispatcher.getmntonname0(J)[B at sun.nio.fs.BsdNativeDispatcher.getmntonname0(Native Method) at sun.nio.fs.BsdNativeDispatcher.getmntonname(BsdNativeDispatcher.java:61) at sun.nio.fs.BsdFileStore.findMountEntry(BsdFileStore.java:67) at sun.nio.fs.UnixFileStore.(UnixFileStore.java:65) at sun.nio.fs.BsdFileStore.(BsdFileStore.java:40) at sun.nio.fs.BsdFileSystemProvider.getFileStore(BsdFileSystemProvider.java:55) at sun.nio.fs.BsdFileSystemProvider.getFileStore(BsdFileSystemProvider.java:39) at sun.nio.fs.UnixFileSystemProvider.getFileStore(UnixFileSystemProvider.java:= 368) at java.nio.file.Files.getFileStore(Files.java:1461) at mediathek.gui.dialog.DialogAddDownload.getFreeDiskSpace(DialogAddDownload.j= ava: 268) Poking around jdk/src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java it appears that indeed getmntonname0() is declared "native", but there are no provisions to load a suitable library for that method. The other NativeDispatchers call System.loadLibrary("nio"), which would make a lot of sense here, too - a "NativeDispatcher" should at least have some access to = the library it is dispatching to. Attached is a patch (to be dropped into files/) which implements the same System.loadLibrary() logic with it's wrappers in BsdNativeDispatcher.java. = This still passes poudriere and fixes mediathekview for me. I've not reported th= is upstream, as I'm not even sure which upstream to report to (and I'd dread t= o go through the submit-a-trivial-patch dance with the-company-which-swallowed-S= un). I'm debugging a JDK - what am I doing with my live?