[Debian-med-packaging] Bug#1000220: dicomscope: error: cannot bind non-const lvalue reference of type ‘std::__cxx11::list<int, std::allocator<int> >::const_iterator&’ to an rvalue of type ‘std::__cxx11::list<int, std::allocator<int> >::const_iterator’

Sebastian Ramacher sramacher at debian.org
Fri Nov 19 21:55:58 GMT 2021


Source: dicomscope
Version: 3.6.0-22
Severity: serious
Tags: ftbfs sid bookworm
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher at debian.org

| cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/interface/libsrc && /usr/bin/c++ -DHAVE_CONFIG_H -DHAVE_STRSTREAM_H -DNDEBUG -DjInterface_EXPORTS -I/<<PKGBUILDDIR>>/interface/include -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/include/dcmtk/dcmpstat -I/usr/include/dcmtk/dcmsr -I/usr/include/dcmtk/dcmjpeg -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT interface/libsrc/CMakeFiles/jInterface.dir/DSRImageValue.cpp.o -MF CMakeFiles/jInterface.dir/DSRImageValue.cpp.o.d -o CMakeFiles/jInterface.dir/DSRImageValue.cpp.o -c /<<PKGBUILDDIR>>/interface/libsrc/DSRImageValue.cpp
| In file included from /usr/include/dcmtk/dcmsr/dsrscogr.h:30,
|                  from /usr/include/dcmtk/dcmsr/dsrscovl.h:30,
|                  from /usr/include/dcmtk/dcmsr/dsrcitem.h:33,
|                  from /usr/include/dcmtk/dcmsr/dsrdocst.h:33,
|                  from /usr/include/dcmtk/dcmsr/dsrdoctr.h:29,
|                  from /usr/include/dcmtk/dcmsr/dsrdoc.h:29,
|                  from /<<PKGBUILDDIR>>/interface/include/jInterface.h:49,
|                  from /<<PKGBUILDDIR>>/interface/libsrc/DSRImageValue.cpp:39:
| /usr/include/dcmtk/dcmsr/dsrtlist.h: In instantiation of ‘OFCondition DSRListOfItems<T>::removeItem(size_t) [with T = int; size_t = long unsigned int]’:
| /<<PKGBUILDDIR>>/interface/libsrc/DSRImageValue.cpp:313:49:   required from here
| /usr/include/dcmtk/dcmsr/dsrtlist.h:303:30: error: cannot bind non-const lvalue reference of type ‘std::__cxx11::list<int, std::allocator<int> >::const_iterator&’ to an rvalue of type ‘std::__cxx11::list<int, std::allocator<int> >::const_iterator’
|   303 |         if (gotoItemPos(idx, iterator))
|       |                              ^~~~~~~~
| In file included from /usr/include/c++/11/list:63,
|                  from /usr/include/dcmtk/ofstd/oflist.h:56,
|                  from /usr/include/dcmtk/ofstd/ofstd.h:28,
|                  from /usr/include/dcmtk/ofstd/offile.h:30,
|                  from /usr/include/dcmtk/dcmdata/dcistrma.h:28,
|                  from /usr/include/dcmtk/dcmdata/dctk.h:30,
|                  from /usr/include/dcmtk/dcmpstat/dcmpstat.h:27,
|                  from /usr/include/dcmtk/dcmpstat/dvpstat.h:27,
|                  from /usr/include/dcmtk/dcmpstat/dviface.h:32,
|                  from /<<PKGBUILDDIR>>/interface/include/jInterface.h:42,
|                  from /<<PKGBUILDDIR>>/interface/libsrc/DSRImageValue.cpp:39:
| /usr/include/c++/11/bits/stl_list.h:286:7: note:   after user-defined conversion: ‘std::_List_const_iterator< <template-parameter-1-1> >::_List_const_iterator(const iterator&) [with _Tp = int; std::_List_const_iterator< <template-parameter-1-1> >::iterator = std::_List_const_iterator<int>::iterator]’
|   286 |       _List_const_iterator(const iterator& __x) _GLIBCXX_NOEXCEPT
|       |       ^~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/dcmtk/dcmsr/dsrscogr.h:30,
|                  from /usr/include/dcmtk/dcmsr/dsrscovl.h:30,
|                  from /usr/include/dcmtk/dcmsr/dsrcitem.h:33,
|                  from /usr/include/dcmtk/dcmsr/dsrdocst.h:33,
|                  from /usr/include/dcmtk/dcmsr/dsrdoctr.h:29,
|                  from /usr/include/dcmtk/dcmsr/dsrdoc.h:29,
|                  from /<<PKGBUILDDIR>>/interface/include/jInterface.h:49,
|                  from /<<PKGBUILDDIR>>/interface/libsrc/DSRImageValue.cpp:39:
| /usr/include/dcmtk/dcmsr/dsrtlist.h:320:64: note:   initializing argument 2 of ‘OFBool DSRListOfItems<T>::gotoItemPos(size_t, typename std::__cxx11::list<T>::const_iterator&) const [with T = int; OFBool = bool; size_t = long unsigned int; typename std::__cxx11::list<T>::const_iterator = std::__cxx11::list<int, std::allocator<int> >::const_iterator]’
|   320 |                        OFLIST_TYPENAME OFListConstIterator(T) &iterator) const
|       |                                                                ^
| make[3]: *** [interface/libsrc/CMakeFiles/jInterface.dir/build.make:135: interface/libsrc/CMakeFiles/jInterface.dir/DSRImageValue.cpp.o] Error 1

See
https://buildd.debian.org/status/fetch.php?pkg=dicomscope&arch=amd64&ver=3.6.0-22%2Bb2&stamp=1637356191&raw=0

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20211119/5314a9ca/attachment.sig>


More information about the Debian-med-packaging mailing list