Bug 1221687 - GCC 14: ghostscript package fails
Summary: GCC 14: ghostscript package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Printing (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 11:32 UTC by Michal Jireš
Modified: 2024-07-04 11:20 UTC (History)
2 users (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:32:12 UTC
Building ghostscript with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/ghostscript/standard/x86_64

Due to (exhaustive list of errors):

./base/fapi_ft.c: In function ‘gs_fapi_ft_get_scaled_font’:
./base/fapi_ft.c:1283:61: error: passing argument 2 of ‘a_font->retrieve_tt_font’ from incompatible pointer type [-Wincompatible-pointer-types]
 1283 |                     code = a_font->retrieve_tt_font(a_font, &own_font_data, &ms);
      |                                                             ^~~~~~~~~~~~~~
      |                                                             |
      |                                                             unsigned char **
./base/fapi_ft.c:1283:61: note: expected ‘void **’ but argument is of type ‘unsigned char **’



See the meta bug#1220571 for more info.
Comment 1 Alex Cherepanov 2024-03-23 14:17:42 UTC
This is fixed upstream by the commit:
https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=b7beb19ad06e08b889a44694ff813ed5f6c96da4

I've also checked the current Ghostscript against the current gcc and it compiles without errors.
Comment 2 Johannes Meixner 2024-03-26 09:13:09 UTC
Fixed by Ghostscript version upgrade to 10.03.0
which contains the change in
https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=b7beb19ad06e08b889a44694ff813ed5f6c96da4
-------------------------------------------------------------
# osc request accept -m 'Ghostscript version upgrade \
 to 10.03.0 fixes also boo#1221687' 1161673

Result of change request state: ok
openSUSE:Factory 
Forward this submit to it? ([y]/n)y

Ghostscript version upgrade to 10.03.0 fixes also boo#1221687
(forwarded request 1161673 from jsmeix)
New request # 1161674
-------------------------------------------------------------
Comment 3 OBSbugzilla Bot 2024-03-26 11:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1221687) was mentioned in
https://build.opensuse.org/request/show/1161674 Factory / ghostscript