[prev in list] [next in list] [prev in thread] [next in thread] 

List:       silc-devel
Subject:    [PATCH] silc-toolkit 1.1.2 does not build on ia64
From:       Jérémy Bobbio <lunar () debian ! org>
Date:       2007-07-09 19:57:27
Message-ID: 20070709195727.GE14177 () selene ! tanneries ! taz
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hi!

silc-toolkit 1.1.2 fails to build on ia64  [1].

The attached patch fix this two issues:
 - SILC_ATOMIC_ADD_INT_F was missing a backslash,
 - the first argument of __sync_bool_compare_and_swap is a pointer.

Cheers,
-- 
Jérémy Bobbio                        .''`. 
lunar@debian.org                    : :â’¶  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

["silc-toolkit_1.1.2_fix-ia64.diff" (text/plain)]

Index: lib/silcutil/silcatomic.h
===================================================================
--- lib/silcutil/silcatomic.h	(revision 139)
+++ lib/silcutil/silcatomic.h	(working copy)
@@ -753,7 +753,7 @@
 SILC_ATOMIC_ADD_INT_F(bits)						\
 {									\
   SilcUInt##bits ret;							\
-  SilcInt32 val = value;
+  SilcInt32 val = value;						\
   /* GCC + IA64 (GCC builtin atomic operations) */			\
   ret = __sync_fetch_and_add(&atomic->value, val);			\
   return ret + value;							\
@@ -1230,7 +1230,7 @@
 
 #elif defined(__GNUC__) && defined(SILC_IA64)
   /* GCC + IA64 (GCC builtin atomic operations) */
-  return  __sync_bool_compare_and_swap((long)&atomic->value, (long)old_val,
+  return  __sync_bool_compare_and_swap((long *)&atomic->value, (long)old_val,
 				       (long)new_val);
 
 #elif defined(__GNUC__) && defined(SILC_POWERPC)

["signature.asc" (application/pgp-signature)]

_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic