Bug 1221684 - GCC 14: enchant-1 package fails
Summary: GCC 14: enchant-1 package fails
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Martin Jambor
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 11:20 UTC by Michal Jireš
Modified: 2024-07-08 14:55 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jireš 2024-03-19 11:20:21 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.
Comment 1 Martin Jambor 2024-07-08 14:55:45 UTC
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