m2crypto-0.12-snap1 COMPILE ERRORS

R

Roberto

Hi there,
i'm trying to compile m2crypto-0.12-snap1 in the following
environment:

Mingw32
OpenSSL
python 2.2
swig

I have changed path correctly in setup.py and even tried to compile
with swig/Makefile.mw but i'm still getting a lot of warnings and the
final errors:

error: command 'gcc' failed with exit status 1

Please Help !
Roberto
 
N

Ng Pheng Siong

According to Roberto said:
i'm trying to compile m2crypto-0.12-snap1
error: command 'gcc' failed with exit status 1
Please Help !

Hi,

It'll be easier to help if you include the output.

Cheers.
 
R

Roberto

Hi,

It'll be easier to help if you include the output.

Cheers.

Thanks for the reply,
Here i post some if the warning (too long for posting here) errors
seems to e regarding swig:

....many warnings...
SWIG/_m2crypto_wrap.c:11884: `NID_pkcs7_data' undeclared here (not in
a function
)
SWIG/_m2crypto_wrap.c:11884: initializer element is not constant
SWIG/_m2crypto_wrap.c:11884: (near initialization for
`swig_const_table[102].lva
lue')
SWIG/_m2crypto_wrap.c:11884: initializer element is not constant
SWIG/_m2crypto_wrap.c:11884: (near initialization for
`swig_const_table[102]')
SWIG/_m2crypto_wrap.c:11885: initializer element is not constant
SWIG/_m2crypto_wrap.c:11885: (near initialization for
`swig_const_table[103]')
SWIG/_m2crypto_wrap.c:11886: initializer element is not constant
SWIG/_m2crypto_wrap.c:11886: (near initialization for
`swig_const_table[104]')
SWIG/_m2crypto_wrap.c:11887: initializer element is not constant
SWIG/_m2crypto_wrap.c:11887: (near initialization for
`swig_const_table[105]')
SWIG/_m2crypto_wrap.c:754: storage size of `lock_cs' isn't known
SWIG/_m2crypto_wrap.c:755: storage size of `lock_count' isn't known
SWIG/_m2crypto_wrap.c:170: warning: `SWIG_TypeDynamicCast' defined but
not used
SWIG/_m2crypto_wrap.c:182: warning: `SWIG_TypeName' defined but not
used
SWIG/_m2crypto_wrap.c:188: warning: `SWIG_TypeQuery' defined but not
used
SWIG/_m2crypto_wrap.c:515: warning: `SWIG_ConvertPacked' defined but
not used
SWIG/_m2crypto_wrap.c:684: warning: `RCS_id' defined but not used
SWIG/_m2crypto_wrap.c:754: warning: `lock_cs' defined but not used
SWIG/_m2crypto_wrap.c:755: warning: `lock_count' defined but not used
error: command 'gcc' failed with exit status 1

then the last error come up.

Please help i can't compile or find a binary on the web for this
version.
Thanks again,
Roberto
 
N

Ng Pheng Siong

According to Roberto said:
...many warnings...
SWIG/_m2crypto_wrap.c:11884: `NID_pkcs7_data' undeclared here (not in
a function)

What is the version of OpenSSL you're compiling with?

M2Crypto needs 0.9.7[abc], which are not fully backward compatible with
earlier versions like 0.9.6.
 
R

Roberto

Thanks for reply,

Here is my environement:

Openssl-0.9.7c (ActivePerl-5.6.1.635)
Swigwin-1.3.19
Python 2.2
MinGW-3.1.0-1

m2crypto-0.12-snap1

It must be all the last versions,
Thanks,
Roberto

According to Roberto said:
...many warnings...
SWIG/_m2crypto_wrap.c:11884: `NID_pkcs7_data' undeclared here (not in
a function)

What is the version of OpenSSL you're compiling with?

M2Crypto needs 0.9.7[abc], which are not fully backward compatible with
earlier versions like 0.9.6.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top