Package: soci Version: 3.2.3-1 Severity: important User: [email protected] Usertags: ftbfs-gcc-6
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 ... > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/backends/postgresql && /usr/bin/c++ > -DHAVE_BOOST=1 -DHAVE_BOOST_DATE_TIME=1 -DHAVE_POSTGRESQL=1 > -DSOCI_ABI_VERSION=\"3.2\" -I/usr/include/postgresql -I/<<PKGBUILDDIR>>/core > -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 -fPIC -pedantic -ansi -Wall -Wpointer-arith -Wcast-align > -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++98 -o > CMakeFiles/soci_postgresql_static.dir/error.cpp.o -c > /<<PKGBUILDDIR>>/backends/postgresql/error.cpp > /<<PKGBUILDDIR>>/backends/odbc/statement.cpp: In member function 'virtual > void soci::odbc_statement_backend::prepare(const string&, > soci::details::statement_type)': > /<<PKGBUILDDIR>>/backends/odbc/statement.cpp:134:62: warning: cast from type > 'const char*' to type 'SQLCHAR* {aka unsigned char*}' casts away qualifiers > [-Wcast-qual] > SQLRETURN rc = SQLPrepare(hstmt_, (SQLCHAR*)query_.c_str(), > (SQLINTEGER)query_.size()); > ^ > > In file included from > /<<PKGBUILDDIR>>/backends/mysql/standard-into-type.cpp:12:0: > /<<PKGBUILDDIR>>/backends/mysql/common.h: In instantiation of 'bool > soci::details::mysql::is_infinity_or_nan(T) [with T = double]': > /<<PKGBUILDDIR>>/backends/mysql/common.h:54:27: required from 'void > soci::details::mysql::parse_num(const char*, T&) [with T = double]' > /<<PKGBUILDDIR>>/backends/mysql/standard-into-type.cpp:122:37: required > from here > /<<PKGBUILDDIR>>/backends/mysql/common.h:42:15: warning: comparing floating > point with == or != is unsafe [-Wfloat-equal] > return (y != y); > ~~~^~~~~ > > /<<PKGBUILDDIR>>/backends/sqlite3/standard-into-type.cpp: In member function > 'virtual void soci::sqlite3_standard_into_type_backend::post_fetch(bool, > bool, soci::indicator*)': > /<<PKGBUILDDIR>>/backends/sqlite3/standard-into-type.cpp:110:25: error: > 'strtoll' is not a member of 'std' > *dest = std::strtoll(buf, NULL, 10); > ^~~ > > /<<PKGBUILDDIR>>/backends/sqlite3/standard-into-type.cpp:110:25: note: > suggested alternative: > In file included from /usr/include/c++/6/cstdlib:72:0, > from > /<<PKGBUILDDIR>>/backends/sqlite3/standard-into-type.cpp:14: > /usr/include/stdlib.h:209:22: note: 'strtoll' > extern long long int strtoll (const char *__restrict __nptr, > ^~~~~~~ > > /<<PKGBUILDDIR>>/backends/sqlite3/standard-into-type.cpp:139:33: error: > 'strtoll' is not a member of 'std' > long long val = std::strtoll(buf, NULL, 10); > ^~~ -- Martin Michlmayr Linux for HPE Helion, Hewlett Packard Enterprise

