Bug 1225929

Summary: Package subversion does not build with gcc14 because of new errors
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Jambor <mjambor>
Component: DevelopmentAssignee: Andreas Stieger <Andreas.Stieger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: Andreas.Stieger
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 Martin Jambor 2024-06-04 12:18:34 UTC
GCC 14 newly by default treats as errors a number of situations which
before were only warnings.  For more information see
https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571.

Because of this, package subversion fails to compile.  This can be seen online
at:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/subversion/standard/x86_64

It can be reproduced locally with command: osc build --clean
--alternative-project home:rguenther:nextgcc

The issue can likely be fixed with a patch attached to
https://issues.apache.org/jira/browse/SVN-4915


The (first) error (that halts the build) is:

[  107s] subversion/bindings/swig/ruby/core.c: In function '_wrap_svn_config_write_auth_data':
[  107s] subversion/bindings/swig/ruby/core.c:20623:17: error: passing argument 1 of 'RB_NIL_P' makes integer from pointer without a cast [-Wint-conversion]
[  107s] 20623 |       if (NIL_P(arg1)) {
[  107s]       |                 ^~~~
[  107s]       |                 |
[  107s]       |                 apr_hash_t *
[  107s] /usr/include/ruby-3.3.0/ruby/internal/special_consts.h:173:16: note: expected 'VALUE' {aka 'long unsigned int'} but argument is of type 'apr_hash_t *'
[  107s]   173 | RB_NIL_P(VALUE obj)
[  107s]       |          ~~~~~~^~~