Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Building PolarSSL for Solaris x86 and SPARC
Despite the best attempts by authors of PolarSSL, it consistently does not build on Solaris out of the box. Several minor tweaks are needed to get it to compile properly.
Step-by-step guide for Solaris x86
- Modify include/gcm.h
- Add "-lsocket" and "-lnsl" to LD_FLAGS in the Makefiles under the "tests" and "programs" directories (if you plan on using these).
- May need to delete any #if #else blocks in the Makefiles
Step-by-step guide for Solaris SPARC
For SPARC, do the same steps above for x86 and then do the following additional step.
- Modify include/polarssl/config.h and comment out #define POLARSSL_HAVE_ASM. The SPARC assembly is broken in both v1.2.11 and v1.3.8. See the following comment in include/polarssl/bn_mul.h: "The Sparc64 assembly is reported to be broken. Disable it for now, until we're able to fix it." Several other modules defined in config.h depend on POLARSSL_HAVE_ASM such as POLARSSL_TIMING_C and POLARSSL_PADLOCK_C. You may need to uncomment these as well.
Some makefiles give Solaris make problems. The easiest solution I have found is to delete all the #if #else blocks. Then, usually, the Makefiles will work as-is.
Related articles
('contentbylabel' missing)