-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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.