build fails when cross compiling because of autoconf and rpl_malloc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
New
|
Undecided
|
Unassigned |
Bug Description
If pycrypto was cross compiled it can result in the following error:
>>> from Crypto import Random
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
from Crypto import Random
File "/usr/local/
from Crypto.Random import _UserFriendlyRNG
File "/usr/local/
from Crypto.
File "/usr/local/
import FortunaGenerator
File "/usr/local/
from Crypto.Cipher import AES
File "/usr/local/
from Crypto.Cipher import _AES
ImportError: /usr/local/
This is because autoconf assumes the target architecture during a cross compile won't have a gnu compatible malloc replaces malloc() calls with rpl_malloc() calls. The client code needs define rpl_malloc() as a wrapper around malloc() as explained here:
http://
And the actual autoconf documentation here:
A work-around is to set the environment variable "ac_cv_
This also affects the AIX build with xlc and standard AIX libc.