Hi Arno,

On 07/12/2014 12:12 PM, Arno Töll wrote:
> One more thing I forgot: The build log you linked is for 5.0, the patch
> for 4.1.2 and so seems your bug report. Could you please enlighten me?
> Did you patch and test 4.1.2 or 5.0?
That is right. Sorry for the wrong build log. I got the latest one and forgot to
check if it was related to the patch I provided.

Anyway, The patch was originally for 4.1.2 as tracked in the bug, and I am
providing a patch for 5.0.0 right now.


In order to get the package version 5.0 to compile on ppc64el, you will also the
patch in bug#754808

Thank you,
Breno
Index: trafficserver-5.0.0/lib/ts/ink_queue.h
===================================================================
--- trafficserver-5.0.0.orig/lib/ts/ink_queue.h
+++ trafficserver-5.0.0/lib/ts/ink_queue.h
@@ -134,7 +134,7 @@ extern "C"
 #define FREELIST_VERSION(_x) (_x).s.version
 #define SET_FREELIST_POINTER_VERSION(_x,_p,_v) \
 (_x).s.pointer = _p; (_x).s.version = _v
-#elif defined(__x86_64__) || defined(__ia64__)
+#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__)
 #define FREELIST_POINTER(_x) ((void*)(((((intptr_t)(_x).data)<<16)>>16) | \
  (((~((((intptr_t)(_x).data)<<16>>63)-1))>>48)<<48)))  // sign extend
 #define FREELIST_VERSION(_x) (((intptr_t)(_x).data)>>48)
Index: trafficserver-5.0.0/plugins/header_rewrite/lulu.h
===================================================================
--- trafficserver-5.0.0.orig/plugins/header_rewrite/lulu.h
+++ trafficserver-5.0.0/plugins/header_rewrite/lulu.h
@@ -53,6 +53,10 @@ char* getIP(sockaddr const* s_sockaddr,
 #define mb()  __asm__ __volatile__ ( "sync" : : : "memory")
 #define rmb() __asm__ __volatile__ ( "sync" : : : "memory")
 #define wmb() __asm__ __volatile__ ( "" : : : "memory")
+#elif defined(__powerpc64__)
+#define mb()   __asm__ __volatile__ ("sync" : : : "memory")
+#define rmb()  __asm__ __volatile__ ("sync" : : : "memory")
+#define wmb()  __asm__ __volatile__ ("sync" : : : "memory")
 #else
 #error "Define barriers"
 #endif

Reply via email to