[PYTHON-CRYPTO] MCrypto2 build problems for 0.15 tag

Ian Stokes-Rees i.stokes-rees1 at PHYSICS.OX.AC.UK
Wed Oct 26 13:59:24 CEST 2005


Hi Conrad,

Conrad Steenberg wrote:
> OpenSSL have been going through a "const"-ifying exercise lately that
> m2crypto keeps getting bitten by.
> 
> If you look in http://131.215.116.185/RPM/PKG/ there's a .src.rpm with
> patches to make m2crypto compile against openssl-0.9.7g, swig-1.3.24,
> and python-2.4.2.

Thanks for this.  I still end up with 3 pesky errors.  I'm not using 
OpenPKG, so I have to manually apply the patches 
(m2crypto-0.11.getkey.diff, patch.makefile3, openssl-0.9.8a.diff) and 
fix the Makefile.  The errors are:

_m2crypto_wrap.c:5129: conflicting types for `c2i_ASN1_OBJECT'
openssl/asn1.h:704: previous declaration of  `c2i_ASN1_OBJECT'

_m2crypto_wrap.c:5130: conflicting types for `d2i_ASN1_OBJECT'
openssl/asn1.h:706: previous declaration of  `d2i_ASN1_OBJECT'

_m2crypto_wrap.c:5140: conflicting types for `ASN1_UTCTIME_set_string'
openssl/asn1.h:759: previous declaration of  `ASN1_UTCTIME_set_string'

and one SWIG error (repeated many many times):

Warning(121): %name is deprecated.  Use %rename instead.

If I comment out the problematic declarations in _m2crypto_wrap.c the 
errors turn into warnings:

_m2crypto_wrap.c:16371: warning: passing arg 2 of `c2i_ASN1_OBJECT' from 
incompatible pointer type

_m2crypto_wrap.c:16399: warning: passing arg 2 of `d2i_ASN1_OBJECT' from 
incompatible pointer type

_m2crypto_wrap.c:16642: warning: passing arg 2 of 
`ASN1_UTCTIME_set_string' discards qualifiers from pointer target type

But those sound dangerous.  What am I doing wrong?

TIA, Ian

-- 
Ian Stokes-Rees                 i.stokes-rees at physics.ox.ac.uk
Particle Physics, Oxford        http://www-pnp.physics.ox.ac.uk/~stokes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i.stokes-rees1.vcf
Type: text/x-vcard
Size: 338 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-crypto/attachments/20051026/c464a96a/attachment.vcf>


More information about the python-crypto mailing list