Package: postal Version: 0.73+nmu1 Severity: important User: [email protected] Usertags: ftbfs-gcc-6 gcc-6-invalid-template-argument
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 ... > g++ -O2 -g -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings > -Wcast-qual -pedantic -Woverloaded-virtual -ffor-scope -c smtp.cpp > In file included from /usr/include/c++/6/ext/hash_map:60:0, > from smtp.h:11, > from smtp.cpp:1: > /usr/include/c++/6/backward/backward_warning.h:32:2: warning: #warning This > file includes at least one deprecated or antiquated header which may be > removed without further notice at a future date. Please use a non-deprecated > interface with equivalent functionality instead. For a listing of replacement > headers and interfaces, consult the file backward_warning.h. To disable this > warning use -Wno-deprecated. [-Wcpp] > #warning \ > ^~~~~~~ > > In file included from smtp.cpp:1:0: > smtp.h:33:69: error: template argument 3 is invalid > typedef hash_map<unsigned long, string *, hash<unsigned long>, eqlng> > NAME_MAP; > ^ > > smtp.cpp: In member function 'const string* > smtpData::getMailName(sockaddr_in&)': > smtp.cpp:30:28: error: invalid types 'NAME_MAP {aka int}[long unsigned int]' > for array subscript > string *name = m_names[ip]; > ^ > > smtp.cpp:55:13: error: invalid types 'NAME_MAP {aka int}[long unsigned int]' > for array subscript > m_names[ip] = name; > ^ > > Makefile:52: recipe for target 'smtp.o' failed > make[1]: *** [smtp.o] Error 1 > make[1]: Leaving directory '/<<BUILDDIR>>/postal-0.73+nmu1' -- Martin Michlmayr Linux for HPE Helion, Hewlett Packard Enterprise

