From nobody Wed Dec 14 12:49:03 2022 X-Original-To: ports-bugs@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 4NXFYC5lpVz4kXky for ; Wed, 14 Dec 2022 12:49:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NXFYC4G5qz4Kf2 for ; Wed, 14 Dec 2022 12:49:03 +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=1671022143; 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=RHc0nGUGCL96M4E2Zo9tkVtzNhEDLZFAdAIzzP4dAg0=; b=m5ef561GsPJ02xyJR4yQExqdxMQsdAu7WCVCBUw6GVJ+hnSB0qcrS2qCQOqxVnIiDcf4ma hEIJz9jpbR040tnI2tQzMYZ0X25f2eCJV6xxV+JU0SZHD+neeL+4/DEw14I4NEP2ndVg7z A42WYYN9xIFhCJ2LQ+PDSnxIzRC2tTqdRSm6v2Sf+k4HJiUaC0q0XvcFoe2rNuqaHcRWGC 6nubqUglxh39nTa5P6Qxa4dDEzWCpYYl0xRcEYFrlcqHXjI4sjhpwQpKrK/ELgaVF2kOUo fZRHqamrmjfCAQW53l4aXTUs+asum5V0Cg73GEVKMAfrAHNr6l435Vcvhq5zow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671022143; a=rsa-sha256; cv=none; b=YYZKZQmzkDCnRZLYMh8DQbSlar5/wBsvybZKtG4gqdKVgP+nVTC5l38nG22/W/dPMaw80E QJQspVd0qCRWxDpI1JUctKEjGe+ChjSOCzMhWFLel3/98HvMwOECyWAYyxhLLI8VPy9XOg ebUTwtOGLxcXTwwUWpIjxeJXFSgJ/vDusURVB2Vb73D62fCs8w8EMg5UwJqlhYMm5yOuO1 kbeIsiYaWmud5/2UAeryUJwMAs2IuaepkyW/rXO6/A7U5HNzGpEBfi7c6q2pcyrcd+NDgD jm5hs+kBcQgoTBYVR2QG7ViVVIy3xirli7O+9cFxqIBjHXBCvLzDCdm+RnFplw== 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 4NXFYC3CMtztm4 for ; Wed, 14 Dec 2022 12:49:03 +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 2BECn3UT060043 for ; Wed, 14 Dec 2022 12:49:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BECn3aR060042 for ports-bugs@FreeBSD.org; Wed, 14 Dec 2022 12:49:03 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: ports-bugs@FreeBSD.org Subject: [Bug 268366] java/openjdk17: fix build with clang 15 Date: Wed, 14 Dec 2022 12:49:03 +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 Some People X-Bugzilla-Who: dim@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-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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268366 Bug ID: 268366 Summary: java/openjdk17: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(java@FreeBSD.org) Assignee: java@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that java/openjdk17 failed to build with clang 15: =20 /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:374:41: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] proxies =3D (*g_proxy_resolver_lookup)(resolver, uri, NULL, &error); ^ =20 /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:393:63: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] (*g_network_address_parse_uri)(proxies[i]= , 0, ^ =20 /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:398:70: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] phost =3D (*g_network_address_get_hostname)(c= onn); ^ =20 /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:399:66: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] pport =3D (*g_network_address_get_port)(conn); ^ =20 /wrkdirs/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.5-8-1/src/java.base/= unix/native/libnet/DefaultProxySelector.c:435:22: error: passing arguments to a function without a prototype is deprecated in= all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototy= pe] (*g_strfreev)(proxies); ^ This is because clang 15 warns by default about functions without arguments= in their prototypes. Fix this by suppressing the warning. --=20 You are receiving this mail because: You are the assignee for the bug.=