From nobody Fri Nov 22 05:57:52 2024 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 4XvksY2cJpz5dQHF for ; Fri, 22 Nov 2024 05:57:53 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvksY0cPTz44m3 for ; Fri, 22 Nov 2024 05:57:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732255073; 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: in-reply-to:in-reply-to:references:references; bh=JswDG4hMfkKJcC5Xiq6wR5I9j3Zx76KaQgvspcY8j7A=; b=rcYDuQfqGCl/Jo3OWp44+jIRnQygXmFLjO5FmntRn5gQssBJ2nkp/E2NaYMyi9BKXmrFq7 CtP4yjwJB2g4IKgXcheft7/buMnZm6LAVU8RWEZg1u183KqBoYX+jYQDJKq5jz9OlQeta2 osOEVq0IVtk9k+VMZ4FWOBFqStADgbiBJgy9/LvJNH0e+t76O00lJwUMV1h/AxSIYznnyM +fef2fi4b6hYDw8CeEzjsPpTjrRHksNhNNyOSV2fm7WGcbfQkL8DfJ5WwmAonF9BkxRPVx 6n/CQ0b6PLJnBRrS/INcGJD6ZJ3mL68ZKhhYDgJsFhI41MiTzn8GUNzzdINTcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732255073; a=rsa-sha256; cv=none; b=u7B+HUeVOQQZPwiYomJu9sVlmxEZ8HBmzIJ3owxCbuVX7hMEfxRf0XeSjTv7VFoeTD5MZ+ yonDyHKuo5Zz0Qls/mNAvNLw9biididy+JZJsK2Co33E4guwyJyGDEb/bvtXYcuCdDcnP+ Rh6DZlMWL7QwO0ny6tkDqX12DAiIH9imOTDSQpaYBvwqXO3/pXBve5v2sWy3ni4obb0JOA zTCOWJTSQlBTmKrbz6JAAV6hBvBu0GJKtkbKQWK71PnNIKrhMN4Qgo4N9Nr4EfgZd3mDgu qwF9Bp0WcGTMzp2Veh2fQXTWOchUsTUJdjZdBgvmGDjrcb4m2xRQqa2JME0uOg== 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 4XvksX5j0Jz1BLf for ; Fri, 22 Nov 2024 05:57:52 +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 4AM5vqjv008299 for ; Fri, 22 Nov 2024 05:57:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AM5vqpj008298 for java@FreeBSD.org; Fri, 22 Nov 2024 05:57:52 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 282251] java/openjdk22: IPv6 / INET6 is broken Date: Fri, 22 Nov 2024 05:57:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Some People X-Bugzilla-Who: antonfb@hesiod.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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282251 --- Comment #6 from antonfb@hesiod.org --- FYI: I set up to build the openjdk22 port with the following change. This allows your simple test to work with the -Djava.net.preferIPv4Stack-fa= lse but without the sysctl change. I run a tomcat server with openjdk22 and this configuration to get a dual s= tack tomcat webserver. --- java.base/unix/native/libnio/ch/Net.c.orig 2024-11-21 20:37:03.7015990= 31 -0800 +++ java.base/unix/native/libnio/ch/Net.c 2024-11-21 20:37:37.3274178= 63 -0800 @@ -285,7 +285,7 @@ return handleSocketError(env, errno); } -#ifndef _BSDONLY_SOURCE +#ifndef notdef /* _BSDONLY_SOURCE */ /* * If IPv4 is available, disable IPV6_V6ONLY to ensure dual-socket support. */ --=20 You are receiving this mail because: You are the assignee for the bug.=