Bug 1221687

Summary: GCC 14: ghostscript package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Jireš <michal.jires>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: alex, dmueller
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

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