Worked like charm...<br><br><div class="gmail_quote">2012/1/16 Alon Levy <span dir="ltr">&lt;<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Jan 16, 2012 at 08:47:00AM -0300, Nicolas Antonio Corrarello wrote:<br>
&gt;    Alo,<br>
&gt;    Sorry for the delay&#39;s, I left the VM at the office. Here is the output you<br>
<br>
</div>Thanks,<br>
<br>
Can you try this patch?<br>
<br>
<br>
diff --git a/client/foreign_menu.cpp b/client/foreign_menu.cpp<br>
index d1df49d..faef4c2 100644<br>
--- a/client/foreign_menu.cpp<br>
+++ b/client/foreign_menu.cpp<br>
@@ -30,7 +30,7 @@<br>
<br>
 #ifdef WIN32<br>
 #define PIPE_NAME &quot;SpiceForeignMenu-%lu&quot;<br>
-#elif defined(__i386__)<br>
+#elif defined(__i386__) || __SIZEOF_LONG__ == 4<br>
 #define PIPE_NAME &quot;/tmp/SpiceForeignMenu-%llu.uds&quot;<br>
 #else<br>
 #define PIPE_NAME &quot;/tmp/SpiceForeignMenu-%lu.uds&quot;<br>
<div><div class="h5"><br>
&gt;    requested:<br>
&gt;    # 1 &quot;&lt;stdin&gt;&quot;<br>
&gt;    # 1 &quot;&lt;built-in&gt;&quot;<br>
&gt;    #define __STDC__ 1<br>
&gt;    #define __STDC_HOSTED__ 1<br>
&gt;    #define __GNUC__ 4<br>
&gt;    #define __GNUC_MINOR__ 6<br>
&gt;    #define __GNUC_PATCHLEVEL__ 2<br>
&gt;    #define __VERSION__ &quot;4.6.2&quot;<br>
&gt;    #define __FINITE_MATH_ONLY__ 0<br>
&gt;    #define __SIZEOF_INT__ 4<br>
&gt;    #define __SIZEOF_LONG__ 4<br>
&gt;    #define __SIZEOF_LONG_LONG__ 8<br>
&gt;    #define __SIZEOF_SHORT__ 2<br>
&gt;    #define __SIZEOF_FLOAT__ 4<br>
&gt;    #define __SIZEOF_DOUBLE__ 8<br>
&gt;    #define __SIZEOF_LONG_DOUBLE__ 8<br>
&gt;    #define __SIZEOF_SIZE_T__ 4<br>
&gt;    #define __CHAR_BIT__ 8<br>
&gt;    #define __BIGGEST_ALIGNMENT__ 8<br>
&gt;    #define __ORDER_LITTLE_ENDIAN__ 1234<br>
&gt;    #define __ORDER_BIG_ENDIAN__ 4321<br>
&gt;    #define __ORDER_PDP_ENDIAN__ 3412<br>
&gt;    #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__<br>
&gt;    #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__<br>
&gt;    #define __SIZEOF_POINTER__ 4<br>
&gt;    #define __SIZE_TYPE__ unsigned int<br>
&gt;    #define __PTRDIFF_TYPE__ int<br>
&gt;    #define __WCHAR_TYPE__ unsigned int<br>
&gt;    #define __WINT_TYPE__ unsigned int<br>
&gt;    #define __INTMAX_TYPE__ long long int<br>
&gt;    #define __UINTMAX_TYPE__ long long unsigned int<br>
&gt;    #define __CHAR16_TYPE__ short unsigned int<br>
&gt;    #define __CHAR32_TYPE__ unsigned int<br>
&gt;    #define __SIG_ATOMIC_TYPE__ int<br>
&gt;    #define __INT8_TYPE__ signed char<br>
&gt;    #define __INT16_TYPE__ short int<br>
&gt;    #define __INT32_TYPE__ int<br>
&gt;    #define __INT64_TYPE__ long long int<br>
&gt;    #define __UINT8_TYPE__ unsigned char<br>
&gt;    #define __UINT16_TYPE__ short unsigned int<br>
&gt;    #define __UINT32_TYPE__ unsigned int<br>
&gt;    #define __UINT64_TYPE__ long long unsigned int<br>
&gt;    #define __INT_LEAST8_TYPE__ signed char<br>
&gt;    #define __INT_LEAST16_TYPE__ short int<br>
&gt;    #define __INT_LEAST32_TYPE__ int<br>
&gt;    #define __INT_LEAST64_TYPE__ long long int<br>
&gt;    #define __UINT_LEAST8_TYPE__ unsigned char<br>
&gt;    #define __UINT_LEAST16_TYPE__ short unsigned int<br>
&gt;    #define __UINT_LEAST32_TYPE__ unsigned int<br>
&gt;    #define __UINT_LEAST64_TYPE__ long long unsigned int<br>
&gt;    #define __INT_FAST8_TYPE__ signed char<br>
&gt;    #define __INT_FAST16_TYPE__ int<br>
&gt;    #define __INT_FAST32_TYPE__ int<br>
&gt;    #define __INT_FAST64_TYPE__ long long int<br>
&gt;    #define __UINT_FAST8_TYPE__ unsigned char<br>
&gt;    #define __UINT_FAST16_TYPE__ unsigned int<br>
&gt;    #define __UINT_FAST32_TYPE__ unsigned int<br>
&gt;    #define __UINT_FAST64_TYPE__ long long unsigned int<br>
&gt;    #define __INTPTR_TYPE__ int<br>
&gt;    #define __UINTPTR_TYPE__ unsigned int<br>
&gt;    #define __GXX_ABI_VERSION 1002<br>
&gt;    #define __SCHAR_MAX__ 127<br>
&gt;    #define __SHRT_MAX__ 32767<br>
&gt;    #define __INT_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
&gt;    #define __LONG_MAX__ 2147483647L<br>
&gt;    #define __LONG_LONG_MAX__ 9223372036854775807LL<br>
&gt;    #define __WCHAR_MAX__ 4294967295U<br>
&gt;    #define __WCHAR_MIN__ 0U<br>
&gt;    #define __WINT_MAX__ 4294967295U<br>
&gt;    #define __WINT_MIN__ 0U<br>
&gt;    #define __PTRDIFF_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
&gt;    #define __SIZE_MAX__ 4294967295U<br>
&gt;    #define __INTMAX_MAX__ 9223372036854775807LL<br>
&gt;    #define __INTMAX_C(c) c ## LL<br>
&gt;    #define __UINTMAX_MAX__ 18446744073709551615ULL<br>
&gt;    #define __UINTMAX_C(c) c ## ULL<br>
&gt;    #define __SIG_ATOMIC_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
&gt;    #define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)<br>
&gt;    #define __INT8_MAX__ 127<br>
&gt;    #define __INT16_MAX__ 32767<br>
&gt;    #define __INT32_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
&gt;    #define __INT64_MAX__ 9223372036854775807LL<br>
&gt;    #define __UINT8_MAX__ 255<br>
&gt;    #define __UINT16_MAX__ 65535<br>
&gt;    #define __UINT32_MAX__ 4294967295U<br>
&gt;    #define __UINT64_MAX__ 18446744073709551615ULL<br>
&gt;    #define __INT_LEAST8_MAX__ 127<br>
&gt;    #define __INT8_C(c) c<br>
&gt;    #define __INT_LEAST16_MAX__ 32767<br>
&gt;    #define __INT16_C(c) c<br>
&gt;    #define __INT_LEAST32_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
&gt;    #define __INT32_C(c) c<br>
&gt;    #define __INT_LEAST64_MAX__ 9223372036854775807LL<br>
&gt;    #define __INT64_C(c) c ## LL<br>
&gt;    #define __UINT_LEAST8_MAX__ 255<br>
&gt;    #define __UINT8_C(c) c<br>
&gt;    #define __UINT_LEAST16_MAX__ 65535<br>
&gt;    #define __UINT16_C(c) c<br>
&gt;    #define __UINT_LEAST32_MAX__ 4294967295U<br>
&gt;    #define __UINT32_C(c) c ## U<br>
&gt;    #define __UINT_LEAST64_MAX__ 18446744073709551615ULL<br>
&gt;    #define __UINT64_C(c) c ## ULL<br>
&gt;    #define __INT_FAST8_MAX__ 127<br>
&gt;    #define __INT_FAST16_MAX__ 2147483647<br>
&gt;    #define __INT_FAST32_MAX__ 2147483647<br>
&gt;    #define __INT_FAST64_MAX__ 9223372036854775807LL<br>
&gt;    #define __UINT_FAST8_MAX__ 255<br>
&gt;    #define __UINT_FAST16_MAX__ 4294967295U<br>
&gt;    #define __UINT_FAST32_MAX__ 4294967295U<br>
&gt;    #define __UINT_FAST64_MAX__ 18446744073709551615ULL<br>
&gt;    #define __INTPTR_MAX__ 2147483647<br>
&gt;    #define __UINTPTR_MAX__ 4294967295U<br>
&gt;    #define __FLT_EVAL_METHOD__ 0<br>
&gt;    #define __DEC_EVAL_METHOD__ 2<br>
&gt;    #define __FLT_RADIX__ 2<br>
&gt;    #define __FLT_MANT_DIG__ 24<br>
&gt;    #define __FLT_DIG__ 6<br>
&gt;    #define __FLT_MIN_EXP__ (-125)<br>
&gt;    #define __FLT_MIN_10_EXP__ (-37)<br>
&gt;    #define __FLT_MAX_EXP__ 128<br>
&gt;    #define __FLT_MAX_10_EXP__ 38<br>
&gt;    #define __FLT_DECIMAL_DIG__ 9<br>
&gt;    #define __FLT_MAX__ 3.4028234663852886e+38F<br>
&gt;    #define __FLT_MIN__ 1.1754943508222875e-38F<br>
&gt;    #define __FLT_EPSILON__ 1.1920928955078125e-7F<br>
&gt;    #define __FLT_DENORM_MIN__ 1.4012984643248171e-45F<br>
&gt;    #define __FLT_HAS_DENORM__ 1<br>
&gt;    #define __FLT_HAS_INFINITY__ 1<br>
&gt;    #define __FLT_HAS_QUIET_NAN__ 1<br>
&gt;    #define __DBL_MANT_DIG__ 53<br>
&gt;    #define __DBL_DIG__ 15<br>
&gt;    #define __DBL_MIN_EXP__ (-1021)<br>
&gt;    #define __DBL_MIN_10_EXP__ (-307)<br>
&gt;    #define __DBL_MAX_EXP__ 1024<br>
&gt;    #define __DBL_MAX_10_EXP__ 308<br>
&gt;    #define __DBL_DECIMAL_DIG__ 17<br>
&gt;    #define __DBL_MAX__ ((double)1.7976931348623157e+308L)<br>
&gt;    #define __DBL_MIN__ ((double)2.2250738585072014e-308L)<br>
&gt;    #define __DBL_EPSILON__ ((double)2.2204460492503131e-16L)<br>
&gt;    #define __DBL_DENORM_MIN__ ((double)4.9406564584124654e-324L)<br>
&gt;    #define __DBL_HAS_DENORM__ 1<br>
&gt;    #define __DBL_HAS_INFINITY__ 1<br>
&gt;    #define __DBL_HAS_QUIET_NAN__ 1<br>
&gt;    #define __LDBL_MANT_DIG__ 53<br>
&gt;    #define __LDBL_DIG__ 15<br>
&gt;    #define __LDBL_MIN_EXP__ (-1021)<br>
&gt;    #define __LDBL_MIN_10_EXP__ (-307)<br>
&gt;    #define __LDBL_MAX_EXP__ 1024<br>
&gt;    #define __LDBL_MAX_10_EXP__ 308<br>
&gt;    #define __DECIMAL_DIG__ 17<br>
&gt;    #define __LDBL_MAX__ 1.7976931348623157e+308L<br>
&gt;    #define __LDBL_MIN__ 2.2250738585072014e-308L<br>
&gt;    #define __LDBL_EPSILON__ 2.2204460492503131e-16L<br>
&gt;    #define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L<br>
&gt;    #define __LDBL_HAS_DENORM__ 1<br>
&gt;    #define __LDBL_HAS_INFINITY__ 1<br>
&gt;    #define __LDBL_HAS_QUIET_NAN__ 1<br>
&gt;    #define __DEC32_MANT_DIG__ 7<br>
&gt;    #define __DEC32_MIN_EXP__ (-94)<br>
&gt;    #define __DEC32_MAX_EXP__ 97<br>
&gt;    #define __DEC32_MIN__ 1E-95DF<br>
&gt;    #define __DEC32_MAX__ 9.999999E96DF<br>
&gt;    #define __DEC32_EPSILON__ 1E-6DF<br>
&gt;    #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF<br>
&gt;    #define __DEC64_MANT_DIG__ 16<br>
&gt;    #define __DEC64_MIN_EXP__ (-382)<br>
&gt;    #define __DEC64_MAX_EXP__ 385<br>
&gt;    #define __DEC64_MIN__ 1E-383DD<br>
&gt;    #define __DEC64_MAX__ 9.999999999999999E384DD<br>
&gt;    #define __DEC64_EPSILON__ 1E-15DD<br>
&gt;    #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD<br>
&gt;    #define __DEC128_MANT_DIG__ 34<br>
&gt;    #define __DEC128_MIN_EXP__ (-6142)<br>
&gt;    #define __DEC128_MAX_EXP__ 6145<br>
&gt;    #define __DEC128_MIN__ 1E-6143DL<br>
&gt;    #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL<br>
&gt;    #define __DEC128_EPSILON__ 1E-33DL<br>
&gt;    #define __DEC128_SUBNORMAL_MIN__<br>
&gt;    0.000000000000000000000000000000001E-6143DL<br>
&gt;    #define __REGISTER_PREFIX__ <br>
&gt;    #define __USER_LABEL_PREFIX__ <br>
&gt;    #define __GNUC_GNU_INLINE__ 1<br>
&gt;    #define __NO_INLINE__ 1<br>
&gt;    #define __CHAR_UNSIGNED__ 1<br>
&gt;    #define __PRAGMA_REDEFINE_EXTNAME 1<br>
&gt;    #define __SIZEOF_WCHAR_T__ 4<br>
&gt;    #define __SIZEOF_WINT_T__ 4<br>
&gt;    #define __SIZEOF_PTRDIFF_T__ 4<br>
&gt;    #define __arm__ 1<br>
&gt;    #define __APCS_32__ 1<br>
&gt;    #define __ARMEL__ 1<br>
&gt;    #define __SOFTFP__ 1<br>
&gt;    #define __VFP_FP__ 1<br>
&gt;    #define __THUMB_INTERWORK__ 1<br>
&gt;    #define __ARM_ARCH_4T__ 1<br>
&gt;    #define __ARM_PCS 1<br>
&gt;    #define __ARM_EABI__ 1<br>
&gt;    #define __GXX_TYPEINFO_EQUALITY_INLINE 0<br>
&gt;    #define __gnu_linux__ 1<br>
&gt;    #define __linux 1<br>
&gt;    #define __linux__ 1<br>
&gt;    #define linux 1<br>
&gt;    #define __unix 1<br>
&gt;    #define __unix__ 1<br>
&gt;    #define unix 1<br>
&gt;    #define __ELF__ 1<br>
&gt;    # 1 &quot;&lt;command-line&gt;&quot;<br>
&gt;    # 1 &quot;&lt;stdin&gt;&quot;<br>
&gt;    int main() {return 0;}<br>
</div></div>&gt;    2012/1/14 Alon Levy &lt;[1]<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>&gt;<br>
<div class="im">&gt;<br>
&gt;      On Fri, Jan 13, 2012 at 03:54:02PM -0300, Nicolas Antonio Corrarello<br>
&gt;      wrote:<br>
&gt;      &gt;    Guys,<br>
&gt;      &gt;    Being well aware that spice server only works on x64-64, I&#39;m trying<br>
&gt;      to<br>
&gt;      &gt;    compile the spice client in ARM, but I&#39;m bumping into the<br>
&gt;      following:<br>
</div>&gt;      &gt;    make ן߽all-am<br>
<div class="im">&gt;      &gt;    make[1]: Entering directory `/root/spice-0.10.0/client&#39;<br>
</div>&gt;      &gt;    ן߽ CXX ן߽ ן߽foreign_menu.o<br>
<div><div class="h5">&gt;      &gt;    foreign_menu.cpp: In constructor<br>
&gt;      &gt;    &#39;ForeignMenu::ForeignMenu(ForeignMenuInterface*)&#39;:<br>
&gt;<br>
&gt;      Ok, this is due to the define above only checking for __i386__, can you<br>
&gt;      run this to dump all predefined variables, so we can find the relevant<br>
&gt;      one (I guess something like __armv6__):<br>
&gt;      echo &quot;int main() { return 0; }&quot; | g++ -dD -E -<br>
&gt;<br>
&gt;      Thanks,<br>
&gt;      Alon<br>
&gt;      &gt;    foreign_menu.cpp:47:81: error: format &#39;%lu&#39; expects argument of<br>
&gt;      type &#39;long<br>
&gt;      &gt;    unsigned int&#39;, but argument 4 has type &#39;uint64_t {aka long long<br>
&gt;      unsigned<br>
&gt;      &gt;    int}&#39; [-Werror=format]<br>
&gt;      &gt;    foreign_menu.cpp:47:81: error: format &#39;%lu&#39; expects argument of<br>
&gt;      type &#39;long<br>
&gt;      &gt;    unsigned int&#39;, but argument 4 has type &#39;uint64_t {aka long long<br>
&gt;      unsigned<br>
&gt;      &gt;    int}&#39; [-Werror=format]<br>
&gt;      &gt;    cc1plus: all warnings being treated as errors<br>
&gt;      &gt;    make[1]: *** [foreign_menu.o] Error 1<br>
&gt;      &gt;    make[1]: Leaving directory `/root/spice-0.10.0/client&#39;<br>
&gt;      &gt;    make: *** [all] Error 2<br>
&gt;      &gt;    I had to add my arm machine type manually in ./configure in order<br>
&gt;      for it<br>
&gt;      &gt;    to pass the processor check.<br>
&gt;      &gt;    The system is emulated with qemu, and here is some info about the<br>
&gt;      linux<br>
&gt;      &gt;    distro running on it:<br>
&gt;      &gt;    Script started on Fri Jan 13 18:50:48 2012<br>
&gt;      &gt;    root@test-arm:~/spice-0.10.0/client# gcc -version. .. .. .. .. .. .<br>
&gt;      &gt;    Using built-in specs.<br>
&gt;      &gt;    COLLECT_GCC=gcc<br>
&gt;      &gt;    COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper<br>
&gt;      &gt;    Target: arm-linux-gnueabi<br>
&gt;      &gt;    Configured with: ../src/configure -v --with-pkgversion=&#39;Debian<br>
&gt;      4.6.2-11&#39;<br>
&gt;      &gt;    --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs<br>
&gt;      &gt;    --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr<br>
&gt;      &gt;    --program-suffix=-4.6 --enable-shared --enable-linker-build-id<br>
&gt;      &gt;    --with-system-zlib --libexecdir=/usr/lib --without-included-gettext<br>
&gt;      &gt;    --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6<br>
&gt;      &gt;    --libdir=/usr/lib --enable-nls --enable-clocale=gnu<br>
&gt;      &gt;    --enable-libstdcxx-debug --enable-libstdcxx-time=yes<br>
&gt;      --enable-plugin<br>
&gt;      &gt;    --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv4t<br>
&gt;      &gt;    --with-float=soft --enable-checking=release<br>
&gt;      --build=arm-linux-gnueabi<br>
&gt;      &gt;    --host=arm-linux-gnueabi --target=arm-linux-gnueabi<br>
&gt;      &gt;    Thread model: posix<br>
</div></div>&gt;      &gt;    gcc version 4.6.2 (Debian 4.6.2-11)ן߽<br>
&gt;      &gt;    root@test-arm:~/spice-0.10.0/client# [2]<a href="http://una.me" target="_blank">una.me</a> -a<br>
<div class="im">&gt;      &gt;    Linux test-arm 3.0.4 #2 Mon Oct 17 17:39:42 ICT 2011 armv6l<br>
&gt;      GNU/Linux<br>
&gt;      &gt;    root@test-arm:~/spice-0.10.0/client# exit<br>
&gt;      &gt;    exit<br>
&gt;      &gt;    Script done on Fri Jan 13 18:51:08 2012<br>
&gt;      &gt;    I&#39;d appreciate any help on the matter,<br>
&gt;      &gt;    Yours truly<br>
&gt;      &gt;    nac<br>
&gt;<br>
</div>&gt; References<br>
&gt;<br>
&gt;    Visible links<br>
&gt;    1. mailto:<a href="mailto:alevy@redhat.com">alevy@redhat.com</a><br>
&gt;    2. <a href="http://una.me/" target="_blank">http://una.me/</a><br>
<br>
&gt; _______________________________________________<br>
&gt; Spice-devel mailing list<br>
&gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
</blockquote></div><br>