On 07/13/2010 02:18 PM, Adam Mercer wrote:That version of M2Crypto does not

Robert Schuon rschuon at mindspring.com
Tue Dec 21 08:30:29 EST 2010


I was getting the same error trying to build M2Crypto 0.20.2 for Python 2.5 on a Win 7 laptop, so I pulled down the trunk, and it did build properly using minGW and Swig.  However, when I try to "python setup.py install", python simply gives the same complaint that python was built in visual studio 2003, and will not install M2Crypto.  Any help would be greatly appreciated, as I have been trying to get this to work for days.   Does anyone have a build for 0.20.2 that works with python 2.5?  I found so many other builds, but not that one.

Thanks,

Bob S.

> On Tuesday, July 13, 2010 5:18 PM Adam Mercer wrote:

> Hi
> 
> I am trying to build M2Crypto on Mac OS X 10.6.4 against python2.5
> (python2.6 fails in the same way), with SWIG 2.0.0 and OpenSSL 1.0.0a
> and it is failing with the following:
> 
> 105	:info:build swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
> 106	:info:build swig -python
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -I/opt/local/include -includeall -o SWIG/_m2crypto_wrap.c
> SWIG/_m2crypto.i
> 107	:info:build SWIG/_bio.i:64: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 108	:info:build SWIG/_rand.i:19: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 109	:info:build SWIG/_evp.i:156: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 110	:info:build SWIG/_dh.i:36: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 111	:info:build SWIG/_rsa.i:43: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 112	:info:build SWIG/_dsa.i:31: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 113	:info:build SWIG/_ssl.i:207: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 114	:info:build SWIG/_x509.i:313: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 115	:info:build SWIG/_pkcs7.i:42: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 116	:info:build SWIG/_pkcs7.i:42: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 117	:info:build SWIG/_util.i:9: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 118	:info:build SWIG/_ec.i:111: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 119	:info:build SWIG/_engine.i:162: Warning 454: Setting a
> pointer/reference variable may leak memory.
> 120	:info:build creating build/temp.macosx-10.6-x86_64-2.5
> 121	:info:build creating build/temp.macosx-10.6-x86_64-2.5/SWIG
> 122	:info:build /usr/bin/gcc-4.2 -fno-strict-aliasing -mno-fused-madd
> -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -I/opt/local/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-m2crypto/work/M2Crypto-0.20.2/SWIG
> -c SWIG/_m2crypto_wrap.c -o
> build/temp.macosx-10.6-x86_64-2.5/SWIG/_m2crypto_wrap.o -DTHREADING
> 123	:info:build SWIG/_m2crypto_wrap.c: In function 'rand_pseudo_bytes':
> 124	:info:build SWIG/_m2crypto_wrap.c:3899: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 125	:info:build SWIG/_m2crypto_wrap.c: In function 'pkcs5_pbkdf2_hmac_sha1':
> 126	:info:build SWIG/_m2crypto_wrap.c:3973: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 127	:info:build SWIG/_m2crypto_wrap.c: In function 'bytes_to_key':
> 128	:info:build SWIG/_m2crypto_wrap.c:4132: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 129	:info:build SWIG/_m2crypto_wrap.c: In function 'sign_final':
> 130	:info:build SWIG/_m2crypto_wrap.c:4228: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 131	:info:build SWIG/_m2crypto_wrap.c: In function 'pkey_as_der':
> 132	:info:build SWIG/_m2crypto_wrap.c:4300: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 133	:info:build SWIG/_m2crypto_wrap.c: In function 'pkey_get_modulus':
> 134	:info:build SWIG/_m2crypto_wrap.c:4333: warning: value computed is not used
> 135	:info:build SWIG/_m2crypto_wrap.c:4358: warning: value computed is not used
> 136	:info:build SWIG/_m2crypto_wrap.c: In function 'AES_crypt':
> 137	:info:build SWIG/_m2crypto_wrap.c:4444: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 138	:info:build SWIG/_m2crypto_wrap.c: At top level:
> 139	:info:build SWIG/_m2crypto_wrap.c:5846: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before '*' token
> 140	:info:build SWIG/_m2crypto_wrap.c:5850: error: expected ')' before '*' token
> 141	:info:build SWIG/_m2crypto_wrap.c:5854: error: expected ')' before '*' token
> 142	:info:build SWIG/_m2crypto_wrap.c:5858: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before '*' token
> 143	:info:build SWIG/_m2crypto_wrap.c:5862: error: expected ')' before '*' token
> 144	:info:build SWIG/_m2crypto_wrap.c:5866: error: expected ')' before '*' token
> 145	:info:build SWIG/_m2crypto_wrap.c: In function 'i2d_x509':
> 146	:info:build SWIG/_m2crypto_wrap.c:5942: warning: pointer targets
> in passing argument 1 of 'PyString_FromStringAndSize' differ in
> signedness
> 147	:info:build SWIG/_m2crypto_wrap.c: In function 'x509_name_set_by_nid':
> 148	:info:build SWIG/_m2crypto_wrap.c:6023: warning: pointer targets
> in passing argument 4 of 'X509_NAME_add_entry_by_NID' differ in
> signedness
> 149	:info:build SWIG/_m2crypto_wrap.c: In function 'x509_name_add_entry_by_txt':
> 150	:info:build SWIG/_m2crypto_wrap.c:6028: warning: pointer targets
> in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in
> signedness
> 151	:info:build SWIG/_m2crypto_wrap.c: At top level:
> 152	:info:build SWIG/_m2crypto_wrap.c:6038: error: expected '=', ',',
> ';', 'asm' or '__attribute__' before '*' token
> 153	:info:build SWIG/_m2crypto_wrap.c:6043: error: expected ')' before '*' token
> 154	:info:build SWIG/_m2crypto_wrap.c:6048: error: expected ')' before '*' token
> 155	:info:build SWIG/_m2crypto_wrap.c:6053: error: expected ')' before '*' token


