Bug#1078385: qstardict: FTBFS: gunicode.h:809:34: error: invalid conversion from ‘const gchar*’ {aka ‘const char*’} to ‘gchar*’ {aka ‘char*’} [-fpermissive]
Source: qstardict
Version: 1.4.1-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240809 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> g++ -c -pipe -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++2a -pthread -Wall -Wextra -D_REENTRANT -fPIC -DHAVE_MMAP -DQSTARDICT_WITH_DBUS -DQSTARDICT_WITH_TRANSLATIONS -DQSTARDICT_WITH_TRAY_ICON -DQSTARDICT_VERSION=\"1.4.1\" -DQSTARDICT_INSTALL_PREFIX=\"/usr\" -DQSTARDICT_BIN_DIR=\"/usr/bin\" -DQSTARDICT_DATA_DIR=\"/usr/share/qstardict\" -DQSTARDICT_TRANSLATIONS_DIR=\"/usr/share/qstardict/translations\" -DQSTARDICT_PLUGINS_DIR=\"/usr/lib/qstardict/plugins\" -DQSTARDICT_DOCS_DIR=\"/usr/share/doc/qstardict\" -DPLUGIN_ID=\"kiwix\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../../qstardict-1.4.1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o grayscale.o grayscale.cpp
> stardict_lib.cpp: In member function ‘virtual bool {anonymous}::WordListIndex::load(const std::string&, gulong, gulong, bool)’:
> stardict_lib.cpp:761:80: warning: unused parameter ‘verbose’ [-Wunused-parameter]
> 761 | bool WordListIndex::load(const std::string &url, gulong wc, gulong fsize, bool verbose)
> | ~~~~~^~~~~~~
> stardict_lib.cpp: In member function ‘bool Dict::LookupWithRule(GPatternSpec*, glong*, int)’:
> stardict_lib.cpp:943:35: warning: ‘gboolean g_pattern_match_string(GPatternSpec*, const gchar*)’ is deprecated: Use 'g_pattern_spec_match_string' instead [-Wdeprecated-declarations]
> 943 | if (g_pattern_match_string(pspec, get_key(i)))
> | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/glib-2.0/glib.h:68,
> from /usr/include/glib-2.0/glib/gprintf.h:23,
> from /usr/include/glib-2.0/glib/gstdio.h:24,
> from stardict_lib.cpp:10:
> /usr/include/glib-2.0/glib/gpattern.h:57:15: note: declared here
> 57 | gboolean g_pattern_match_string (GPatternSpec *pspec,
> | ^~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/glib-2.0/glib/gstring.h:35,
> from /usr/include/glib-2.0/glib/giochannel.h:36,
> from /usr/include/glib-2.0/glib.h:56:
> stardict_lib.cpp: In member function ‘bool Libs::LookupSimilarWord(const gchar*, glong&, int)’:
> /usr/include/glib-2.0/glib/gunicode.h:809:34: error: invalid conversion from ‘const gchar*’ {aka ‘const char*’} to ‘gchar*’ {aka ‘char*’} [-fpermissive]
> 809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
> | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | |
> | const gchar* {aka const char*}
> stardict_lib.cpp:1113:31: note: in expansion of macro ‘g_utf8_next_char’
> 1113 | gchar *nextchar = g_utf8_next_char(sWord);
> | ^~~~~~~~~~~~~~~~
> make[3]: *** [Makefile:518: stardict_lib.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/08/09/qstardict_1.4.1-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240809;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240809&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: