Build error with GCC4.8 on Fedora19

Andrew Haley aph at redhat.com
Tue Jul 9 11:40:27 UTC 2013


On 07/09/2013 12:11 PM, Yasu wrote:
> Hi Erik,
> 
> I posted email as following:
> http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/018790.html
> ---
> Hi,
> 
> I tried to build JDK8 with GCC4.8 on Fedora19.
> However, build process has been failed as following:
> 
> ------
> /usr/src/OpenJDK/tl/jdk/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c: In function ‘Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0’:
> /usr/src/OpenJDK/tl/jdk/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c:1071:68: warning: unused parameter ‘this’ [-Wunused-parameter]
>  Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0(JNIEnv* env, jclass this,
>                                                                     ^
> gmake[1]: *** [libs-only] Error 2
> make: *** [jdk-only] Error 2
> ------
> 
> I guess this issue is caused by -Werror.

Better to fix the code:

--- a/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c	Tue Jul 02 15:08:32 2013 +0100
+++ b/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c	Tue Jul 09 12:39:35 2013 +0100
@@ -1039,7 +1039,7 @@
 }

 JNIEXPORT jint JNICALL
-Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0(JNIEnv* env, jclass this,
+Java_sun_nio_fs_UnixNativeDispatcher_getgrnam0(JNIEnv* env, jclass,
     jlong nameAddress)
 {
     jint gid = -1;

Andrew.




More information about the core-libs-dev mailing list