>> On Friday, July 16, 2010 3:09 AM Heikki Toivonen wrote:

>> On 07/13/2010 02:18 PM, Adam Mercer wrote:
>> 
>> That version of M2Crypto does not work with OpenSSL 1.0.x because
>> OpenSSL changed APIs. M2Crypto trunk works, as will the next M2Crypto
>> release. So at this time, you should check out M2Crypto from the
>> Subversion repository. See
>> http://chandlerproject.org/Projects/MeTooCrypto for details on how to
>> get the sources.
>> 
>> --
>> Heikki Toivonen - http://heikkitoivonen.net


>>> On Friday, July 16, 2010 11:18 AM Adam Mercer wrote:

>>> Thanks any ETA on a new release supporting OpenSSL 1.0.x?
>>> 
>>> Cheers
>>> 
>>> Adam


>>>> On Saturday, July 17, 2010 3:20 PM Heikki Toivonen wrote:

>>>> On 07/16/2010 08:18 AM, Adam Mercer wrote:
>>>> 
>>>> I was actually planning on doing a release by the end of June, but life
>>>> happened. Maybe by the end of August...
>>>> 
>>>> --
>>>> Heikki Toivonen - http://heikkitoivonen.net


>>>>> On Saturday, July 17, 2010 8:15 PM Adam Mercer wrote:

>>>>> Know what whats like :-) I have backported the OpenSSL patches for the
>>>>> MacPorts port so for the time being this particular fire has been put
>>>>> out.
>>>>> 
>>>>> Cheers
>>>>> 
>>>>> Adam


>>>>> Submitted via EggHeadCafe 
>>>>> Oracle Developer For Beginners
>>>>> http://www.eggheadcafe.com/training-topic-area/Oracle-SQL-Developer/2/Oracle-SQL-Samples.aspx



More information about the Python-list mailing list