Package: paintlib Version: 2.6.2-7 Severity: important Tags: patch Justification: fails to build from source
Build on ARM fails with: pliff85dec.cpp: In member function 'virtual void PLIFF85Decoder::Open(PLDataSource*)': pliff85dec.cpp:182: error: size of array is negative The culprit is struct ColorRegister which contains 3 single byte members. The ARM ABI normally pads this to 4. Patch below marks it as a packed structure to prevent this happening. Paul diff -urp paintlib-2.6.2/common/pliff85.h paintlib-new/common/pliff85.h --- paintlib-2.6.2/common/pliff85.h 2004-04-29 19:01:52.000000000 +0100 +++ paintlib-new/common/pliff85.h 2006-10-22 17:09:19.000000000 +0100 @@ -143,7 +143,7 @@ namespace PLIFF85 UBYTE red; //< red intensity 0..255. UBYTE green; //< green intensity 0..255. UBYTE blue; //< blue intensity 0..255. - }; + } __attribute__((packed)); // typedef ColorRegister ColorMap[n]; /* size = 3n bytes */ -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: arm (armv5tejl) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-rc3 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]