Re: MCrypto2 build problems for 0.15 tag
Ian Stokes-Rees <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes
i.stokes-rees1.vcf
(text/x-vcard, 338 B)
begin:vcard fn:Ian Stokes-Rees n:Stokes-Rees;Ian org:University of Oxford;Particle Physics adr:;;Keble Road;Oxford;;OX1 3RH;UK email;internet:[email protected] tel;work:+44 1865 283 111 tel;fax:+44 1865 273 418 tel;cell:+44 7989 947 217 x-mozilla-html:FALSE url:http://grid.physics.ox.ac.uk/~stokes/ version:2.1 end:vcard