Package: ceph
Version: 0.80.1-1
Severity: normal
Tags: patch

See:
http://buildd.debian-ports.org/status/fetch.php?pkg=ceph&arch=hppa&ver=0.80.1-1&stamp=1400047626

The attached patch resolves the issue with the undeclared atomic functions.
However, another issue occurs later in build:

/bin/bash ../libtool  --tag=CXX   --mode=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/hppa-linux-gnu\" 
-DCEPH_PKGLIBDIR=\"/usr/lib/hppa-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    
-Wstrict-null-sentinel -g -O2 -Wformat -Werror=format-security -c -o 
java/native/libcephfs_jni_la-libcephfs_jni.lo `test -f 
'java/native/libcephfs_jni.cc' || echo './'`java/native/libcephfs_jni.cc
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/hppa-linux-gnu\" 
-DCEPH_PKGLIBDIR=\"/usr/lib/hppa-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 -Wstrict-null-sentinel -g -O2 -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)
        ^
make[5]: *** [java/native/libcephfs_jni_la-libcephfs_jni.lo] Error 1
Makefile:10590: recipe for target 
'java/native/libcephfs_jni_la-libcephfs_jni.lo' failed

For full log, see:
http://buildd.debian-ports.org/status/fetch.php?pkg=ceph&arch=hppa&ver=0.80.1-1&stamp=1400385153

-- System Information:
Debian Release: jessie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.14.4+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_CA.utf8)
Shell: /bin/sh linked to /bin/dash
Description: Define AO_REQUIRE_CAS
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 ceph (0.80.1-1) unstable; urgency=low
 .
   * New upstream release [May 2014].
   * Dropped all backported patches.
   * New "sleep-recover" and "client-sleep[1,2,3]" patches to fix
     fuse-client hang after resume from suspend [#8291]; thanks, Zheng Yan.
   * New "gcj_search_path.patch" to find "jni.h" with gcj-jdk v4.9.0.
Author: Dmitry Smirnov <only...@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- ceph-0.80.1.orig/src/include/atomic.h
+++ ceph-0.80.1/src/include/atomic.h
@@ -25,6 +25,7 @@
 #ifndef NO_ATOMIC_OPS
 
 // libatomic_ops implementation
+#define AO_REQUIRE_CAS
 #include <atomic_ops.h>
 
 // reinclude our assert to clobber the system one

Reply via email to