[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[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]



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@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

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: