Summary: Fails to build on s390
                 Project: Warmux
            Submitted by: debfx
            Submitted on: Di 15 Feb 2011 00:32:12 GMT
                Category: Compilation
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 11.01
         Discussion Lock: Any



Warmux 11.01 fails to build on the Debian architecture s390:

graphic/spritecache.cpp: In member function Surface
graphic/spritecache.cpp:48: error: call of overloaded fixed_point(size_t) is
../lib/fixedpoint/fixed_class.h:79: note: candidates are:
fixedpoint::fixed_point<p>::fixed_point(unsigned int) [with int p = 16]
../lib/fixedpoint/fixed_class.h:78: note:                
fixedpoint::fixed_point<p>::fixed_point(double) [with int p = 16]
../lib/fixedpoint/fixed_class.h:77: note:                
fixedpoint::fixed_point<p>::fixed_point(float) [with int p = 16]
../lib/fixedpoint/fixed_class.h:75: note:                
fixedpoint::fixed_point<p>::fixed_point(int32_t) [with int p = 16]
../lib/fixedpoint/fixed_class.h:73: note:                
fixedpoint::fixed_point<p>::fixed_point(fixedpoint::fixint_t) [with int p =
../lib/fixedpoint/fixed_class.h:55: note:                
fixedpoint::fixed_point<16>::fixed_point(const fixedpoint::fixed_point<16>&)

On s390 the following is true:
size_t = unsigned int
sizeof(int) = 4
sizeof(long) = 8

Attached is a patch that fixes this issue.
It assumes that size_t is either unsigned int or long.
I've tested the patch on s390, i386 and amd64.


File Attachments:

Date: Di 15 Feb 2011 00:32:12 GMT  Name: warmux_ftbfs_s390.patch  Size: 744B 
 By: debfx



Reply to this item at:


  Nachricht geschickt von/durch Gna!

Wormux-gna mailing list

Reply via email to