qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adel Boutros <Adelbout...@live.com>
Subject Re: [Proton 0.16.0] Compiling Proton Python bindings on Solaris is failing in the python tests
Date Mon, 16 Jan 2017 18:28:36 GMT
I just compiled SWIG 1.3.40 on Solaris and tried but still got the same error :(

________________________________
From: Adel Boutros <Adelboutros@live.com>
Sent: Monday, January 16, 2017 7:00:41 PM
To: users@qpid.apache.org
Subject: [Proton 0.16.0] Compiling Proton Python bindings on Solaris is failing in the python
tests

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message