Bug 1221011

Summary: GCC 14: perl-DBD-mysql package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Jireš <michal.jires>
Component: OtherAssignee: Pedro Monreal Gonzalez <pmonrealgonzalez>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: pmonrealgonzalez
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-06 07:14:12 UTC
Building perl-DBD-mysql with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/perl-DBD-mysql/standard/x86_64

Due to (exhaustive list of errors):

dbdimp.c: In function ‘mysql_st_prepare’:
dbdimp.c:3207:24: error: assignment to ‘my_bool *’ {aka ‘char *’} from incompatible pointer type ‘_Bool *’ [-Wincompatible-pointer-types]
 3207 |           bind->is_null=      (_Bool*) &(fbind->is_null);
      |                        ^

See the meta bug#1220571 for more info.
Comment 1 Pedro Monreal Gonzalez 2024-03-06 13:25:05 UTC
Fixed upstream here:
  * https://github.com/perl5-dbi/DBD-mysql/pull/295/commits/93bc8768

I'll submit the patch in a moment.
Comment 2 Pedro Monreal Gonzalez 2024-03-06 13:25:41 UTC
Upstream pr: https://github.com/perl5-dbi/DBD-mysql/pull/295
Comment 3 Pedro Monreal Gonzalez 2024-03-06 13:59:51 UTC
Submitted here: https://build.opensuse.org/request/show/1155577
Comment 4 Pedro Monreal Gonzalez 2024-03-11 09:36:11 UTC
Released, closing.