Project

General

Profile

Actions

Bug #8359

closed

FTBFS with gcj-jdk v4.9.0

Added by Dmitry Smirnov almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
java
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Ceph FTBFS with gcj-jdk v4.9.0:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I/usr/lib/jvm/java-gcj/include -I/usr/lib/jvm/java-gcj/include/linux -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -DCEPH_LIBDIR=\"/usr/lib/x86_64-linux-gnu\" -DCEPH_PKGLIBDIR=\"/usr/lib/x86_64-linux-gnu/ceph\" -DGTEST_HAS_TR1_TUPLE=0 -D_FORTIFY_SOURCE=2 -I/usr/include/nss -I/usr/include/nspr -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -rdynamic -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-invalid-offsetof -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wstrict-null-sentinel -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c java/native/libcephfs_jni.cc  -fPIC -DPIC -o java/native/.libs/libcephfs_jni_la-libcephfs_jni.o                                            
java/native/libcephfs_jni.cc: In function '__jobject* sockaddrToInetAddress(JNIEnv*, const sockaddr_storage&, jint*)': 
java/native/libcephfs_jni.cc:2878:55: error: invalid conversion from 'const jbyte* {aka const signed char*}' to 'jbyte* {aka signed char*}' [-fpermissive] 
             reinterpret_cast<const jbyte*>(rawAddress)); 
                                                       ^ 
In file included from java/native/libcephfs_jni.cc:27:0: 
/usr/lib/jvm/java-gcj/include/jni.h:1471:8: error:   initializing argument 4 of 'void _Jv_JNIEnv::SetByteArrayRegion(jbyteArray, jsize, jsize, jbyte*)' [-fpermissive] 
   void SetByteArrayRegion (jbyteArray val0, jsize val1, jsize val2, jbyte * val3) 
        ^ 
Makefile:10590: recipe for target 'java/native/libcephfs_jni_la-libcephfs_jni.lo' failed 

Files

gcj-jdk.patch (1.42 KB) gcj-jdk.patch Dmitry Smirnov, 05/22/2014 09:34 AM
Actions

Also available in: Atom PDF