Package: photoprint
Version: 0.4.2~pre2-2.3
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-reference-ambiguous

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I../support/ 
> -I../profilemanager/ -pthread -I/usr/include/gtk-2.0 
> -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ 
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 
> -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
> -I/usr/include/freetype2 -g -O2 -MT imagesource_flatten.lo -MD -MP -MF 
> .deps/imagesource_flatten.Tpo -c imagesource_flatten.cpp -o 
> imagesource_flatten.o >/dev/null 2>&1
> In file included from imagesource_pnm.cpp:24:0:
> imagesource_pnm.h:45:2: error: reference to 'tuple' is ambiguous
>   tuple *tuplerow;
>   ^~~~~
> 
> In file included from imagesource_pnm.h:30:0,
>                  from imagesource_pnm.cpp:24:
> /usr/include/pam.h:95:17: note: candidates are: typedef sample* tuple
>  typedef sample *tuple;
>                  ^~~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/ios:40,
>                  from /usr/include/c++/6/ostream:38,
>                  from /usr/include/c++/6/iostream:39,
>                  from imagesource_pnm.cpp:13:
> /usr/include/c++/6/bits/stl_pair.h:83:11: note:                 
> template<class ...> class std::tuple
>      class tuple;
>            ^~~~~
> 
> imagesource_pnm.cpp: In destructor 'virtual 
> ImageSource_PNM::~ImageSource_PNM()':
> imagesource_pnm.cpp:30:5: error: 'tuplerow' was not declared in this scope
>   if(tuplerow)
>      ^~~~~~~~
> 
> imagesource_pnm.cpp: In member function 'virtual ISDataType* 
> ImageSource_PNM::GetRow(int)':
> imagesource_pnm.cpp:49:26: error: 'tuplerow' was not declared in this scope
>    pnm_readpamrow(&header,tuplerow);
>                           ^~~~~~~~
> 
> imagesource_pnm.cpp:58:14: error: 'tuplerow' was not declared in this scope
>      sample s=tuplerow[x][0];
>               ^~~~~~~~
> 
> In file included from imagesource.h:16:0,
>                  from imagesource_pnm.h:16,
>                  from imagesource_pnm.cpp:24:
> imagesource_pnm.cpp:72:24: error: 'tuplerow' was not declared in this scope
>        *dst++=EIGHTTOIS(tuplerow[x][0]);
>                         ^
> 
> imagesource_types.h:8:25: note: in definition of macro 'EIGHTTOIS'
>  #define EIGHTTOIS(x) (((x) << 8) | (x))
>                          ^
> 
> imagesource_pnm.cpp:78:14: error: 'tuplerow' was not declared in this scope
>        *dst++=tuplerow[x][0];
>               ^~~~~~~~
> 
> imagesource_pnm.cpp: In constructor 'ImageSource_PNM::ImageSource_PNM(const 
> char*)':
> imagesource_pnm.cpp:89:29: warning: ISO C++ forbids converting a string 
> constant to 'char*' [-Wwrite-strings]
>   char *argv[]={"PNMLoader",0};
>                              ^
> 
> imagesource_pnm.cpp:122:2: error: 'tuplerow' was not declared in this scope
>   tuplerow = pnm_allocpamrow(&header);
>   ^~~~~~~~

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to