Bugzilla – Bug 1221684
GCC 14: enchant-1 package fails
Last modified: 2024-07-08 14:55:45 UTC
Building enchant-1 with GCC 14 fails here: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/enchant-1/standard/x86_64 Due to (exhaustive list of errors): enchant.c: In function ‘enchant_dict_suggest’: enchant.c:991:87: error: passing argument 4 of ‘enchant_pwl_suggest’ from incompatible pointer type [-Wincompatible-pointer-types] 991 | pwl_suggs = enchant_pwl_suggest(session->personal, word, len, dict_suggs, &n_pwl_suggs); | ^~~~~~~~~~ | | | char ** pwl.c: In function ‘enchant_pwl_suggest’: pwl.c:739:41: error: passing argument 1 of ‘best_distance’ from incompatible pointer type [-Wincompatible-pointer-types] 739 | max_dist = suggs? best_distance(suggs, word, len) : ENCHANT_PWL_MAX_ERRORS; | ^~~~~ | | | const char * const* pwl.c:701:33: note: expected ‘char **’ but argument is of type ‘const char * const*’ 701 | static int best_distance(char** suggs, const char *const word, size_t len) | ~~~~~~~^~~~~ In file included from enchant.c:43: pwl.h:51:63: note: expected ‘const char * const* const’ but argument is of type ‘char **’ 51 | size_t len, const char*const*const suggs, size_t* out_n_suggs); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ See the meta bug#1220571 for more info.
Since enchant is a deliberate package of an old version. I have simply added -fpermissive to optflags in https://build.opensuse.org/request/show/1186211