From nobody Tue Aug 04 19:55:23 2026 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hF45l5FVMz6nKq7 for ; Tue, 04 Aug 2026 19:55:23 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hF45l3WrYz3Rvg for ; Tue, 04 Aug 2026 19:55:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785873323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OD+Wl67IW/++x/I0upGTpRNRYM6TgG5gwP9RbyRSOZ0=; b=CmjX0EVfiRXiZ3CPp7w/+CvDVAgltWKJsV3dVpskd+a0MqD9bIRulGhaYsgWrPWMLnmvSy SgpH+28OnGxBDwxUnFOIOLFL3CahiCQCFRBBoMouwG7sZgg8VL/VCD6gEMkx15mQhFo2FT 9+Z+U6LyNepsRC13MXKpdeHiEo+uSJoxEBa7MgGdZXIlLnJfPs3jxtR2zAlQSfBfG2SJ/B EmYk2KXvPhotk0jO7Qyqg2ffZOqJbCYtrYKQwFml4GJtkDJSMTOSXfSHB5zmWVUIUyU2Ys miDQ4sDFO31eJmv2ADrecXF5gYuMEAoYQPAIscI7Rquf5VgXKCMEL9BzFOS//Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785873323; a=rsa-sha256; cv=none; b=GkqmKkH7se8oPGLJHqt80ZMtCnW0M/HYuR9ET52op4LL/JD7lbgE+dbPy7bpGZULzzTzkL Gp3yYoKILpyQ+Ox/E8no1+t5Wuvv5Q79nwgd/tBLRSDIc+29IbffNmrQGAvBBUky6dZ7Dr 8o8BU4IJ4Ne0OHmA9pfavt+tKsP4EXWDfF2LyeJUIaa07IPgE+dqvsDBzhuIRuQFsu5OZG jQVdKGjZJns7NeIVbVgRjwOdsDFHNIVWnaXuJGxOEWLBfVclauOBeJsDJzKKAQcPlQGwu/ Wm43wnlwxT7PYK25k3codPDws7rjs+hxXrQRCV/jvDReyrzzg1d0/izv5cX8Wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785873323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OD+Wl67IW/++x/I0upGTpRNRYM6TgG5gwP9RbyRSOZ0=; b=B5QH8KxCdpOU6HKCp08bMIvOjL3hTFwG+V2cU58IsevCqrOeGyrct6ygPRqQ7gNKX+PpAK IuXbSv+3ev7tmu78ovm2S5gHvs9EaETiwizV3XarDyJ1RNpW+uOvJbnhrLhZCc5ymABZzk xBA64ICl4yj/vrlH98cZdSyq6LT8AbZ2dTeNhkR8AX6UTZ8FonHPOgzMFYYhV64X0dDw+L S4k6WeMLxEFGTdVkM32ZDa8nIcLjNaAIVh7w+Q3lzLiIWznQ49lmxD1Q6ytZ3zsbxbWDe4 Dyy2RZaC3DnlBc2HcJAvCQlxNzLIVfozK6s99FAfnz4iWkvrMEuM9lYQuD5SKA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4hF45l2NGGz127h for ; Tue, 04 Aug 2026 19:55: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 674JtNN0020152 for ; Tue, 4 Aug 2026 19:55:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 674JtNse020151 for java@FreeBSD.org; Tue, 4 Aug 2026 19:55:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 297282] java/openjdk25: libjava.so does not find libjvm.so Date: Tue, 04 Aug 2026 19:55:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: thierry@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297282 Bug ID: 297282 Summary: java/openjdk25: libjava.so does not find libjvm.so Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: thierry@FreeBSD.org Flags: maintainer-feedback?(java@FreeBSD.org) Assignee: java@FreeBSD.org On 16-CURRENT I'm using openjdk25 installed by pkg: FreeBSD_version: 1600019 build_timestamp: 2026-07-25T01:04:44+0000 built_by : poudriere-git-3.4.8 cpe : cpe:2.3:a:oracle:openjdk:25.0.3+9.f.1:::::freebsd16:x64 flavor : jdk port_checkout_unclean: no port_git_hash : a775e64d13a6bb7f4e5133105227f37fdc87a882 ports_top_checkout_unclean: no ports_top_git_hash: 7c53142d6b1d65fc3b37c1ce6ee6b703206261e2 repo_type : binary repository : FreeBSD-ports and it seems linked against openjdk11: $ ldd /usr/local/openjdk25/lib/libjava.so /usr/local/openjdk25/lib/libjava.so: libjvm.so =3D> /usr/local/openjdk11/lib/server/libjvm.so (0x1290b8e= 00000) libdl.so.1 =3D> /usr/lib/libdl.so.1 (0x1290ba54d000) libc.so.7 =3D> /lib/libc.so.7 (0x1290b763b000) libm.so.5 =3D> /lib/libm.so.5 (0x1290b6423000) libc++.so.1 =3D> /lib/libc++.so.1 (0x1290ba700000) libcxxrt.so.1 =3D> /lib/libcxxrt.so.1 (0x1290bb289000) libthr.so.3 =3D> /lib/libthr.so.3 (0x1290bbe74000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x1290bbf95000) libsys.so.7 =3D> /lib/libsys.so.7 (0x1290b7b74000) Actually, openjdk11 is installed on this machine. After removing it, ldd reports a missing libjvm.so: $ ldd /usr/local/openjdk25/lib/libjava.so /usr/local/openjdk25/lib/libjava.so: libjvm.so =3D> not found (0) libdl.so.1 =3D> /usr/lib/libdl.so.1 (0x3721ac186000) libc.so.7 =3D> /lib/libc.so.7 (0x3721ad00c000) Same thing on another machine running 15.1-RELEASE. libjvm.so exists for OpenJDK25, it is installed as /usr/local/openjdk25/lib/server/libjvm.so but I guess that the linker missed some LDFLAGS with "-Wl,-rpath=3D$JAVA_HOME/lib/server". With LD_LIBRARY_PATH=3D/usr/local/openjdk25/lib/server everything is OK. --=20 You are receiving this mail because: You are the assignee for the bug.=