Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13667

Support compiling WiredTiger with SWIG 4.3.0 version

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Test Python
    • None
    • Storage Engines
    • 2
    • StorEng - 2024-10-29

      SWIG 4.3.0 version has introduced some incompatibilities and the following one affects WiredTiger compilation.

      2024-06-15: vadz
                  [Python] #2907 Fix returning null from functions with output
                  parameters.  Ensures OUTPUT and INOUT typemaps are handled
                  consistently wrt return type.
      
                  New declaration of SWIG_Python_AppendOutput is now:
      
                    SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void);
      
                  The 3rd parameter is new and the new $isvoid special variable
                  should be passed to it, indicating whether or not the wrapped
                  function returns void. If SWIG_Python_AppendOutput is currently being
                  used and a completely backwards compatible (but technically incorrect)
                  solution is required, then pass 1 for the is_void parameter.
      
                  Also consider replacing with:
      
                    SWIG_AppendOutput(PyObject* result, PyObject* obj);
      
                  which calls SWIG_Python_AppendOutput with same parameters but adding $isvoid
                  for final parameter.
      
      	    *** POTENTIAL INCOMPATIBILITY ***
      

      As per the suggested solution, replace the calls of SWIG_Python_AppendOutput wit SWIG_AppendOutput to allow WiredTiger to compile with SWIG 4.3.0 version.

            Assignee:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Reporter:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: