RFR: 8206106: [solaris sparc] jck tests api/javax_print/PrintService failing
Phil Race
philip.race at oracle.com
Thu Jul 5 21:06:38 UTC 2018
bug: https://bugs.openjdk.java.net/browse/JDK-8206106
Current CUPS include files are defining __attribute__ to be empty
We need to undo that to build. Details in the bug report.
built + tested on Solaris, Linux, Mac.
fix :
hg diff src/java.desktop/unix/native/common/awt/CUPSfuncs.c
diff --git a/src/java.desktop/unix/native/common/awt/CUPSfuncs.c
b/src/java.desktop/unix/native/common/awt/CUPSfuncs.c
--- a/src/java.desktop/unix/native/common/awt/CUPSfuncs.c
+++ b/src/java.desktop/unix/native/common/awt/CUPSfuncs.c
@@ -29,6 +29,12 @@
#include <dlfcn.h>
#include <cups/cups.h>
#include <cups/ppd.h>
+/*
+ * CUPS #define's __attribute__(x) to be empty unless the compiler is
GNU C.
+ * We need to #undef this else it breaks use of this keyword used by
JNIEXPORT.
+ */
+#undef __attribute__
+
-phil.
More information about the build-dev
mailing list