[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?

- 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
>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
>gcc -pthread -shared build/temp.linux-i686-2.6/src/MD4.o -o
>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
>/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!
>   Yu Xue
>     此致
>                       薛宇
>                   身前身后
>                   是时间的深渊

>pycrypto mailing list
>pycrypto at lists.dlitz.net

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