[Debian-med-packaging] Bug#625120: clonalframe: FTBFS: src/move_hidden.cpp:169:62: error: taking address of temporary [-fpermissive]

Sebastian Ramacher s.ramacher at gmx.at
Thu Jun 30 16:34:10 UTC 2011


On 06/29/2011 09:17 AM, Andreas Tille wrote:
> sorry for the late reply to this bug.  I can reproduce the problem on my
> side but I'm not finally sure that this is really a problem of clonalframe
> or whether it is a bad coincidence with libgsl0-dev.  The line in question
> where the problem occures is:
> 
>  src/move_hidden.cpp:423:59: error: taking address of temporary [-fpermissive]                                                                                                                                 
> 
>  423:            Util::normalize(&(gsl_matrix_row(e,i+1).vector));
> 
> So I suspect that there are temporary variables used where they should
> not but these are not declared in Move_hidden::makee().  My c++
> knowledge ist too limited to track down the problem in a reasonable time
> frame and thus I CC debian-mentors and upstream (Xavier please find the
> full log of this bug below or at http://bugs.debian.org/625120).

The attached patch should fix this issue. The problem here is that the return
value of gsl_matrix_row is a non-lvalue and thus one cannot take its address.

Kind regards,
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clonalframe.patch
Type: text/x-diff
Size: 807 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20110630/09ba269c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20110630/09ba269c/attachment.pgp>


More information about the Debian-med-packaging mailing list