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

Support compiling WiredTiger with SWIG 4.3.0 version

    • 2
    • StorEng - 2024-10-29
    • v8.0, v7.0, v6.0, v5.0

      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: