Package: src:htdig
Version: 1:3.2.0b6-16
Severity: normal
Tags: sid buster
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-7

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/htdig_3.2.0b6-16_unstable_gcc7.log
The last lines of the build log are at the end of this report.

To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-7/porting_to.html

[...]
htdb_stat.cc:184:4: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
htdb_stat.cc:184:4: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
/bin/bash ../libtool  --tag=CXX   --mode=link x86_64-linux-gnu-g++  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wno-deprecated -Wall -fno-rtti -fno-exceptions   
-Wl,-z,relro -o htdb_stat htdb_stat.o ../htnet/libhtnet.la 
../htcommon/libcommon.la ../htword/libhtword.la ../htlib/libht.la 
../htcommon/libcommon.la ../htword/libhtword.la ../db/libhtdb.la 
../htlib/libht.la -lz 
libtool: link: x86_64-linux-gnu-g++ -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wno-deprecated -Wall -fno-rtti -fno-exceptions -Wl,-z 
-Wl,relro -o .libs/htdb_stat htdb_stat.o  ../htnet/.libs/libhtnet.so 
../htcommon/.libs/libcommon.so ../htword/.libs/libhtword.so 
../db/.libs/libhtdb.so ../htlib/.libs/libht.so -lz -Wl,-rpath 
-Wl,/usr/lib/htdig -Wl,-rpath -Wl,/usr/lib/htdig_db
make[2]: Leaving directory '/<<PKGBUILDDIR>>/htdb'
Making all in htdig
make[2]: Entering directory '/<<PKGBUILDDIR>>/htdig'
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/etc/htdig/htdig.conf\" -I../include -I../htlib 
-I../htnet -I../htcommon -I../htword -I../db -I../db    -Wdate-time 
-D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated -Wall 
-fno-rtti -fno-exceptions -c -o Document.o Document.cc
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/etc/htdig/htdig.conf\" -I../include -I../htlib 
-I../htnet -I../htcommon -I../htword -I../db -I../db    -Wdate-time 
-D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated -Wall 
-fno-rtti -fno-exceptions -c -o HTML.o HTML.cc
HTML.cc: In constructor 'HTML::HTML()':
HTML.cc:88:170: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
     
tags.Pattern("title|/title|a|/a|h1|h2|h3|h4|h5|h6|/h1|/h2|/h3|/h4|/h5|/h6|noindex|/noindex|img|li|meta|frame|area|base|embed|object|link|style|/style|script|/script");
                                                                                
                                                                                
          ^
HTML.cc:94:197: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
     
nobreaktags.Pattern("font|/font|em|/em|strong|/strong|i|/i|b|/b|u|/u|tt|/tt|abbr|/abbr|code|/code|q|/q|samp|/samp|kbd|/kbd|var|/var|dfn|/dfn|cite|/cite|blink|/blink|big|/big|small|/small|s|/s");
                                                                                
                                                                                
                                     ^
HTML.cc:99:122: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
     
spacebeforetags.Pattern("title|h1|h2|h3|h4|h5|h6|address|blockquote|noindex|img|li|th|td|dt|dd|p|br|hr|center|spacer");
                                                                                
                                          ^
HTML.cc:101:81: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
     
spaceaftertags.Pattern("/title|/h1|/h2|/h3|/h4|/h5|/h6|/address|/blockquote");
                                                                                
 ^
HTML.cc:105:73: warning: ISO C++ forbids converting a string constant to 
'char*' [-Wwrite-strings]
     metadatetags.Pattern("date|dc.date|dc.date.created|dc.date.modified");
                                                                         ^
HTML.cc: In member function 'virtual void HTML::parse(Retriever&, URL&)':
HTML.cc:406:20: warning: suggest parentheses around '&&' within '||' 
[-Wparentheses]
      if (!in_space && spacebeforetags.CompareWord((char *)position)
          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HTML.cc:221:24: warning: variable 'start' set but not used 
[-Wunused-but-set-variable]
     unsigned char *q, *start;
                        ^~~~~
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/etc/htdig/htdig.conf\" -I../include -I../htlib 
-I../htnet -I../htcommon -I../htword -I../db -I../db    -Wdate-time 
-D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated -Wall 
-fno-rtti -fno-exceptions -c -o Parsable.o Parsable.cc
Parsable.cc: In member function 'void Parsable::addString(Retriever&, char*, 
int&, int)':
Parsable.cc:77:9: error: invalid conversion from 'char' to 'char*' 
[-fpermissive]
     w = '\0';
         ^~~~
Parsable.cc: In member function 'void Parsable::addKeywordString(Retriever&, 
char*, int&)':
Parsable.cc:95:9: error: invalid conversion from 'char' to 'char*' 
[-fpermissive]
     w = '\0';
         ^~~~
Makefile:467: recipe for target 'Parsable.o' failed
make[2]: *** [Parsable.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/htdig'
Makefile:449: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:16: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reply via email to