Hello,
I am actually trying to activate the python bindings in Proton so I can compile
Dispatch Router on Solaris. However, the python unit tests of Proton are
failing.
Cmake Configuration
----------------------------
Found PythonInterp: ..../bin/python (found version "2.7.9")
Found SWIG: ..../bin/swig (found version "2.0.9")
Found CyrusSASL: ..../lib/64/libsasl2.so
Found PythonLibs: ..../libpython2.7.so (found suitable exact version "2.7.9")
Could NOT find Ruby (missing: RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
Error (tests/python/proton-test)
---------------------
1: File "..../build-dir/proton/proton-c/bindings/python/cproton.py", line 22,
in swig_import_helper
1: _mod = imp.load_module('_cproton', fp, pathname, description)
1: ImportError: dynamic module does not define init function (init_cproton)
Analysis
--------------------
Listing symbols in _cproton.so shows the above function is available
nm _cproton.so | grep init_cproton
[62] | 340924| 5677|FUNC |LOCL |2 |13 |init_cproton
I suspect SWIG version (2.0.9) to be the culprit however I am not pretty sure
if it related. On Linux, I am using SWIG version 1.3.40 and it is working.
I am actually out of ideas. So any help is highly appreciated!
PS: I am compiling in 64-bit mode in case it helps.
Regards,
Adel