Your message dated Tue, 02 May 2006 05:02:31 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#311840: fixed in kraptor 0.0.20040403-4
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: kraptor
Version: 0.0.20040403-1
Severity: important

Hi,

Your package is failing to build on all 64 bit arches with the
following error:
src/pmask.c:34: error: size of array `_compile_time_assert__' is negative

The problem is that MASK_WORD_BITBITS is not defined right for
our arch.

>From pmask.h:
//MASK_WORD_TYPE and MASK_WORD_BITBITS can be changed for your
//platform

//MASK_WORD_TYPE should be the largest fast integer type
//available
#define MASK_WORD_TYPE unsigned long int

//MASK_WORD_BITBITS should be the log base 2
//of the number of bits in MASK_WORD_TYPE
//e.g. 4 for 16-bit ints, 5 for 32-bit ints, 6 for 64-bit ints
#define MASK_WORD_BITBITS 5

Then there is:
#define MASK_WORD_SIZE sizeof(MASK_WORD_TYPE)
#define MASK_WORD_BITS (MASK_WORD_SIZE*8)

Which the later fails in pmask.c:
        COMPILE_TIME_ASSERT((1 << MASK_WORD_BITBITS) == MASK_WORD_BITS);

I suggest you do something as
#if defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)
#define MASK_WORD_BITBITS 6
#else
#define MASK_WORD_BITBITS 5
#endif

I've attached a patch that does that.


Kurt

--- include/pmask.h.old 2005-06-03 19:30:46.460166688 +0200
+++ include/pmask.h     2005-06-03 19:38:18.848393224 +0200
@@ -44,7 +44,11 @@
 //MASK_WORD_BITBITS should be the log base 2
 //of the number of bits in MASK_WORD_TYPE
 //e.g. 4 for 16-bit ints, 5 for 32-bit ints, 6 for 64-bit ints
+#if defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)
+#define MASK_WORD_BITBITS 6
+#else
 #define MASK_WORD_BITBITS 5
+#endif
 
 
 //if SINGLE_MEMORY_BLOCK is defined

--- End Message ---
--- Begin Message ---
Source: kraptor
Source-Version: 0.0.20040403-4

We believe that the bug you reported is fixed in the latest version of
kraptor, which is due to be installed in the Debian FTP archive:

kraptor-data_0.0.20040403-4_all.deb
  to pool/main/k/kraptor/kraptor-data_0.0.20040403-4_all.deb
kraptor_0.0.20040403-4.diff.gz
  to pool/main/k/kraptor/kraptor_0.0.20040403-4.diff.gz
kraptor_0.0.20040403-4.dsc
  to pool/main/k/kraptor/kraptor_0.0.20040403-4.dsc
kraptor_0.0.20040403-4_i386.deb
  to pool/main/k/kraptor/kraptor_0.0.20040403-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Miriam Ruiz <[EMAIL PROTECTED]> (supplier of updated kraptor package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 12 Jan 2006 18:48:36 +0100
Source: kraptor
Binary: kraptor kraptor-data
Architecture: source i386 all
Version: 0.0.20040403-4
Distribution: unstable
Urgency: low
Maintainer: Debian Games Team <[EMAIL PROTECTED]>
Changed-By: Miriam Ruiz <[EMAIL PROTECTED]>
Description: 
 kraptor    - Classic shoot 'em up scroller game
 kraptor-data - Classic shoot 'em up scroller game - data files
Closes: 311840
Changes: 
 kraptor (0.0.20040403-4) unstable; urgency=low
 .
   * changed MASK_WORD_TYPE to unsigned long int according to a suggestion
     made by Kurt Roeckx. Closes: #311840.
   * Updated control to depend on data >= instead of = version.
Files: 
 9efb668297b7691273d4c95e1bc598b4 785 games optional kraptor_0.0.20040403-4.dsc
 1b4b698d727a717c0ed19534e2a8bf95 13481 games optional 
kraptor_0.0.20040403-4.diff.gz
 e55f263be58275e7bded8357fd7df9cd 9882090 games optional 
kraptor-data_0.0.20040403-4_all.deb
 983aadfddf64c3a905f26d7d3f9f7f9c 57040 games optional 
kraptor_0.0.20040403-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEV0PXipBneRiAKDwRArvnAKCJjuvrsU4cD+lsc+Zyl9J33LuRPgCgtY/p
a5VkvJMWdqa6FqxQbf3gAM4=
=fU28
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to