Skip to content

"undefined reference to 'OBJ_obj2txt'" error on building openssl with NDK 15b #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
germn opened this issue Oct 5, 2017 · 5 comments
Closed

Comments

@germn
Copy link
Contributor

germn commented Oct 5, 2017

Example output here: https://pastebin.com/7132EZ1G

Related part:

/usr/bin/ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer -D__ANDROID_API__=19 -isystem /home/p4a/android-ndk-r15b/sysroot/usr/include/arm-linux-androideabi -isysroot /home/p4a/android-ndk-r15b/sysroot -I/home/p4a/LLP/.buildozer/android/platform/build/build/python-installs/llp/include/python2.7 --sysroot /home/p4a/android-ndk-r15b/platforms/android-19/arch-arm -lm -L/home/p4a/LLP/.buildozer/android/platform/build/build/libs_collections/llp/armeabi-v7a -L/home/p4a/LLP/.buildozer/android/platform/build/build/other_builds/sqlite3/armeabi-v7a/sqlite3/obj/local/armeabi-v7a -lsqlite3 -Xlinker -export-dynamic -o python \
		Modules/python.o \
		-L. -lpython2.7 -ldl  -L/home/p4a/LLP/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a/openssl -lssl1.0.2h -lcrypto1.0.2h                                   -L/home/p4a/LLP/.buildozer/android/platform/build/build/other_builds/python2-openssl-sqlite3/armeabi-v7a/python2/python-install/lib -lz    -lm  
./libpython2.7.so: error: undefined reference to 'OBJ_obj2txt'
/home/p4a/LLP/.buildozer/android/platform/build/build/libs_collections/llp/armeabi-v7a/libssl1.0.2h.so: error: undefined reference to 'OBJ_nid2sn'
/home/p4a/LLP/.buildozer/android/platform/build/build/libs_collections/llp/armeabi-v7a/libssl1.0.2h.so: error: undefined reference to 'OBJ_find_sigid_by_algs'
/home/p4a/LLP/.buildozer/android/platform/build/build/libs_collections/llp/armeabi-v7a/libssl1.0.2h.so: error: undefined reference to 'OBJ_sn2nid'

Tested on NDK 15b.

@inclement
Copy link
Member

I had this issue but I thought I'd tested it and found it no longer occurred. I'll look into it again.

@germn germn changed the title Sqlite3 can't be built with NDK 15+ if openssl present in dependencies "undefined reference to 'OBJ_nid2sn'" error on building openssl with NDK 15+ Oct 8, 2017
@germn germn changed the title "undefined reference to 'OBJ_nid2sn'" error on building openssl with NDK 15+ "undefined reference to 'OBJ_obj2txt'" error on building openssl with NDK 15+ Oct 8, 2017
@inclement
Copy link
Member

I'm finding this quite perplexing - looking closely at the build logs, there are some small differences between the calls to ar and ranlib when using the different SDKs, but the Makefiles are the same. I'm not even sure if it's these differences exactly that are responsible for the problem.

@germn
Copy link
Contributor Author

germn commented Oct 11, 2017

I've tested with 15c and everything worked fine. Problem is related to 15b only.

@germn germn changed the title "undefined reference to 'OBJ_obj2txt'" error on building openssl with NDK 15+ "undefined reference to 'OBJ_obj2txt'" error on building openssl with NDK 15b Oct 11, 2017
@inclement
Copy link
Member

I was testing with NDK 16 beta 1, where the issue does occur. I'll try with 15c.

@inclement
Copy link
Member

inclement commented Nov 18, 2017

It seems to work now, I've tested with 15c and 16.

I'll reopen if others can still reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants