From paul.hoffman at gmail.com Tue Nov 1 21:15:37 2011 From: paul.hoffman at gmail.com (Paul Hoffman) Date: Tue, 1 Nov 2011 13:15:37 -0700 Subject: [python-crypto] Cannot build 2.4 Message-ID: Greetings again. Just pulled down 2.4, trying to install it on a Ubuntu box with "python setup.py build". However: . . . gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c src/MD2.c -o build/temp.linux-x86_64-2.6/src/MD2.o src/MD2.c:31:20: error: Python.h: No such file or directory src/MD2.c:120: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token In file included from src/MD2.c:136: src/hash_template.c:48: error: expected specifier-qualifier-list before 'PyObject_HEAD' src/hash_template.c:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PyTypeObject' src/hash_template.c: In function 'newALGobject': src/hash_template.c:69: warning: implicit declaration of function 'PyObject_New' src/hash_template.c:69: error: expected expression before 'ALGobject' src/hash_template.c: At top level: src/hash_template.c:76: error: expected ')' before '*' token src/hash_template.c:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token src/hash_template.c:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token src/hash_template.c:122: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token src/hash_template.c:162: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token src/hash_template.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ALG_methods' src/hash_template.c:189: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token src/hash_template.c:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ALGtype' src/hash_template.c:265: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token src/hash_template.c:298: error: array type has incomplete element type src/hash_template.c:299: error: 'PyCFunction' undeclared here (not in a function) src/hash_template.c:299: error: expected '}' before 'ALG_new' src/hash_template.c: In function 'initMD2': src/hash_template.c:333: error: 'PyObject' undeclared (first use in this function) src/hash_template.c:333: error: (Each undeclared identifier is reported only once src/hash_template.c:333: error: for each function it appears in.) src/hash_template.c:333: error: 'm' undeclared (first use in this function) src/hash_template.c:345: error: 'ALGtype' undeclared (first use in this function) src/hash_template.c:345: error: 'PyType_Type' undeclared (first use in this function) src/hash_template.c:346: warning: implicit declaration of function 'Py_InitModule' src/hash_template.c:350: error: 'o' undeclared (first use in this function) src/hash_template.c:350: warning: implicit declaration of function 'PyInt_FromLong' src/hash_template.c:350: warning: implicit declaration of function 'PyDict_SetItemString' src/hash_template.c:350: warning: implicit declaration of function 'PyModule_GetDict' src/hash_template.c:350: warning: implicit declaration of function 'Py_DECREF' src/hash_template.c:354: warning: implicit declaration of function 'PyErr_Occurred' src/hash_template.c:355: warning: implicit declaration of function 'Py_FatalError' error: command 'gcc' failed with exit status 1 Clues appreciated. --Paul Hoffman From dlitz at dlitz.net Fri Nov 4 20:49:58 2011 From: dlitz at dlitz.net (Dwayne C. Litzenberger) Date: Fri, 4 Nov 2011 15:49:58 -0400 Subject: [python-crypto] ANN: PyCrypto 2.4.1 released - fixes "config.h not found" In-Reply-To: <20111022201648.GA3625@rivest.dlitz.net> References: <20111022201648.GA3625@rivest.dlitz.net> Message-ID: <20111104194958.GB18659@rivest.dlitz.net> I've released PyCrypto 2.4.1 today, which is the same as version 2.4, except it includes Sebastian Ramacher's setup.py fixes, which should help users of easy_install who were getting the following error: error: Setup script exited with error: src/config.h: No such file or directory -- https://bugs.launchpad.net/pycrypto/+bug/881130 Please also take a few minutes to complete the survey at http://pycrypto-survey.warshaft.com/, which will run until 2011-11-22. Cheers, - Dwayne RELEASE INFO: Homepage: http://www.pycrypto.org/ Mailing list: http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto Bug tracker: https://bugs.launchpad.net/pycrypto Source repo: https://github.com/dlitz/pycrypto/ Version: v2.4.1 Commit id: 62247ca754657b6ee8370d8fd62c58b8b881f396 SHA256 sums: 4ff5f7008869c8509d16a31f285b9f6340c4a9ff703c85298832a2869210b154 *pycrypto-2.4.1.tar.gz 63eb81641071a160f3f1f102438e87a156796ccdf36898411ddc93b5e98a2c7e *pycrypto-2.4.1.tar.gz.asc -- Dwayne C. Litzenberger OpenPGP: 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 222 bytes Desc: Digital signature URL: From zooko at zooko.com Thu Nov 24 21:58:11 2011 From: zooko at zooko.com (Zooko O'Whielacronx) Date: Thu, 24 Nov 2011 13:58:11 -0700 Subject: [python-crypto] pycryptopp Hacking Friday Message-ID: Folks: This is a copy of a letter that I just posted to the tahoe-dev mailing list: https://tahoe-lafs.org/pipermail/tahoe-dev/2011-November/006857.html You are welcome to join us and help out! Least Authority Enterprises lets employees contribute to open source projects on Fridays. Tomorrow, the 25th, I'm going to be working on pycryptopp and you are welcome to join me on IRC to help. irc.freenode.net #tahoe-lafs Things to do: 1. Review and merge Brian's patch to add Ed25519 signatures: https://tahoe-lafs.org/trac/pycryptopp/ticket/75 2. Review and merge Yu Xue's patches to add * XSalsa20: https://tahoe-lafs.org/trac/pycryptopp/ticket/40 * Python HMAC: https://tahoe-lafs.org/trac/pycryptopp/ticket/41 * Python HKDF: https://tahoe-lafs.org/trac/pycryptopp/ticket/42 * combined AES?XSalsa20: https://tahoe-lafs.org/trac/pycryptopp/ticket/46 , https://tahoe-lafs.org/trac/pycryptopp/ticket/47 * Comb4P: https://tahoe-lafs.org/trac/pycryptopp/ticket/50 * curve25519: https://tahoe-lafs.org/trac/pycryptopp/ticket/71 3. See if Billy Earney or someone else will volunteer to port pycryptopp to "both Python 2 and Python 3 compatibility": https://tahoe-lafs.org/trac/pycryptopp/ticket/35 4. Look at the buildbot issues, solicit new volunteers to run buildslaves on more platforms: https://tahoe-lafs.org/buildbot-pycryptopp/ 5. Look into alleged miscompilation by Microsoft compiler, try to devise defensive strategy, push someone else (the Crypto++ project) to devise defensive strategy, or just close this ticket as "wontfix": https://tahoe-lafs.org/trac/pycryptopp/ticket/65 6. Fix a few small bugs, e.g.: https://tahoe-lafs.org/trac/pycryptopp/ticket/70 7. See if we can replace Twisted conch's use of pycrypto with pycryptopp: http://twistedmatrix.com/trac/ticket/4633 Regards, Zooko