View | Details | Raw Unified | Return to bug 250270 | Differences between
and this patch

Collapse All | Expand All

(-)java/openjdk14/files/patch-changeset-57932 (+44 lines)
Line 0 Link Here
1
changeset:   57932:9e54ea7d9cd9
2
user:        qpzhang
3
date:        Wed Feb 05 20:31:09 2020 +0800
4
summary:     8238388: libj2gss/NativeFunc.o "multiple definition" link errors with GCC10
5
6
diff -r 932418820c80 -r 9e54ea7d9cd9 src/java.security.jgss/share/native/libj2gss/NativeFunc.c
7
--- src/java.security.jgss/share/native/libj2gss/NativeFunc.c	Wed Feb 05 10:45:39 2020 +0100
8
+++ src/java.security.jgss/share/native/libj2gss/NativeFunc.c	Wed Feb 05 20:31:09 2020 +0800
9
@@ -1,5 +1,5 @@
10
 /*
11
- * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
12
+ * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
13
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
14
  *
15
  * This code is free software; you can redistribute it and/or modify it
16
@@ -27,6 +27,9 @@
17
 #include <stdlib.h>
18
 #include "NativeFunc.h"
19
 
20
+/* global GSS function table */
21
+GSS_FUNCTION_TABLE_PTR ftab;
22
+
23
 /* standard GSS method names (ordering is from mapfile) */
24
 static const char RELEASE_NAME[]                = "gss_release_name";
25
 static const char IMPORT_NAME[]                 = "gss_import_name";
26
diff -r 932418820c80 -r 9e54ea7d9cd9 src/java.security.jgss/share/native/libj2gss/NativeFunc.h
27
--- src/java.security.jgss/share/native/libj2gss/NativeFunc.h	Wed Feb 05 10:45:39 2020 +0100
28
+++ src/java.security.jgss/share/native/libj2gss/NativeFunc.h	Wed Feb 05 20:31:09 2020 +0800
29
@@ -1,5 +1,5 @@
30
 /*
31
- * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
32
+ * Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
33
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
34
  *
35
  * This code is free software; you can redistribute it and/or modify it
36
@@ -277,6 +277,6 @@
37
 typedef GSS_FUNCTION_TABLE *GSS_FUNCTION_TABLE_PTR;
38
 
39
 /* global GSS function table */
40
-GSS_FUNCTION_TABLE_PTR ftab;
41
+extern GSS_FUNCTION_TABLE_PTR ftab;
42
 
43
 #endif
44
(-)java/openjdk14/files/patch-changeset-57994 (+43 lines)
Line 0 Link Here
1
changeset:   57994:6925fca95959
2
user:        qpzhang
3
date:        Tue Feb 04 21:27:10 2020 +0800
4
summary:     8238380: java.base/unix/native/libjava/childproc.c "multiple definition" link errors with GCC10
5
6
diff -r 8f6ffa575f63 -r 6925fca95959 src/java.base/unix/native/libjava/childproc.c
7
--- src/java.base/unix/native/libjava/childproc.c	Tue Feb 11 11:17:37 2020 +0800
8
+++ src/java.base/unix/native/libjava/childproc.c	Tue Feb 04 21:27:10 2020 +0800
9
@@ -1,5 +1,5 @@
10
 /*
11
- * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
12
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
13
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
14
  *
15
  * This code is free software; you can redistribute it and/or modify it
16
@@ -34,6 +34,7 @@
17
 
18
 #include "childproc.h"
19
 
20
+const char * const *parentPathv;
21
 
22
 ssize_t
23
 restartableWrite(int fd, const void *buf, size_t count)
24
diff -r 8f6ffa575f63 -r 6925fca95959 src/java.base/unix/native/libjava/childproc.h
25
--- src/java.base/unix/native/libjava/childproc.h	Tue Feb 11 11:17:37 2020 +0800
26
+++ src/java.base/unix/native/libjava/childproc.h	Tue Feb 04 21:27:10 2020 +0800
27
@@ -1,5 +1,5 @@
28
 /*
29
- * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
30
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
31
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
32
  *
33
  * This code is free software; you can redistribute it and/or modify it
34
@@ -126,7 +126,7 @@
35
  * The cached and split version of the JDK's effective PATH.
36
  * (We don't support putenv("PATH=...") in native code)
37
  */
38
-const char * const *parentPathv;
39
+extern const char * const *parentPathv;
40
 
41
 ssize_t restartableWrite(int fd, const void *buf, size_t count);
42
 int restartableDup2(int fd_from, int fd_to);
43
(-)java/openjdk14/files/patch-src_java.desktop_unix_classes_sun_awt_X11_XlibWrapper.java (+11 lines)
Line 0 Link Here
1
--- src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java.orig	2020-04-17 22:35:42 UTC
2
+++ src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java
3
@@ -529,7 +529,7 @@ static native String XSetLocaleModifiers(String modifi
4
           display   Specifies the connection to the X server.
5
           onoff     Specifies a Boolean value that indicates whether to enable or disable synchronization.
6
      */
7
-    static native int XSynchronize(long display, boolean onoff);
8
+    static native long XSynchronize(long display, boolean onoff);
9
 
10
     /**
11
      * Extracts an X event that can be processed in a secondary loop.
(-)java/openjdk14/files/patch-src_java.desktop_unix_native_libawt__xawt_xawt_XlibWrapper.c (+15 lines)
Line 0 Link Here
1
--- src/java.desktop/unix/native/libawt_xawt/xawt/XlibWrapper.c.orig	2020-04-17 22:35:42 UTC
2
+++ src/java.desktop/unix/native/libawt_xawt/xawt/XlibWrapper.c
3
@@ -2180,10 +2180,10 @@ Java_sun_awt_X11_XlibWrapper_copyLongArray(JNIEnv *env
4
     }
5
 }
6
 
7
-JNIEXPORT jint JNICALL
8
+JNIEXPORT jlong JNICALL
9
 Java_sun_awt_X11_XlibWrapper_XSynchronize(JNIEnv *env, jclass clazz, jlong display, jboolean onoff)
10
 {
11
-    return (jint) XSynchronize((Display*)jlong_to_ptr(display), (onoff == JNI_TRUE ? True : False));
12
+    return ptr_to_jlong(XSynchronize((Display*)jlong_to_ptr(display), (onoff == JNI_TRUE ? True : False)));
13
 }
14
 
15
 JNIEXPORT jboolean JNICALL

Return to bug 250270