Package: pose
Severity: grave
Justification: renders package unusable

Building pose 3.5-7+test1 using the patches from

   http://people.debian.org/~lwall/pose/

Build fails on PowerPC (gcc-3.3.6) with 

   ../SrcShared/HostControl.cpp:1131: error: ISO C++ forbids casting
   to an array type `__va_list_tag[1]'

Line in question is...

   int     result = x_vfprintf (fh, fmt, (va_list) &stackData[0]);

Casting to va_list is not portable. Fails on gcc-powerpc because the
va_list implementation is an array of one element.

I've brute forced it with...

    union {
        va_list va;
        void *ptr;
    } uglyhack;

    uglyhack.ptr = &stackData[0];
    int result = x_vfprintf (fh, fmt, uglyhack.va);

That's not pretty but it works. 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to