[pycrypto] a problem when build pycrypto

Dwayne C. Litzenberger dlitz at dlitz.net
Mon Nov 29 22:21:35 CST 2010


Strange.  I develop on Linux i686 using gcc 4.4, and it works find.  Does 
this machine also have gcc 4.x installed?

It looks like you built your own Python.  How was the build configured?

Cheers,
- Dwayne

On Fri, Oct 08, 2010 at 04:31:33PM +0800, yu xue wrote:
>Hello, everyone:
>I met a problem when trying to build pycrypto on a linux machine, the errors
>which are reported are as follows:
>
>
>gcc -pthread -shared build/temp.linux-i686-2.6/src/MD2.o -o
>build/lib.linux-i686-2.6/Crypto/Hash/MD2.so
>building 'Crypto.Hash.MD4' extension
>gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC
>-std=c99 -O3 -fomit-frame-pointer -Isrc/
>-I/home/xueyu/bin/bin/include/python2.6 -c src/MD4.c -o
>build/temp.linux-i686-2.6/src/MD4.o
>gcc -pthread -shared build/temp.linux-i686-2.6/src/MD4.o -o
>build/lib.linux-i686-2.6/Crypto/Hash/MD4.so
>building 'Crypto.Hash.SHA256' extension
>gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC
>-std=c99 -O3 -fomit-frame-pointer -Isrc/
>-I/home/xueyu/bin/bin/include/python2.6 -c src/SHA256.c -o
>build/temp.linux-i686-2.6/src/SHA256.o
>/tmp/cc8i7etX.s: Assembler messages:
>/tmp/cc8i7etX.s:1692: Error: symbol `fstat64' is already defined
>/tmp/cc8i7etX.s:1710: Error: symbol `lstat64' is already defined
>/tmp/cc8i7etX.s:1728: Error: symbol `stat64' is already defined
>error: command 'gcc' failed with exit status 1
>And everytime I re-built the pycrypto, the directories which has "Error:
>symbol 'fstat64/lstat64/stat64' " are different, e.g. they are maybe
>/tmp/ccHKWjgr.s or /tmp/ccL9eDaZ.s etc...
>
>Gcc is 4.3.2, python is 2.6. And I don't have root priviledge , so I don't
>know whether this is matters. Thank you!
>
>Regards
>   Yu Xue
>
>---
>
>     此致
>敬礼!
>                       薛宇
>
>                   身前身后
>                   是时间的深渊

>_______________________________________________
>pycrypto mailing list
>pycrypto at lists.dlitz.net
>http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto


-- 
Dwayne C. Litzenberger <dlitz at dlitz.net>
  OpenPGP: 19E1 1FE8 B3CF F273 ED17  4A24 928C EC13 39C2 5CF7


More information about the pycrypto mailing list