library/openssl/openssl-1.0.2 build uses cc options with gcc
A build of the library/openssl/openssl-1.0.2 component of oi-userland on SPARC hardware stops with these error messages:
gcc: error: cg: No such file or directory gcc: error: unrecognized command line option '-KPIC' gcc: error: unrecognized command line option '-Qoption' gcc: error: unrecognized command line option '-Xa'
This happens because the configure script has no configuration for the gcc compiler with SPARC hardware. Configurations are specified in the Makefile. The solution is to modify Configure.gcc.patch to include the necessary configurations, and to modify Makefile to select the new configurations.
When this is done, the build stops with this error:
'AV_SPARC_AES' undeclared (first use in this function)
The solution for this one is to modify engines/pkcs11/e_pk11.c so that the two unknown symbols are set to zero if they are still undefined. Once this change is made, the build proceeds with no further errors.
Updated by Alexander Pyhalov over 3 years ago
- Status changed from Feedback to Resolved