[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]
Sébastien Villemot
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.
--
Sébastien Villemot
Researcher in Economics
Dynare developer
http://www.dynare.org/sebastien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20130415/f351090e/attachment.pgp>
More information about the Pkg-octave-devel
mailing list