Re: M2Crypto build problems.

Ng Pheng Siong <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
On Fri, Jun 25, 2004 at 07:38:53AM +0200, Terry Kerr wrote:
> >>> import M2Crypto
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/home/builder/lib/python2.3/site-packages/M2Crypto/__init__.py",
> line 7, in ?
>     import __m2crypto
> ImportError: /home/builder/lib/python2.3/site-
> packages/M2Crypto/__m2crypto.so: Undefined symbol "EVP_aes_192_cfb"

What says "objdump -x __m2crypto.so"?

I get:

Dynamic Section:
  NEEDED      libssl.so.3
  NEEDED      libcrypto.so.3

I've recently upgraded my FreeBSD world to 4.10-RELEASE. These .so's are
the system-built ones.

$ which openssl
/usr/bin/openssl

$ /usr/bin/openssl version
OpenSSL 0.9.7d 17 Mar 2004

$ objdump -T __m2crypto.so | egrep aes
00000000      DF *UND*  00000019 EVP_aes_192_cfb
00000000      DF *UND*  00000019 EVP_aes_128_cbc
00000000      DF *UND*  00000019 EVP_aes_192_ecb
00000000      DF *UND*  00000019 EVP_aes_128_cfb
00000000      DF *UND*  00000019 EVP_aes_192_cbc
00000000      DF *UND*  00000019 EVP_aes_256_cbc
00000000      DF *UND*  00000019 EVP_aes_128_ecb
00000000      DF *UND*  00000019 EVP_aes_192_ofb
00000000      DF *UND*  00000019 EVP_aes_128_ofb
00000000      DF *UND*  00000019 EVP_aes_256_ofb
00000000      DF *UND*  00000019 EVP_aes_256_cfb
00000000      DF *UND*  00000019 EVP_aes_256_ecb

$ python
>>> from M2Crypto import EVP
>>> c = EVP.Cipher('aes_192_cfb', 'key', '', 1, 1, 'sha1', 'saltsalt', 1)
>>> c
<M2Crypto.EVP.Cipher instance at 0x828ddcc>

> I used the exact same source downloads of openssl, python, swig and
> m2crypto to build a working version of m2crypto on a debian linux system,
> so I assume the fault has something to do with my freebsd system, but I
> can't image what.

Perhaps you have more than 1 installation of OpenSSL on your system, and
are somehow linking with the old one?

Python and SWIG builds aren't relevant in this case.

(BTW, FreeBSD 4.3 is _really_ ancient.)

HTH. Cheers.

--
Ng Pheng Siong <[email protected]>

http://firewall.rulemaker.net     -+- Firewall Version Control
http://sandbox.rulemaker.net/ngps -+- M2Crypto, ZServerSSL/Zope, Blog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.