sinkuri256 / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

error: undefined reference to 'Py_InitModule4_64' #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
error: undefined reference to 'Py_InitModule4_64'

arm-linux-androideabi-gcc -mandroid -fomit-frame-pointer --sysroot 
/mnt/nfsroot/cheng.wang/android-ndk/android-ndk-r9d/platforms/android-9/arch-arm
 -DNO_MALLINFO=1 
-I/mnt/nfsroot/cheng.wang/android-python/python-2.7.2/tmp_ndk_r7c/android-python
27/python-build/jni/sqlite3 -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ 
-I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o
arm-linux-androideabi-gcc -shared -mandroid -fomit-frame-pointer --sysroot 
/mnt/nfsroot/cheng.wang/android-ndk/android-ndk-r9d/platforms/android-9/arch-arm
 -DNO_MALLINFO=1 
-L/mnt/nfsroot/cheng.wang/android-python/python-2.7.2/tmp_ndk_r7c/android-python
27/python-build -lpython2.7 -Wl,--no-undefined 
build/temp.linux-x86_64-2.7/src/MD2.o -o 
build/lib.linux-x86_64-2.7/Crypto/Hash/_MD2.so
/mnt/nfsroot/cheng.wang/android-ndk/android-ndk-r9d/toolchains/arm-linux-android
eabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../..
/arm-linux-androideabi/bin/ld: build/temp.linux-x86_64-2.7/src/MD2.o: in 
function init_MD2:MD2.c(.text+0x634): error: undefined reference to 
'Py_InitModule4_64'
collect2: ld returned 1 exit status
error: command 'arm-linux-androideabi-gcc' failed with exit status 1

I have a new error:
ndk:r9d , toolchains:6.6

How do I solve it?

Original issue reported on code.google.com by chw421...@gmail.com on 14 May 2014 at 4:44