I had a similar problem back in 2007. See
http://bytes.com/topic/python/answers/613336-more-m2crypto-build-problems
Also see
http://bytes.com/topic/python/answers/711381-m2crypto-0-18-new-version-same-old-build-bugs
There have been problems with SWIG. There have been problems with
how OpenSSL was built (with or without elliptic curve crypto support).
And there were some issues with building on 64-bit hardware running
32-bit operating systems, because the build script was checking
the wrong system configuration parameter.
Not sure what problem you're having with Mac OS X. From the
errors, though, I suspect that not all the components involved
are consistent with 32/64 bit width.
John Nagle
On 7/14/2010 10:05 PM, Adam Mercer wrote:
Anyone have any ideas about this?
Cheers
Adam
On Tue, Jul 13, 2010 at 16:18, Adam Mercer<ramer...@gmail.com> wrote:
Hi
I'm trying to build M2Crypto on Mac OS X 10.6.4 against python2.5
(python2.6 fails in the same way), with SWIG 2.0.0 and OpenSSL 1.0.0a
and it is failing with the following:
105 :info:build swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
106 :info:build swig -python
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-I/opt/local/include -includeall -o SWIG/_m2crypto_wrap.c
SWIG/_m2crypto.i
107 :info:build SWIG/_bio.i:64: Warning 454: Setting a
pointer/reference variable may leak memory.
108 :info:build SWIG/_rand.i:19: Warning 454: Setting a
pointer/reference variable may leak memory.
109 :info:build SWIG/_evp.i:156: Warning 454: Setting a
pointer/reference variable may leak memory.
110 :info:build SWIG/_dh.i:36: Warning 454: Setting a
pointer/reference variable may leak memory.
111 :info:build SWIG/_rsa.i:43: Warning 454: Setting a
pointer/reference variable may leak memory.
112 :info:build SWIG/_dsa.i:31: Warning 454: Setting a
pointer/reference variable may leak memory.
113 :info:build SWIG/_ssl.i:207: Warning 454: Setting a
pointer/reference variable may leak memory.
114 :info:build SWIG/_x509.i:313: Warning 454: Setting a
pointer/reference variable may leak memory.
115 :info:build SWIG/_pkcs7.i:42: Warning 454: Setting a
pointer/reference variable may leak memory.
116 :info:build SWIG/_pkcs7.i:42: Warning 454: Setting a
pointer/reference variable may leak memory.
117 :info:build SWIG/_util.i:9: Warning 454: Setting a
pointer/reference variable may leak memory.
118 :info:build SWIG/_ec.i:111: Warning 454: Setting a
pointer/reference variable may leak memory.
119 :info:build SWIG/_engine.i:162: Warning 454: Setting a
pointer/reference variable may leak memory.
120 :info:build creating build/temp.macosx-10.6-x86_64-2.5
121 :info:build creating build/temp.macosx-10.6-x86_64-2.5/SWIG
122 :info:build /usr/bin/gcc-4.2 -fno-strict-aliasing -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-I/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-m2crypto/work/M2Crypto-0.20.2/SWIG
-c SWIG/_m2crypto_wrap.c -o
build/temp.macosx-10.6-x86_64-2.5/SWIG/_m2crypto_wrap.o -DTHREADING
123 :info:build SWIG/_m2crypto_wrap.c: In function 'rand_pseudo_bytes':
124 :info:build SWIG/_m2crypto_wrap.c:3899: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
125 :info:build SWIG/_m2crypto_wrap.c: In function 'pkcs5_pbkdf2_hmac_sha1':
126 :info:build SWIG/_m2crypto_wrap.c:3973: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
127 :info:build SWIG/_m2crypto_wrap.c: In function 'bytes_to_key':
128 :info:build SWIG/_m2crypto_wrap.c:4132: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
129 :info:build SWIG/_m2crypto_wrap.c: In function 'sign_final':
130 :info:build SWIG/_m2crypto_wrap.c:4228: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
131 :info:build SWIG/_m2crypto_wrap.c: In function 'pkey_as_der':
132 :info:build SWIG/_m2crypto_wrap.c:4300: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
133 :info:build SWIG/_m2crypto_wrap.c: In function 'pkey_get_modulus':
134 :info:build SWIG/_m2crypto_wrap.c:4333: warning: value computed is not
used
135 :info:build SWIG/_m2crypto_wrap.c:4358: warning: value computed is not
used
136 :info:build SWIG/_m2crypto_wrap.c: In function 'AES_crypt':
137 :info:build SWIG/_m2crypto_wrap.c:4444: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
138 :info:build SWIG/_m2crypto_wrap.c: At top level:
139 :info:build SWIG/_m2crypto_wrap.c:5846: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
140 :info:build SWIG/_m2crypto_wrap.c:5850: error: expected ')' before '*'
token
141 :info:build SWIG/_m2crypto_wrap.c:5854: error: expected ')' before '*'
token
142 :info:build SWIG/_m2crypto_wrap.c:5858: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
143 :info:build SWIG/_m2crypto_wrap.c:5862: error: expected ')' before '*'
token
144 :info:build SWIG/_m2crypto_wrap.c:5866: error: expected ')' before '*'
token
145 :info:build SWIG/_m2crypto_wrap.c: In function 'i2d_x509':
146 :info:build SWIG/_m2crypto_wrap.c:5942: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
147 :info:build SWIG/_m2crypto_wrap.c: In function 'x509_name_set_by_nid':
148 :info:build SWIG/_m2crypto_wrap.c:6023: warning: pointer targets
in passing argument 4 of 'X509_NAME_add_entry_by_NID' differ in
signedness
149 :info:build SWIG/_m2crypto_wrap.c: In function
'x509_name_add_entry_by_txt':
150 :info:build SWIG/_m2crypto_wrap.c:6028: warning: pointer targets
in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in
signedness
151 :info:build SWIG/_m2crypto_wrap.c: At top level:
152 :info:build SWIG/_m2crypto_wrap.c:6038: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
153 :info:build SWIG/_m2crypto_wrap.c:6043: error: expected ')' before '*'
token
154 :info:build SWIG/_m2crypto_wrap.c:6048: error: expected ')' before '*'
token
155 :info:build SWIG/_m2crypto_wrap.c:6053: error: expected ')' before '*'
token
156 :info:build SWIG/_m2crypto_wrap.c:6081: error: expected
declaration specifiers or '...' before 'STACK'
157 :info:build SWIG/_m2crypto_wrap.c: In function
'x509_req_add_extensions':
158 :info:build SWIG/_m2crypto_wrap.c:6082: error: 'exts' undeclared
(first use in this function)
159 :info:build SWIG/_m2crypto_wrap.c:6082: error: (Each undeclared
identifier is reported only once
160 :info:build SWIG/_m2crypto_wrap.c:6082: error: for each function
it appears in.)
161 :info:build SWIG/_m2crypto_wrap.c: In function
'x509_name_entry_create_by_txt':
162 :info:build SWIG/_m2crypto_wrap.c:6086: warning: pointer targets
in passing argument 4 of 'X509_NAME_ENTRY_create_by_txt' differ in
signedness
163 :info:build SWIG/_m2crypto_wrap.c: At top level:
164 :info:build SWIG/_m2crypto_wrap.c:6089: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
165 :info:build SWIG/_m2crypto_wrap.c:6095: error: expected ')' before '*'
token
166 :info:build SWIG/_m2crypto_wrap.c:6105: error: expected ')' before '*'
token
167 :info:build SWIG/_m2crypto_wrap.c:6131: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
168 :info:build SWIG/_m2crypto_wrap.c:6136: error: expected ')' before '*'
token
169 :info:build SWIG/_m2crypto_wrap.c:6141: error: expected ')' before '*'
token
170 :info:build SWIG/_m2crypto_wrap.c:6146: error: expected ')' before '*'
token
171 :info:build SWIG/_m2crypto_wrap.c:6151: error: expected ')' before '*'
token
172 :info:build SWIG/_m2crypto_wrap.c:6156: error: expected ')' before '*'
token
173 :info:build SWIG/_m2crypto_wrap.c:6178: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
174 :info:build SWIG/_m2crypto_wrap.c:6204: error: expected ')' before '*'
token
175 :info:build SWIG/_m2crypto_wrap.c:6347: error: expected ')' before '*'
token
176 :info:build SWIG/_m2crypto_wrap.c:6385: error: expected
declaration specifiers or '...' before 'STACK'
177 :info:build SWIG/_m2crypto_wrap.c: In function 'pkcs7_sign1':
178 :info:build SWIG/_m2crypto_wrap.c:6386: error: 'stack' undeclared
(first use in this function)
179 :info:build SWIG/_m2crypto_wrap.c: At top level:
180 :info:build SWIG/_m2crypto_wrap.c:6390: error: expected
declaration specifiers or '...' before 'STACK'
181 :info:build SWIG/_m2crypto_wrap.c: In function 'pkcs7_verify1':
182 :info:build SWIG/_m2crypto_wrap.c:6400: error: 'stack' undeclared
(first use in this function)
183 :info:build SWIG/_m2crypto_wrap.c: At top level:
184 :info:build SWIG/_m2crypto_wrap.c:6418: error: expected
declaration specifiers or '...' before 'STACK'
185 :info:build SWIG/_m2crypto_wrap.c: In function 'pkcs7_verify0':
186 :info:build SWIG/_m2crypto_wrap.c:6419: error: 'stack' undeclared
(first use in this function)
187 :info:build SWIG/_m2crypto_wrap.c:6419: warning: passing argument
3 of 'pkcs7_verify1' from incompatible pointer type
188 :info:build SWIG/_m2crypto_wrap.c:6419: warning: passing argument
4 of 'pkcs7_verify1' makes integer from pointer without a cast
189 :info:build SWIG/_m2crypto_wrap.c:6419: error: too many arguments
to function 'pkcs7_verify1'
190 :info:build SWIG/_m2crypto_wrap.c: At top level:
191 :info:build SWIG/_m2crypto_wrap.c:6502: error: expected '=', ',',
';', 'asm' or '__attribute__' before '*' token
192 :info:build SWIG/_m2crypto_wrap.c: In function 'util_string_to_hex':
193 :info:build SWIG/_m2crypto_wrap.c:6553: warning: pointer targets
in passing argument 1 of 'PyString_FromStringAndSize' differ in
signedness
194 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_ssl_get_ciphers':
195 :info:build SWIG/_m2crypto_wrap.c:16900: error: 'STACK' undeclared
(first use in this function)
196 :info:build SWIG/_m2crypto_wrap.c:16900: error: 'result'
undeclared (first use in this function)
197 :info:build SWIG/_m2crypto_wrap.c:16913: error: expected
expression before ')' token
198 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_ssl_cipher_num':
199 :info:build SWIG/_m2crypto_wrap.c:16923: error: 'STACK' undeclared
(first use in this function)
200 :info:build SWIG/_m2crypto_wrap.c:16923: error: 'arg1' undeclared
(first use in this function)
201 :info:build SWIG/_m2crypto_wrap.c:16923: error: expected
expression before ')' token
202 :info:build SWIG/_m2crypto_wrap.c:16934: error: expected
expression before ')' token
203 :info:build SWIG/_m2crypto_wrap.c:16940: warning: implicit
declaration of function 'sk_ssl_cipher_num'
204 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_ssl_cipher_value':
205 :info:build SWIG/_m2crypto_wrap.c:16953: error: 'STACK' undeclared
(first use in this function)
206 :info:build SWIG/_m2crypto_wrap.c:16953: error: 'arg1' undeclared
(first use in this function)
207 :info:build SWIG/_m2crypto_wrap.c:16953: error: expected
expression before ')' token
208 :info:build SWIG/_m2crypto_wrap.c:16968: error: expected
expression before ')' token
209 :info:build SWIG/_m2crypto_wrap.c:16979: warning: implicit
declaration of function 'sk_ssl_cipher_value'
210 :info:build SWIG/_m2crypto_wrap.c:16979: warning: cast to pointer
from integer of different size
211 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_ssl_get_peer_cert_chain':
212 :info:build SWIG/_m2crypto_wrap.c:16993: error: 'STACK' undeclared
(first use in this function)
213 :info:build SWIG/_m2crypto_wrap.c:16993: error: 'result'
undeclared (first use in this function)
214 :info:build SWIG/_m2crypto_wrap.c:17006: error: expected
expression before ')' token
215 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_sk_x509_num':
216 :info:build SWIG/_m2crypto_wrap.c:17016: error: 'STACK' undeclared
(first use in this function)
217 :info:build SWIG/_m2crypto_wrap.c:17016: error: 'arg1' undeclared
(first use in this function)
218 :info:build SWIG/_m2crypto_wrap.c:17016: error: expected
expression before ')' token
219 :info:build SWIG/_m2crypto_wrap.c:17027: error: expected
expression before ')' token
220 :info:build SWIG/_m2crypto_wrap.c:17033: warning: implicit
declaration of function 'sk_x509_num'
221 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_sk_x509_value':
222 :info:build SWIG/_m2crypto_wrap.c:17046: error: 'STACK' undeclared
(first use in this function)
223 :info:build SWIG/_m2crypto_wrap.c:17046: error: 'arg1' undeclared
(first use in this function)
224 :info:build SWIG/_m2crypto_wrap.c:17046: error: expected
expression before ')' token
225 :info:build SWIG/_m2crypto_wrap.c:17061: error: expected
expression before ')' token
226 :info:build SWIG/_m2crypto_wrap.c:17072: warning: implicit
declaration of function 'sk_x509_value'
227 :info:build SWIG/_m2crypto_wrap.c:17072: warning: cast to pointer
from integer of different size
228 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_x509_name_entry_set_data':
229 :info:build SWIG/_m2crypto_wrap.c:19133: warning: pointer targets
in assignment differ in signedness
230 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_x509_store_ctx_get1_chain':
231 :info:build SWIG/_m2crypto_wrap.c:19733: error: 'STACK' undeclared
(first use in this function)
232 :info:build SWIG/_m2crypto_wrap.c:19733: error: 'result'
undeclared (first use in this function)
233 :info:build SWIG/_m2crypto_wrap.c:19741: error: expected
expression before ')' token
234 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_sk_x509_new_null':
235 :info:build SWIG/_m2crypto_wrap.c:20570: error: 'STACK' undeclared
(first use in this function)
236 :info:build SWIG/_m2crypto_wrap.c:20570: error: 'result'
undeclared (first use in this function)
237 :info:build SWIG/_m2crypto_wrap.c:20573: error: expected
expression before ')' token
238 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_sk_x509_free':
239 :info:build SWIG/_m2crypto_wrap.c:20583: error: 'STACK' undeclared
(first use in this function)
240 :info:build SWIG/_m2crypto_wrap.c:20583: error: 'arg1' undeclared
(first use in this function)
241 :info:build SWIG/_m2crypto_wrap.c:20583: error: expected
expression before ')' token
242 :info:build SWIG/_m2crypto_wrap.c:20593: error: expected
expression before ')' token
243 :info:build SWIG/_m2crypto_wrap.c:20599: warning: implicit
declaration of function 'sk_x509_free'
244 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_sk_x509_push':
245 :info:build SWIG/_m2crypto_wrap.c:20609: error: 'STACK' undeclared
(first use in this function)
246 :info:build SWIG/_m2crypto_wrap.c:20609: error: 'arg1' undeclared
(first use in this function)
247 :info:build SWIG/_m2crypto_wrap.c:20609: error: expected
expression before ')' token
248 :info:build SWIG/_m2crypto_wrap.c:20624: error: expected
expression before ')' token
249 :info:build SWIG/_m2crypto_wrap.c:20640: warning: implicit
declaration of function 'sk_x509_push'
250 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_sk_x509_pop':
251 :info:build SWIG/_m2crypto_wrap.c:20653: error: 'STACK' undeclared
(first use in this function)
252 :info:build SWIG/_m2crypto_wrap.c:20653: error: 'arg1' undeclared
(first use in this function)
253 :info:build SWIG/_m2crypto_wrap.c:20653: error: expected
expression before ')' token
254 :info:build SWIG/_m2crypto_wrap.c:20664: error: expected
expression before ')' token
255 :info:build SWIG/_m2crypto_wrap.c:20670: warning: implicit
declaration of function 'sk_x509_pop'
256 :info:build SWIG/_m2crypto_wrap.c:20670: warning: cast to pointer
from integer of different size
257 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_x509_req_add_extensions':
258 :info:build SWIG/_m2crypto_wrap.c:20871: error: 'STACK' undeclared
(first use in this function)
259 :info:build SWIG/_m2crypto_wrap.c:20871: error: 'arg2' undeclared
(first use in this function)
260 :info:build SWIG/_m2crypto_wrap.c:20871: error: expected
expression before ')' token
261 :info:build SWIG/_m2crypto_wrap.c:20890: error: expected
expression before ')' token
262 :info:build SWIG/_m2crypto_wrap.c:20901: error: too many arguments
to function 'x509_req_add_extensions'
263 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_x509v3_lhash':
264 :info:build SWIG/_m2crypto_wrap.c:20978: error: 'LHASH' undeclared
(first use in this function)
265 :info:build SWIG/_m2crypto_wrap.c:20978: error: 'result'
undeclared (first use in this function)
266 :info:build SWIG/_m2crypto_wrap.c:20981: error: expected
expression before ')' token
267 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_x509v3_set_conf_lhash':
268 :info:build SWIG/_m2crypto_wrap.c:20991: error: 'LHASH' undeclared
(first use in this function)
269 :info:build SWIG/_m2crypto_wrap.c:20991: error: 'arg1' undeclared
(first use in this function)
270 :info:build SWIG/_m2crypto_wrap.c:20991: error: expected
expression before ')' token
271 :info:build SWIG/_m2crypto_wrap.c:21002: error: expected
expression before ')' token
272 :info:build SWIG/_m2crypto_wrap.c:21003: warning: implicit
declaration of function 'x509v3_set_conf_lhash'
273 :info:build SWIG/_m2crypto_wrap.c:21003: warning: cast to pointer
from integer of different size
274 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_x509v3_ext_conf':
275 :info:build SWIG/_m2crypto_wrap.c:21013: error: 'LHASH' undeclared
(first use in this function)
276 :info:build SWIG/_m2crypto_wrap.c:21013: error: 'arg1' undeclared
(first use in this function)
277 :info:build SWIG/_m2crypto_wrap.c:21013: error: expected
expression before ')' token
278 :info:build SWIG/_m2crypto_wrap.c:21038: error: expected
expression before ')' token
279 :info:build SWIG/_m2crypto_wrap.c:21054: warning: implicit
declaration of function 'x509v3_ext_conf'
280 :info:build SWIG/_m2crypto_wrap.c:21054: warning: cast to pointer
from integer of different size
281 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_x509_extension_new_null':
282 :info:build SWIG/_m2crypto_wrap.c:21113: error: 'STACK' undeclared
(first use in this function)
283 :info:build SWIG/_m2crypto_wrap.c:21113: error: 'result'
undeclared (first use in this function)
284 :info:build SWIG/_m2crypto_wrap.c:21116: error: expected
expression before ')' token
285 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_x509_extension_free':
286 :info:build SWIG/_m2crypto_wrap.c:21126: error: 'STACK' undeclared
(first use in this function)
287 :info:build SWIG/_m2crypto_wrap.c:21126: error: 'arg1' undeclared
(first use in this function)
288 :info:build SWIG/_m2crypto_wrap.c:21126: error: expected
expression before ')' token
289 :info:build SWIG/_m2crypto_wrap.c:21136: error: expected
expression before ')' token
290 :info:build SWIG/_m2crypto_wrap.c:21142: warning: implicit
declaration of function 'sk_x509_extension_free'
291 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_x509_extension_push':
292 :info:build SWIG/_m2crypto_wrap.c:21152: error: 'STACK' undeclared
(first use in this function)
293 :info:build SWIG/_m2crypto_wrap.c:21152: error: 'arg1' undeclared
(first use in this function)
294 :info:build SWIG/_m2crypto_wrap.c:21152: error: expected
expression before ')' token
295 :info:build SWIG/_m2crypto_wrap.c:21167: error: expected
expression before ')' token
296 :info:build SWIG/_m2crypto_wrap.c:21178: warning: implicit
declaration of function 'sk_x509_extension_push'
297 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_x509_extension_pop':
298 :info:build SWIG/_m2crypto_wrap.c:21191: error: 'STACK' undeclared
(first use in this function)
299 :info:build SWIG/_m2crypto_wrap.c:21191: error: 'arg1' undeclared
(first use in this function)
300 :info:build SWIG/_m2crypto_wrap.c:21191: error: expected
expression before ')' token
301 :info:build SWIG/_m2crypto_wrap.c:21202: error: expected
expression before ')' token
302 :info:build SWIG/_m2crypto_wrap.c:21208: warning: implicit
declaration of function 'sk_x509_extension_pop'
303 :info:build SWIG/_m2crypto_wrap.c:21208: warning: cast to pointer
from integer of different size
304 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_x509_extension_num':
305 :info:build SWIG/_m2crypto_wrap.c:21218: error: 'STACK' undeclared
(first use in this function)
306 :info:build SWIG/_m2crypto_wrap.c:21218: error: 'arg1' undeclared
(first use in this function)
307 :info:build SWIG/_m2crypto_wrap.c:21218: error: expected
expression before ')' token
308 :info:build SWIG/_m2crypto_wrap.c:21229: error: expected
expression before ')' token
309 :info:build SWIG/_m2crypto_wrap.c:21235: warning: implicit
declaration of function 'sk_x509_extension_num'
310 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_sk_x509_extension_value':
311 :info:build SWIG/_m2crypto_wrap.c:21248: error: 'STACK' undeclared
(first use in this function)
312 :info:build SWIG/_m2crypto_wrap.c:21248: error: 'arg1' undeclared
(first use in this function)
313 :info:build SWIG/_m2crypto_wrap.c:21248: error: expected
expression before ')' token
314 :info:build SWIG/_m2crypto_wrap.c:21263: error: expected
expression before ')' token
315 :info:build SWIG/_m2crypto_wrap.c:21274: warning: implicit
declaration of function 'sk_x509_extension_value'
316 :info:build SWIG/_m2crypto_wrap.c:21274: warning: cast to pointer
from integer of different size
317 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_make_stack_from_der_sequence':
318 :info:build SWIG/_m2crypto_wrap.c:21308: error: 'STACK' undeclared
(first use in this function)
319 :info:build SWIG/_m2crypto_wrap.c:21308: error: 'result'
undeclared (first use in this function)
320 :info:build SWIG/_m2crypto_wrap.c:21314: error: expected
expression before ')' token
321 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_get_der_encoding_stack':
322 :info:build SWIG/_m2crypto_wrap.c:21324: error: 'STACK' undeclared
(first use in this function)
323 :info:build SWIG/_m2crypto_wrap.c:21324: error: 'arg1' undeclared
(first use in this function)
324 :info:build SWIG/_m2crypto_wrap.c:21324: error: expected
expression before ')' token
325 :info:build SWIG/_m2crypto_wrap.c:21335: error: expected
expression before ')' token
326 :info:build SWIG/_m2crypto_wrap.c:21341: warning: implicit
declaration of function 'get_der_encoding_stack'
327 :info:build SWIG/_m2crypto_wrap.c:21341: warning: cast to pointer
from integer of different size
328 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_encrypt':
329 :info:build SWIG/_m2crypto_wrap.c:22343: error: 'STACK' undeclared
(first use in this function)
330 :info:build SWIG/_m2crypto_wrap.c:22343: error: 'arg1' undeclared
(first use in this function)
331 :info:build SWIG/_m2crypto_wrap.c:22343: error: expected
expression before ')' token
332 :info:build SWIG/_m2crypto_wrap.c:22366: error: expected
expression before ')' token
333 :info:build SWIG/_m2crypto_wrap.c:22399: warning: implicit
declaration of function 'pkcs7_encrypt'
334 :info:build SWIG/_m2crypto_wrap.c:22399: warning: cast to pointer
from integer of different size
335 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_sign1':
336 :info:build SWIG/_m2crypto_wrap.c:22547: error: 'STACK' undeclared
(first use in this function)
337 :info:build SWIG/_m2crypto_wrap.c:22547: error: 'arg3' undeclared
(first use in this function)
338 :info:build SWIG/_m2crypto_wrap.c:22547: error: expected
expression before ')' token
339 :info:build SWIG/_m2crypto_wrap.c:22582: error: expected
expression before ')' token
340 :info:build SWIG/_m2crypto_wrap.c:22615: warning: passing argument
4 of 'pkcs7_sign1' makes integer from pointer without a cast
341 :info:build SWIG/_m2crypto_wrap.c:22615: error: too many arguments
to function 'pkcs7_sign1'
342 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_verify1':
343 :info:build SWIG/_m2crypto_wrap.c:22628: error: 'STACK' undeclared
(first use in this function)
344 :info:build SWIG/_m2crypto_wrap.c:22628: error: 'arg2' undeclared
(first use in this function)
345 :info:build SWIG/_m2crypto_wrap.c:22628: error: expected
expression before ')' token
346 :info:build SWIG/_m2crypto_wrap.c:22659: error: expected
expression before ')' token
347 :info:build SWIG/_m2crypto_wrap.c:22692: warning: passing argument
3 of 'pkcs7_verify1' from incompatible pointer type
348 :info:build SWIG/_m2crypto_wrap.c:22692: warning: passing argument
4 of 'pkcs7_verify1' makes integer from pointer without a cast
349 :info:build SWIG/_m2crypto_wrap.c:22692: error: too many arguments
to function 'pkcs7_verify1'
350 :info:build SWIG/_m2crypto_wrap.c: In function '_wrap_pkcs7_verify0':
351 :info:build SWIG/_m2crypto_wrap.c:22707: error: 'STACK' undeclared
(first use in this function)
352 :info:build SWIG/_m2crypto_wrap.c:22707: error: 'arg2' undeclared
(first use in this function)
353 :info:build SWIG/_m2crypto_wrap.c:22707: error: expected
expression before ')' token
354 :info:build SWIG/_m2crypto_wrap.c:22734: error: expected
expression before ')' token
355 :info:build SWIG/_m2crypto_wrap.c:22755: warning: passing argument
3 of 'pkcs7_verify0' makes integer from pointer without a cast
356 :info:build SWIG/_m2crypto_wrap.c:22755: error: too many arguments
to function 'pkcs7_verify0'
357 :info:build SWIG/_m2crypto_wrap.c: In function
'_wrap_pkcs7_get0_signers':
358 :info:build SWIG/_m2crypto_wrap.c:23188: error: 'STACK' undeclared
(first use in this function)
359 :info:build SWIG/_m2crypto_wrap.c:23188: error: 'arg2' undeclared
(first use in this function)
360 :info:build SWIG/_m2crypto_wrap.c:23188: error: expected
expression before ')' token
361 :info:build SWIG/_m2crypto_wrap.c:23199: error: 'result'
undeclared (first use in this function)
362 :info:build SWIG/_m2crypto_wrap.c:23211: error: expected
expression before ')' token
363 :info:build SWIG/_m2crypto_wrap.c:23227: error: expected
expression before ')' token
364 :info:build error: command '/usr/bin/gcc-4.2' failed with exit status 1
Anyone know a way to resolve this?
Cheers
Adam
--
http://mail.python.org/mailman/listinfo/python-list