[PYTHON-CRYPTO] Problems building M2Crypto on CentOS running x86_64

Bill boober95 at ROGERS.COM
Thu Dec 10 19:44:46 CET 2009


Excellent ... that seems to have solved the last issue I was having.

So what I had to do to get it to build was to rebuild OpenSSL after running:

    ./config shared

Then I had to create a library path in /etc/ls.so.conf.d and 
run /sbin/ldconfig.

Now I can build it and import it.  When I run the tests I get a lot of errors 
'EEEEE ...' and then it segfaults.  I compared this to the Fedora 11 build 
and it also gets the errors, but doesn't segfault, it just hangs.

Anyhow it is a start and hopefully the functions I need are working.

/bill

PS:  To keep SELinux running I had to add the following command:

chcon -t 
textrel_shlib_t /usr/local/lib/python2.5/site-packages/M2Crypto/__m2crypto.so


On Thursday 10 December 2009 12:01, Miloslav Trmac wrote:
> Hello,
>
> ----- "Bill" <boober95 at ROGERS.COM> wrote:
> > gcc -pthread -shared build/temp.linux-x86_64-2.5/SWIG/_m2crypto_wrap.o
> > -L/usr/local/ssl/lib -lssl -lcrypto -o
> > build/lib.linux-x86_64-2.5/M2Crypto/__m2crypto.so
> > /usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(x86_64cpuid.o): relocation
> > R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used when making a
> > shared object; recompile with -fPIC
>
> You have a local OpenSSL build that does not contain a shared library.
>     Mirek



More information about the python-crypto mailing list