Bug 2136510 - openwsman failed with SWIG 4.1.0
Summary: openwsman failed with SWIG 4.1.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: openwsman
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-20 13:45 UTC by Jitka Plesnikova
Modified: 2022-10-21 07:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-10-21 07:12:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2022-10-20 13:45:42 UTC
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>

Comment 1 Vitezslav Crhonek 2022-10-21 07:12:22 UTC
Fix applied in Rawhide.


Note You need to log in before you can comment on or make changes to this bug.