-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Test Python
-
None
-
Storage Engines
-
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.
- is duplicated by
-
WT-14022 failed: compile on macos-11-cmake [wiredtiger-mongo-v5.0 @ a4fa2572]
- Closed