fatal error: sys/cdefs.h: No such file or directory while compiling openssl-1.1.0h

I am trying to compile open ssl for android. I followed this link for compilation.


But i am stuck at this error immediately .

fatal error: sys/cdefs.h: No such file or directory # include <sys/cdefs.h>

1 Answer

Followed another link which helped me to solve the issue.
libc6-dev-i386 was not installed in my system. After installing with this command in my Ubuntu the errors were gone.

sudo apt-get install g++-multilib

Answer from ubuntu link for reference

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like