<p>You m<br>
On Nov 1, 2011 4:15 PM, &quot;Paul Hoffman&quot; &lt;<a href="mailto:paul.hoffman@gmail.com">paul.hoffman@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Greetings again. Just pulled down 2.4, trying to install it on a<br>
&gt; Ubuntu box with &quot;python setup.py build&quot;. However:<br>
&gt;<br>
&gt; . . .<br>
&gt; gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes<br>
&gt; -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/<br>
&gt; -I/usr/include/python2.6 -c src/MD2.c -o<br>
&gt; build/temp.linux-x86_64-2.6/src/MD2.o<br>
&gt; src/MD2.c:31:20: error: Python.h: No such file or directory<br>
&gt; src/MD2.c:120: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39;<br>
&gt; before &#39;*&#39; token<br>
&gt; In file included from src/MD2.c:136:<br>
&gt; src/hash_template.c:48: error: expected specifier-qualifier-list<br>
&gt; before &#39;PyObject_HEAD&#39;<br>
&gt; src/hash_template.c:59: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;PyTypeObject&#39;<br>
&gt; src/hash_template.c: In function &#39;newALGobject&#39;:<br>
&gt; src/hash_template.c:69: warning: implicit declaration of function &#39;PyObject_New&#39;<br>
&gt; src/hash_template.c:69: error: expected expression before &#39;ALGobject&#39;<br>
&gt; src/hash_template.c: At top level:<br>
&gt; src/hash_template.c:76: error: expected &#39;)&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:91: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:110: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:122: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:162: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:181: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;ALG_methods&#39;<br>
&gt; src/hash_template.c:189: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:214: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;ALGtype&#39;<br>
&gt; src/hash_template.c:265: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or<br>
&gt; &#39;__attribute__&#39; before &#39;*&#39; token<br>
&gt; src/hash_template.c:298: error: array type has incomplete element type<br>
&gt; src/hash_template.c:299: error: &#39;PyCFunction&#39; undeclared here (not in<br>
&gt; a function)<br>
&gt; src/hash_template.c:299: error: expected &#39;}&#39; before &#39;ALG_new&#39;<br>
&gt; src/hash_template.c: In function &#39;initMD2&#39;:<br>
&gt; src/hash_template.c:333: error: &#39;PyObject&#39; undeclared (first use in<br>
&gt; this function)<br>
&gt; src/hash_template.c:333: error: (Each undeclared identifier is<br>
&gt; reported only once<br>
&gt; src/hash_template.c:333: error: for each function it appears in.)<br>
&gt; src/hash_template.c:333: error: &#39;m&#39; undeclared (first use in this function)<br>
&gt; src/hash_template.c:345: error: &#39;ALGtype&#39; undeclared (first use in<br>
&gt; this function)<br>
&gt; src/hash_template.c:345: error: &#39;PyType_Type&#39; undeclared (first use in<br>
&gt; this function)<br>
&gt; src/hash_template.c:346: warning: implicit declaration of function<br>
&gt; &#39;Py_InitModule&#39;<br>
&gt; src/hash_template.c:350: error: &#39;o&#39; undeclared (first use in this function)<br>
&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt; &#39;PyInt_FromLong&#39;<br>
&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt; &#39;PyDict_SetItemString&#39;<br>
&gt; src/hash_template.c:350: warning: implicit declaration of function<br>
&gt; &#39;PyModule_GetDict&#39;<br>
&gt; src/hash_template.c:350: warning: implicit declaration of function &#39;Py_DECREF&#39;<br>
&gt; src/hash_template.c:354: warning: implicit declaration of function<br>
&gt; &#39;PyErr_Occurred&#39;<br>
&gt; src/hash_template.c:355: warning: implicit declaration of function<br>
&gt; &#39;Py_FatalError&#39;<br>
&gt; error: command &#39;gcc&#39; failed with exit status 1<br>
&gt;<br>
&gt; Clues appreciated.<br>
&gt;<br>
&gt; --Paul Hoffman<br>
&gt; _______________________________________________<br>
&gt; pycrypto mailing list<br>
&gt; <a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a><br>
&gt; <a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a><br>
You probably have apt-get install python-dev</p>
<p>-T</p>