Issues

Issue #145 resolved

pycryptopp setup.py test gives ImportError with ostream_insert on CentOS5 i386

Andy Cress
created an issue

With pycryptopp-0.5.29 and pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958 I get an ImportError with ostream_insert during the 'test' on CentOS5 i386

python2.7 ./setup.py test

...
running test
Traceback (most recent call last):
  File "./setup.py", line 435, in <module>
    cmdclass=commands,
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "./setup.py", line 401, in run
    test = loader.loadTestsFromName(self.test_suite)
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "build/lib.linux-i686-2.7/pycryptopp/__init__.py", line 8, in <module>
    import _pycryptopp
ImportError: build/lib.linux-i686-2.7/pycryptopp/_pycryptopp.so: undefined symbol: _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
# objdump -t build/lib.linux-i686-2.7/pycryptopp/_pycryptopp.so |grep ostream_insert
00000000         *UND*  00000000              _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i

It should be linking this in with libstdc++ or embedded, I think.

# rpm -qa |grep libstd
libstdc++-4.1.2-54.el5
libstdc++44-devel-4.4.7-1.el5
compat-libstdc++-33-3.2.3-61
libstdc++-devel-4.1.2-54.el5
compat-libstdc++-296-2.96-138
# rpm -qa |grep python27
python27-devel-2.7.6-1.ius.el5
python27-setuptools-3.6-1.ius.el5
python27-libs-2.7.6-1.ius.el5
python27-backports-ssl_match_hostname-3.4.0.2-1.ius.el5
python27-2.7.6-1.ius.el5
python27-backports-1.0-1.ius.el5

This works with pycryptopp-0.6.0 on CentOS5 x86_64 and CentOS6 x86_64 (also python27).

Comments (3)

  1. Log in to comment