Bug#919397: apcalc FTBFS on 32bit big endian

2019-01-15 Thread Martin Buck
tags 919397 pending
thanks


Thanks for your report. I already noticed the problem and a fix is in the
pipeline.

Martin


On Tue, Jan 15, 2019 at 04:31:30PM +0200, Adrian Bunk wrote:
> Source: apcalc
> Version: 2.12.7.2-1
> Severity: serious
> Tags: ftbfs
> 
> https://buildd.debian.org/status/package.php?p=apcalc
> 
> ...
> In file included from qmath.h:32,
>  from cmath.h:32,
>  from value.h:33,
>  from calc.h:33,
>  from file.c:39:
> file.c: In function 'filepos2z':
> zmath.h:85:46: error: incompatible types when assigning to type 'HALF' {aka 
> 'long unsigned int'} from type 'FILEPOS' {aka 'struct _G_fpos_t'}
>  #define SWAP_HALF_IN_B32(dest, src) (*(dest) = *(src))
>   ^
> fposval.h:15:42: note: in expansion of macro 'SWAP_HALF_IN_B32'
>  #define SWAP_HALF_IN_FILEPOS(dest, src)  SWAP_HALF_IN_B32(dest, src)
>   ^~~~
> file.c:1370:2: note: in expansion of macro 'SWAP_HALF_IN_FILEPOS'
>   SWAP_HALF_IN_FILEPOS(ret.v, );
>   ^~~~
> make[1]: *** [Makefile:2364: file.o] Error 1



Bug#919397: apcalc FTBFS on 32bit big endian

2019-01-15 Thread Adrian Bunk
Source: apcalc
Version: 2.12.7.2-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/package.php?p=apcalc

...
In file included from qmath.h:32,
 from cmath.h:32,
 from value.h:33,
 from calc.h:33,
 from file.c:39:
file.c: In function 'filepos2z':
zmath.h:85:46: error: incompatible types when assigning to type 'HALF' {aka 
'long unsigned int'} from type 'FILEPOS' {aka 'struct _G_fpos_t'}
 #define SWAP_HALF_IN_B32(dest, src) (*(dest) = *(src))
  ^
fposval.h:15:42: note: in expansion of macro 'SWAP_HALF_IN_B32'
 #define SWAP_HALF_IN_FILEPOS(dest, src)  SWAP_HALF_IN_B32(dest, src)
  ^~~~
file.c:1370:2: note: in expansion of macro 'SWAP_HALF_IN_FILEPOS'
  SWAP_HALF_IN_FILEPOS(ret.v, );
  ^~~~
make[1]: *** [Makefile:2364: file.o] Error 1