I am working on a simple chrome NaCl extension where I want to use the openssl library for encryption of data. I checked out the pepper_40 branch of naclports as described on the wiki page and tried to build the port for openssl but it is encountered with the following error.
kunal@Baweja:~/Downloads/naclports/src$ ./make_all.sh openssl
+ set -e
+ TARGETS=openssl
+ TARGETS=openssl
+ BUILD_FLAGS=--ignore-disabled
+ export TOOLCHAIN
+ export NACL_ARCH
+ export BUILD_FLAGS
+ NACL_ARCH=x86_64
+ TOOLCHAIN=glibc
+ make openssl
bin/naclports install openssl --ignore-disabled
Already installed 'openssl' [x86_64/glibc/release]
+ TOOLCHAIN=newlib
+ make openssl
bin/naclports install openssl --ignore-disabled
Building 'glibc-compat' [x86_64/newlib/release]
naclports: Building glibc-compat: failed.
make: *** [openssl] Error 1
What could be the possible error exactly and any ways around that ?
Thanks to @sbc for telling me about VERBOSE=1 option in the comment on the above question. I identified that the libstdc++.so.6 file was missing while accessing
from $NACL_SDK_ROOT/tools/sel_ldr_x86_32
. This is so because my machine is of x86_64 type i.e. 64 bit. Hence we need to installlibstdc++
for 32 bit machines separatly by using the commandsudo apt-get install lib32stdc++6
The original solution to missing
libstdc++.so.6
file is given here