https://sourceforge.net/p/stardict-4/tickets/12/


 #12 Compilation fails with recent glib
 Move  Edit
Milestone: 1.0
Status: open
Owner: nobody
Labels: None
Updated: 2025-02-05
Created: 2025-02-05
Creator: Marcel Telka
Private: No

When I try to compile with glib 2.82.4 I see this error:

/data/builds/oi-userland/components/desktop/stardict/stardict-3.0.7/dict/src/lib/stddict.cpp: In member function 'bool Libs::LookupSynonymSimilarWord(const gchar*, glong&, glong&, std::size_t, 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*}

I assume the problem is caused by this change in glib: https://gitlab.gnome.org/GNOME/glib/-/commit/c583162cc6d7078ff549c72615617092b0bc150a

