[Zope] m2crypto

David Kyte david.kyte@microamps.com
Tue, 17 Apr 2001 18:48:12 +0100


I am having trouble compile m2crypto on redhat 6.2.

Makefile and compile output below:

any help appreciated

Thanks


-------------


[root@ajp swig]# vi Makefile.py1

# $Id$

CFLAGS     = -DTHREADING -g
INCLUDE    = -I/usr/local/ssl/include -I.
LIBS       = -L/usr/local/ssl/lib -lssl -lcrypto
PYVER      = 1.5
PYINCLUDE  = -DHAVE_CONFIG_H -I/usr/local/include/python$(PYVER) \
    -I/usr/local/lib/python$(PYVER)/config
PYLIB      = /usr/local/lib/python$(PYVER)/config

all:    _m2crypto

_m2crypto:  _m2crypto.i
    swig -shadow -python _m2crypto.i
    cc -c -fpic $(CFLAGS) $(INCLUDE) $(PYINCLUDE) _m2crypto_wrap.c
    ld -Bshareable -o _m2cryptoc.so _m2crypto_wrap.o $(LIBS)
    cp _m2crypto.py _m2cryptoc.so _m2crypto_wrap.doc ../M2Crypto

clean:
    rm -f *_wrap* *.o *.so _*.py *.pyc

~
~
"Makefile.py1" 21L, 605C written
[root@ajp swig]# make -f Makefile.py1
swig -shadow -python _m2crypto.i
Generating wrappers for Python
cc -c -fpic -DTHREADING -g -I/usr/local/ssl/include -I. -DHAVE_CONFIG_H -I/u
sr/local/include/python1.5 -I/usr/local/lib/python1.5/config
_m2crypto_wrap.c
_m2crypto_wrap.c: In function `rand_bytes':
_m2crypto_wrap.c:1110: void value not ignored as it ought to be
_m2crypto_wrap.c: In function `hmac_update':
_m2crypto_wrap.c:1321: warning: passing arg 2 of `HMAC_Update' discards
`const' from pointer target type
_m2crypto_wrap.c: In function `hmac':
_m2crypto_wrap.c:1385: warning: passing arg 4 of `HMAC' discards `const'
from pointer target type
_m2crypto_wrap.c: In function `rc4_set_key':
_m2crypto_wrap.c:1650: warning: passing arg 3 of `RC4_set_key' discards
`const' from pointer target type
_m2crypto_wrap.c: In function `rc4_update':
_m2crypto_wrap.c:1675: warning: passing arg 3 of `RC4' discards `const' from
pointer target type
_m2crypto_wrap.c: At top level:
_m2crypto_wrap.c:1692: conflicting types for `DHparams_print'
/usr/local/ssl/include/openssl/dh.h:132: previous declaration of
`DHparams_print'
_m2crypto_wrap.c: In function `rsa_read_pub_key':
_m2crypto_wrap.c:1917: warning: return makes pointer from integer without a
cast
_m2crypto_wrap.c: At top level:
_m2crypto_wrap.c:2615: conflicting types for `SSL_CTX_set_cipher_list'
/usr/local/ssl/include/openssl/ssl.h:870: previous declaration of
`SSL_CTX_set_cipher_list'
_m2crypto_wrap.c:2639: conflicting types for `SSL_set_cipher_list'
/usr/local/ssl/include/openssl/ssl.h:902: previous declaration of
`SSL_set_cipher_list'
_m2crypto_wrap.c: In function `bio_set_ssl':
_m2crypto_wrap.c:2789: `SSL_MODE_AUTO_RETRY' undeclared (first use in this
function)
_m2crypto_wrap.c:2789: (Each undeclared identifier is reported only once
_m2crypto_wrap.c:2789: for each function it appears in.)
_m2crypto_wrap.c: In function `pkcs7_encrypt':
_m2crypto_wrap.c:3295: warning: return makes pointer from integer without a
cast
_m2crypto_wrap.c: In function `pkcs7_sign0':
_m2crypto_wrap.c:3323: warning: return makes pointer from integer without a
cast
_m2crypto_wrap.c: In function `pkcs7_sign1':
_m2crypto_wrap.c:3327: warning: return makes pointer from integer without a
cast
_m2crypto_wrap.c: In function `smime_write_pkcs7_multi':
_m2crypto_wrap.c:3360: `PKCS7_DETACHED' undeclared (first use in this
function)
_m2crypto_wrap.c: In function `smime_read_pkcs7':
_m2crypto_wrap.c:3373: warning: assignment makes pointer from integer
without a cast
_m2crypto_wrap.c: In function `smime_crlf_copy':
_m2crypto_wrap.c:3416: `PKCS7_TEXT' undeclared (first use in this function)
make: *** [_m2crypto] Error 1
[root@ajp swig]#