# HG changeset patch # User qpzhang # Date 1580822830 -28800 # Tue Feb 04 21:27:10 2020 +0800 # Node ID 91a2c54c51ae4e865816fed483cb45ada5a35520 # Parent 6d9ac97c7d2fd3837da6662e799888fa83222dac 8238380: java.base/unix/native/libjava/childproc.c "multiple definition" link errors with GCC10 Summary: Fixed libjava/childproc.o link errors caused by GCC10 default -fno-common Reviewed-by: alanb diff --git a/src/java.base/unix/native/libjava/childproc.c b/src/java.base/unix/native/libjava/childproc.c --- a/src/java.base/unix/native/libjava/childproc.c +++ b/src/java.base/unix/native/libjava/childproc.c @@ -34,6 +34,7 @@ #include "childproc.h" +const char * const *parentPathv; ssize_t restartableWrite(int fd, const void *buf, size_t count) diff --git a/src/java.base/unix/native/libjava/childproc.h b/src/java.base/unix/native/libjava/childproc.h --- a/src/java.base/unix/native/libjava/childproc.h +++ b/src/java.base/unix/native/libjava/childproc.h @@ -126,7 +126,7 @@ * The cached and split version of the JDK's effective PATH. * (We don't support putenv("PATH=...") in native code) */ -const char * const *parentPathv; +extern const char * const *parentPathv; ssize_t restartableWrite(int fd, const void *buf, size_t count); int restartableDup2(int fd_from, int fd_to);