On Tue, Oct 1, 2013 at 1:41 PM, Lance Blais
<
lance...@codeartifacts.com> wrote:
> So, basically:
>
> I'm getting those errors relating to undefined references to __strlen_chk,
> __strrchr_chk, __sprintf_chk, __strncpy_chk2 and __strcat_chk
> I'm told that I can't link against the android sources and hence linking
> against the libcrypto.so and libssl.so in the source won't work.
>
> One recommendation was to build libcrypto.so and libssl.so myself and link
> against that instead. Jeff, is this something you can help me with?
Yes, but you probably don't need my help.
Follow the instructions at
http://wiki.openssl.org/index.php/FIPS_Library_and_Android. Omit the
sections "Set the Incore Utility Path" and "Build the FIPS Object
Module". You don't need them because they are FIPS related.
Follow the instructions before the skipped sections, and follow the
instructions after the skipped sections. When you encounter "Build the
FIPS Capable Library", configure without 'fips' since you omitted it.
For example:
$ ./config shared -no-ssl2 -no-ssl3 -no-comp -no-hw -no-engine \
--openssldir=/usr/local/ssl/android-14/
I added the section under "Executive Summary" so I could simply
copy/paste instructions. If all goes well, that's all you will need to
do. If you encounter errors, then read the detailed expalinations
after "Executive Summary".
I've used that setenv-android.sh script [from the OpenSSL wiki page]
on a number of open source projects, including Botan, Cryptlib,
Crypto++, OpenSSL, libevent, libcurl, etc (Tim Hudson, Steve Marquess
and I wrote it). The setenv-android.sh is where the magic lies.
Everything else is 'just build procedures'.
You also have a number of GitHub projects that offer OpenSSL for
Android using their modified build system:
https://www.google.com/#q=android+openssl+github. That might suite
your taste too. But I would encourage you to learn how to set the
environment with setenv-android.sh and use the NDK tools so you can
compile anything you want, including OpenSSL.