JDK-8349751 : AIX build failure after upgrade pipewire to 1.3.81
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-02-10
  • Updated: 2025-03-11
  • Resolved: 2025-02-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21 JDK 24 JDK 25
17.0.16Fixed 21.0.8Fixed 24.0.2Fixed 25 b11Fixed
Related Reports
Causes :  
Relates :  
Description
Filed as separate issue to keep the upgrade PR clean of it.
Fix is the same as in the src/java.desktop/unix/native/libpipewire/include/spa/param/audio/raw.h part of the JDK-8309703

--- a/src/java.desktop/unix/native/libpipewire/include/spa/param/audio/raw.h
+++ b/src/java.desktop/unix/native/libpipewire/include/spa/param/audio/raw.h
@@ -11,7 +11,15 @@ extern "C" {

#include <stdint.h>

-#include <spa/utils/endian.h>
+#if !defined(__FreeBSD__) && !defined(__MidnightBSD__) && !defined(AIX)
+#include <endian.h>
+#endif
+
+#if defined(AIX)
+#include <sys/machine.h>
+#define __BIG_ENDIAN      BIG_ENDIAN
+#define __BYTE_ORDER      BIG_ENDIAN
+#endif

/**
 * \addtogroup spa_param

Comments
Hi [~azvegint] , the commit https://github.com/openjdk/jdk/commit/9d7bf5329e5a0393553bca2e3a51ad1125b41b96 that brought pipewire as part of "8280982: [Wayland] [XWayland] java.awt.Robot taking screenshots" contains no tests; are there any tests I should look at in more detail?
11-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3323 Date: 2025-03-04 19:21:58 +0000
10-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1449 Date: 2025-03-04 19:21:40 +0000
10-03-2025

Fix request [21u,17u] This is needed in 21 after the pipewire backport. Clean backport. SAP nightly testing passed. This includes AIX on 21, not on 17.
06-03-2025

Hi [~mbaesken] I think yes, if it's not being used, it's not needed. Also, it will avoid those small fixes in header files in the future, until(and if?) it is fixed in the upstream. On the java side, please make sure you don't call the sun.awt.screencast.ScreencastHelper#loadPipewire() in the AIX case. https://github.com/openjdk/jdk/blob/3230894bdd8ab4183b83ad4c942eb6acad4acce6/src/java.desktop/unix/classes/sun/awt/screencast/ScreencastHelper.java#L76
04-03-2025

Hi [~azvegint] , could we remove pipewire from the AIX build ? Looks like the change was done for Wayland, but Wayland is not supported on AIX.
04-03-2025

[jdk24u-fix-request] Approval Request from Martin The AIX build is broken without this fix. It's very small and applies cleanly.
14-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk24u/pull/79 Date: 2025-02-14 20:14:10 +0000
14-02-2025

Changeset: 19c0ce43 Branch: master Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2025-02-14 12:55:36 +0000 URL: https://git.openjdk.org/jdk/commit/19c0ce43e258d00d77314d76a361feb2069a5af1
14-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23543 Date: 2025-02-10 19:07:49 +0000
13-02-2025