[Pkg-octave-devel] Bug#705485: liboctave-dev: including mex.h does not work with G++ 4.8 [was: Bug#701270: dynare: ftbfs with GCC-4.8]
sebastien at dynare.org
Mon Apr 15 15:53:47 UTC 2013
Control: tags -1 + upstream patch
Control: forwarded -1 https://savannah.gnu.org/bugs/index.php?38746
Le samedi 23 février 2013 à 11:20 +0000, Matthias Klose a écrit :
> Package: src:dynare
> Version: 4.3.0-2
> Severity: important
> Tags: sid jessie
> User: debian-gcc at lists.debian.org
> Usertags: ftbfs-gcc-4.8
> The package fails to build in a test rebuild on at least amd64 with
> gcc-4.8/g++-4.8, but succeeds to build with gcc-4.7/g++-4.7. The
> severity of this report may be raised before the jessie release.
> cstdlib:174:20: error: declaration of C function 'long long int std::abs(long long int)' conflicts with
This error comes from a bug in liboctave-dev.
The root of the problem is that mex.h includes mexproto.h within an
extern "C" block. In turn, mexproto.h includes cstdlib.
Apparently, including cstdlib within an extern "C" block was working
with G++ 4.7, but this is no longer the case.
The fix is to include mexproto.h outside of the extern "C" block.
Researcher in Economics
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the Pkg-octave-devel