[Debian-med-packaging] Bug#673434: dssp: ftbs with gcc-4.7

Julian Taylor jtaylor.debian at googlemail.com
Fri May 18 17:38:06 UTC 2012


Package: dssp
Version: 2.0.4-1
Severity: serious
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7
Tags: patch

dssp fails to build with gcc-4-7 in unstable:

g++ -MD -c -o obj/utils.o src/utils.cpp -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -iquote src
-g -Wall -Wno-multichar -pthread -O3 -DUSE_COMPRESSION -DLINUX
-DVERSION='"2.0.4"' -DNDEBUG
In file included from src/primitives-3d.cpp:17:0:
src/matrix.h: In instantiation of 'matrix<T> operator-(const
matrix_base<T>&, const matrix_base<T>&) [with T = double]':
src/primitives-3d.cpp:336:25:   required from here
src/matrix.h:313:79: error: 'min' was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
In file included from /usr/include/c++/4.7/algorithm:62:0,
                 from /usr/include/c++/4.7/valarray:40,
                 from src/primitives-3d.cpp:10:
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: 'template<class
_Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&,
_Compare)' declared here, later in the translation unit
In file included from src/primitives-3d.cpp:17:0:
src/matrix.h:313:79: error: 'min' was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
In file included from /usr/include/c++/4.7/algorithm:62:0,
                 from /usr/include/c++/4.7/valarray:40,
                 from src/primitives-3d.cpp:10:
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: 'template<class
_Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&,
_Compare)' declared here, later in the translation unit
make[1]: *** [obj/primitives-3d.o] Error 1

attached a patch fixing the issue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.7.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20120518/25587696/attachment.bin>
-------------- 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/20120518/25587696/attachment.pgp>


More information about the Debian-med-packaging mailing list