I am testing rebuild of SWIG dependencies against upcoming version 4.1.0 in Fedora rawhide/38. The test of openwsman-2.7.1 is failing with this version. /builddir/build/BUILD/openwsman-2.7.1/build/bindings/ruby/openwsman_wrap.c: At top level: /builddir/build/BUILD/openwsman-2.7.1/build/bindings/ruby/openwsman_wrap.c:3906:19: error: static declaration of 'SwigClassXmlDoc' follows non-static declaration 3906 | static swig_class SwigClassXmlDoc; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/openwsman-2.7.1/build/bindings/ruby/openwsman_wrap.c:2698:16: note: previous declaration of 'SwigClassXmlDoc' with type 'swig_class' 2698 | KLASS_DECL(SwigClassXmlDoc,SWIGTYPE_p__WsXmlDoc); | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/openwsman-2.7.1/bindings/ruby/helpers.h:54:43: note: in definition of macro 'KLASS_DECL' 54 | #define KLASS_DECL(k,t) extern swig_class k | ^ /builddir/build/BUILD/openwsman-2.7.1/build/bindings/ruby/openwsman_wrap.c:4367:19: error: static declaration of 'SwigClassXmlNode' follows non-static declaration 4367 | static swig_class SwigClassXmlNode; | ^~~~~~~~~~~~~~~~ It is caused because SWIGVERSION macro is no longer defined. The macro is used in bindings/ruby/helpers.h. Upstream already fixed it. commit d266a628d8f345d52bf52cc57c31d08b274cfb34 Author: Klaus Kämpf <kkaempf> Date: Sat Oct 15 10:22:03 2022 +0200 fix Ruby bindings for swig 4.1 Signed-off-by: Klaus Kämpf <kkaempf>
Fix applied in Rawhide.