Project

General

Profile

Bug #8261

library/openssl/openssl-1.0.2 build uses cc options with gcc

Added by Gary Mills over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2017-05-21
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

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.


Files

70-dilos.patch (2.01 KB) 70-dilos.patch Alexander Pyhalov, 2017-05-22 10:12 AM

History

#1

Updated by Alexander Pyhalov over 2 years ago

DilOS used the following patch for OpenSSL 1.0.1. Likely OI on SPARC needs something similar.

#2

Updated by Gary Mills over 2 years ago

I already have developed the patches I need. Look for them in a future PR for oi-userland.

Also available in: Atom PDF