biglink of PyCrypto fails

34 views
Skip to first unread message

Bill Janssen

unread,
Apr 23, 2014, 12:33:02 PM4/23/14
to python-...@googlegroups.com
I'm using the VirtualBox VM and buildozer, and compiling a project that uses PyCrypto, apsw, and kivy.  When it gets to the stage of biglink of libpymodules.so, it fails with the following:

[...]
/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/kivy/goodstuff/.buildozer/android/platform/python-for-android/build/objects/_SHA512.so.o: multiple definition of 'add_length'
/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: /home/kivy/goodstuff/.buildozer/android/platform/python-for-android/build/objects/_SHA384.so.o: previous definition here
/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/kivy/goodstuff/.buildozer/android/platform/python-for-android/build/objects/_SHA256.so.o: multiple definition of 'add_length'
/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: /home/kivy/goodstuff/.buildozer/android/platform/python-for-android/build/objects/_SHA384.so.o: previous definition here
/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: /home/kivy/goodstuff/.buildozer/android/platform/python-for-android/build/objects/_SHA224.so.o: multiple definition of 'add_length'
/home/kivy/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: /home/kivy/goodstuff/.buildozer/android/platform/python-for-android/build/objects/_SHA384.so.o: previous definition here
collect2: error: ld returned 1 exit status
# Command failed: ./distribute.sh -m "pycrypto apsw kivy" -d "goodstuff"
kivy@kivy-VirtualBox:~/goodstuff$

Looks like an issue with the PyCrypto code.

Anyone else seen this? Anyone know what to do about it?

Bill

Bill Janssen

unread,
May 1, 2014, 8:34:21 PM5/1/14
to python-...@googlegroups.com
This turns out to be a bug (missing static declaration) in the 2.6.1 version of PyCrypto.  2.7a1 fixes it.

Bill
Reply all
Reply to author
Forward
0 new messages