473,809 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enable md5 support for python 2.5.1 on AIX 5.3

Given
AIX 5.3 ML07 including
openssh.base.4. 5.0.5301.I
openssl.base.0. 9.8.4.I

Latest RPM packages from the AIX Toolbox 11/2007 including
- openssl-0.9.7l-2.aix5.1.ppc.rp m

Python 2.5.1

Problem:
$python
>>import md5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/md5.py", line 6, in <module>
from hashlib import md5
File "/usr/local/lib/python2.5/hashlib.py", line 133, in <module>
md5 = __get_builtin_c onstructor('md5 ')
File "/usr/local/lib/python2.5/hashlib.py", line 60, in
__get_builtin_c onstructor
import _md5

Remarks:
python 2.5.1 requires openssl
openssl libraries are provided from:
- openssl.base 0.9.8.4 from IBM in installp format for the latest
openssh version and goes to /usr/lib
- openssl-0.9.7l-2 from the AIX toolbox and goes to /opt/freeware/lib

Analyse:
$ dump -Hv /usr/local/lib/python2.5/lib-dynload/_hashlib.so
/usr/local/lib/python2.5/lib-dynload/_hashlib.so:
INDEX PATH BASE MEMBER
0 /opt/freeware/lib:/usr/local/lib:/usr/vac/lib:/usr/lib/threads:/
usr/lib:/lib
1 libcrypto.a libcrypto.so.
0.9.7
2 .

$ ls -l /usr/local/lib/python2.5/lib-dynload/ | grep md5

Build environment
export LDFLAGS=" -L/opt/freeware/lib "
export CPPFLAGS=" -I/opt/freeware/include"
export OPT="-O2 -qmaxmem=-1 $CFLAGS"

../configure CC=cc_r CXX=xlC_r \
--without-gcc \
--with-gcc=cc_r \
--disable-shared \
--with-thread \
--disable-ipv6 \
--mandir=/usr/local/man \
--infodir=/usr/local/info

Thus the build has been done with the openssl version from the Toolbox
which can be seen as well from the build environment and no md5.so or
_md5.so file exist.

Solution:
For people using openssl v0.9.7 they should unmark _md5 in ./Modules/
Setup after 'configure' and before 'make'
$ perl -p -i -e 's/^#_md5/_md5/' ./Modules/Setup

For people using the openssl v0.9.8 from the openssl.base fileset
should use the following settings: ( /usr/lib is in front )
export LDFLAGS="-L/usr/lib -L/opt/freeware/lib "
export CPPFLAGS="-I/usr/include/openssl -I/opt/freeware/include"

or apply the workaround of openssl v0.9.7

hth
Hajo
Jan 16 '08 #1
0 2202

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7111
by: varois83 | last post by:
Hi I am fairly new to PHP/mysql and was reading an online tutorial and learned that my short tags weren't enabled. At this time I have no need for them, my setup apache/mysql/php runs on my PC just to test code. Shall I enable short tags or not? Windows XP pro PHP 4
10
3091
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test on 2.3.3 I get
1
3311
by: syed_saqib_ali | last post by:
Hi. I have MS Windows Server 2003, Enterprise Edition. It has MS Management Console 2.0, Version 5.2 and IIS Manager 6.0 I have a directory called "myDirs". Within this directory are 2 files: 1) index.pl (a perl script) 2) index.py (a python script whose first line is "#!C:\Python21\pythonw.exe")
4
10776
by: mabond | last post by:
Does anyone know some code that will allow me to enable and/or disable a task which already exists in the task scheduer. I have a task which runs at 15 min intervals and from time to time I want to disable (and later enable) that task. I'd like to do so programatically as part of another application instead of opening the task scheduler and right clicking on the relevant task. Any guidance or suggestions for code would be appreciated ...
3
2960
by: Murphy Wong | last post by:
Dear all, I've installed python 2.4.2 and Zope 2.8.5 on a 64-bit Linux. As I'm installing FLE (http://fle3.uiah.fi/), I find that it will call the rotor module i npython. However, rotor is removed from python 2.4.2 (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14434). Could I enable rotor some ways in python again? Thanks. Regards, Murphy
2
2793
by: Mark Harrison | last post by:
I've built a python with --enable-shared in order to support mod_python, but now I have to set LD_LIBRARY_PATH to $prefix/lib. Worse, it seems mod_python will die on some import statements, I'm suspecting ones that need to pull in .so's. Any clues appreciated... Mark. --
4
1693
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to enable double buffering in an MdiClient control? I have a case where I need to hide all of the MdiClient forms and interactively draw a custom background in an MdiClient control but without double buffering the flicker is unbearable. Thanks for any help! Lance
1
3441
by: Michael Tissington | last post by:
How can I enable execute permissions for a folder on my website using the web.config file ?
9
7468
by: Oriane | last post by:
Hi, I can set a breakpoint in my javascript client side code, but as sson as I start the Ajax Asp.Net application in debug mode, an exlamation mark shows up on the breakpoint, and a tooltip tells me that the mapping is not done. Any hint ? Best regards
0
10639
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.