﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
21885	subversion-1.14.5 FTBFS with Ruby 3.4.x	Douglas R. Reno	Douglas R. Reno	"While trying to build Subversion with Ruby-3.4.5 (needed to clone a repo from Sourceforge for a data recovery program), it fails to build with incompatible pointer type errors.

I was trying to check Subversion's upstream but their ViewVC instance now requires a username and password, and there doesn't seem to be a way to register. I'll look at other distros later and provide a fix if someone else doesn't beat me to it.

The errors are as follows:

{{{
In file included from /usr/include/ruby-3.4.0/ruby/internal/assume.h:29,
                 from /usr/include/ruby-3.4.0/ruby/backward/2/assume.h:24,
                 from /usr/include/ruby-3.4.0/ruby/defines.h:72,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:25:
subversion/bindings/swig/ruby/svn_delta.c: In function ‘SWIG_AsVal_long’: 
/usr/include/ruby-3.4.0/ruby/internal/anyargs.h:385:45: error: passing 
argument 1 of ‘rb_rescue’ from incompatible pointer type [-
Wincompatible-pointer-types]
}}}

and


{{{
subversion/bindings/swig/ruby/svn_client.c: In function 
‘SWIG_RubyIterateTrackings’:
subversion/bindings/swig/ruby/svn_client.c:1293:35: error: passing 
argument 2 of ‘rb_st_foreach’ from incompatible pointer type [-
Wincompatible-pointer-types] 
 1293 |   st_foreach(swig_ruby_trackings, (int (*)
(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   int (*)(void)
}}}

As well as dozens of others. I've got a complete build log at https://linuxfromscratch.org/~renodr/subversion-1.14.5-fail.log

I was able to work around it on my system by setting -Wno-incompatible-pointer-types, but that isn't acceptable for the book at all. I only did it in a hurry since I need to do a fast turnaround for an old client of mine."	defect	closed	normal	12.4	BOOK	git	medium	fixed		
