Description of problem: I attempted to patch M2Crypto 0.21 on el5, below are the compile errors. I think we need to use M2Crypto 0.16 instead. Compile Error: building 'M2Crypto.__m2crypto' extension swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c swig -python -I/usr/include/python2.4 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i /usr/include/openssl/opensslconf-x86_64.h:5: Warning(205): CPP #error ""Don't include this file directly, use <openssl/opensslconf.h> instead!"". SWIG/_bio.i:64: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_rand.i:21: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_evp.i:160: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_dh.i:36: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_rsa.i:43: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_dsa.i:31: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_ssl.i:228: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_ssl.i:229: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_x509.i:361: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_pkcs7.i:44: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_pkcs7.i:44: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_util.i:11: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_engine.i:168: Warning(454): Setting a pointer/reference variable may leak memory. creating build/temp.linux-x86_64-2.4 creating build/temp.linux-x86_64-2.4/SWIG gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/kerberos/include -fPIC -I/usr/include/python2.4 -I/usr/include -I/usr/src/redhat/BUILD/M2Crypto-0.21.1.pulp/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-2.4/SWIG/_m2crypto_wrap.o -DTHREADING In file included from SWIG/_m2crypto_wrap.c:2529: /usr/src/redhat/BUILD/M2Crypto-0.21.1.pulp/SWIG/_lib.h:18: error: expected declaration specifiers or '...' before 'Py_buffer' /usr/src/redhat/BUILD/M2Crypto-0.21.1.pulp/SWIG/_lib.h:19: error: expected ')' before '*' token /usr/src/redhat/BUILD/M2Crypto-0.21.1.pulp/SWIG/_lib.h:33: error: expected declaration specifiers or '...' before 'Py_buffer' SWIG/_m2crypto_wrap.c:2898: error: expected declaration specifiers or '...' before 'Py_buffer' SWIG/_m2crypto_wrap.c: In function 'PyObject_GetBuffer': SWIG/_m2crypto_wrap.c:2905: error: 'view' undeclared (first use in this function) SWIG/_m2crypto_wrap.c:2905: error: (Each undeclared identifier is reported only once SWIG/_m2crypto_wrap.c:2905: error: for each function it appears in.) SWIG/_m2crypto_wrap.c: At top level: SWIG/_m2crypto_wrap.c:2911: error: expected ')' before '*' token SWIG/_m2crypto_wrap.c:2936: error: expected declaration specifiers or '...' before 'Py_buffer' SWIG/_m2crypto_wrap.c: In function 'm2_PyObject_GetBufferInt': SWIG/_m2crypto_wrap.c:2940: error: 'view' undeclared (first use in this function) SWIG/_m2crypto_wrap.c:2940: error: too many arguments to function 'PyObject_GetBuffer' SWIG/_m2crypto_wrap.c:2945: warning: implicit declaration of function 'PyBuffer_Release' SWIG/_m2crypto_wrap.c: In function 'hmac_init': SWIG/_m2crypto_wrap.c:3837: error: wrong type argument to unary exclamation mark SWIG/_m2crypto_wrap.c: In function 'hmac_update': SWIG/_m2crypto_wrap.c:3852: error: wrong type argument to unary exclamation mark SWIG/_m2crypto_wrap.c: In function 'hmac_final': SWIG/_m2crypto_wrap.c:3869: error: wrong type argument to unary exclamation mark SWIG/_m2crypto_wrap.c: In function 'pkey_get_modulus': SWIG/_m2crypto_wrap.c:4142: warning: value computed is not used SWIG/_m2crypto_wrap.c:4167: warning: value computed is not used SWIG/_m2crypto_wrap.c: In function 'ssl_write': SWIG/_m2crypto_wrap.c:5691: error: 'Py_buffer' undeclared (first use in this function) SWIG/_m2crypto_wrap.c:5691: error: expected ';' before 'buf' SWIG/_m2crypto_wrap.c:5696: error: 'buf' undeclared (first use in this function) SWIG/_m2crypto_wrap.c:5696: error: too many arguments to function 'm2_PyObject_GetBufferInt' SWIG/_m2crypto_wrap.c: In function 'ssl_write_nbio': SWIG/_m2crypto_wrap.c:5737: error: 'Py_buffer' undeclared (first use in this function) SWIG/_m2crypto_wrap.c:5737: error: expected ';' before 'buf' SWIG/_m2crypto_wrap.c:5741: error: 'buf' undeclared (first use in this function) SWIG/_m2crypto_wrap.c:5741: error: too many arguments to function 'm2_PyObject_GetBufferInt' error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.67229 (%build)
As we are no longer supporting the pulp server on RHEL5, this bug is no longer an issue.