Package: biosig4c++
Version: 0.96.3+svn2677
Severity: important
Tags: patch

biosig4c++ fails to build on all big endian platforms with the following error:

| gcc -c -pipe -fPIC -W -O2 -D=HARDCODED_EVENTTABLE -D=WITH_ZLIB 
-D=__4HAERTEL__ -D=WITH_FAMOS -D=WITH_CHOLMOD  -Wextra  -I 
/usr/include/gdcm-2.0/ -o "crc4scp.o" "t220/crc4scp.c"
| cat "debian/upstream-files/eventcodes.txt" | awk "-F\t" '/^[^#]/ {print 
"\t"$1", \""$2,"\","}' > eventcodes.i
| gcc -c -pipe -fPIC -W -O2 -D=HARDCODED_EVENTTABLE -D=WITH_ZLIB 
-D=__4HAERTEL__ -D=WITH_FAMOS -D=WITH_CHOLMOD  -Wextra  -I 
/usr/include/gdcm-2.0/ -o "biosig.o" "biosig.c"
| biosig.c: In function 'mfer_swap8b':
| biosig.c:564:17: error: 'for' loop initial declarations are only allowed in 
C99 mode
| biosig.c:564:17: note: use option -std=c99 or -std=gnu99 to compile your code
| biosig.c: In function 'sopen':
| biosig.c:6272:19: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
| biosig.c:6272:19: warning: signed and unsigned type in conditional expression 
[-Wsign-compare]
| make[2]: *** [biosig.o] Error 1
| make[1]: *** [override_dh_auto_build] Error 2
| make[2]: Leaving directory 
`/build/buildd2-biosig4c++_0.96.3+svn2677-1-mips-jMXF92/biosig4c++-0.96.3+svn2677'
| make[1]: Leaving directory 
`/build/buildd2-biosig4c++_0.96.3+svn2677-1-mips-jMXF92/biosig4c++-0.96.3+svn2677'
| make: *** [build] Error 2

Full build logs are available on:
https://buildd.debian.org/status/package.php?p=biosig4c%2B%2B&suite=sid

The patch below fixes the problem.

--- biosig4c++-0.96.3+svn2677.orig/biosig.c
+++ biosig4c++-0.96.3+svn2677/biosig.c
@@ -561,7 +561,8 @@ void* mfer_swap8b(uint8_t *buf, int8_t l
        typedef uint64_t iType;
 #if __BYTE_ORDER == __BIG_ENDIAN
         if (FLAG_SWAP) {
-                for (unsigned k=len; k < sizeof(iType); buf[k++]=0);
+               unsigned k;
+                for (k=len; k < sizeof(iType); buf[k++]=0);
                 *(iType*)buf = bswap_64(*(iType*)buf);
         }
         else

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.32-5-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to