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