You should be setting the KERNEL_BITS environment variable.  That works for 
several platforms, including Solaris x86 (although others default to 32, and 
you need to set it to 64 to get a 64-bit build).  As an alternative, (if you’re 
not building the FIPS module) if you know which build configuration to use, you 
can pass it directly to the Configure script, which doesn’t do any detection 
(the detection is done in the config script).  This does assume, of course, 
that your compiler will, by default, create 32-bit executables.  If you’re 
actually on 64-bit Solaris x86, then both Sun (Oracle) cc and GCC will make 
64-bit binaries.  In that case, it gets harder.  I usually just throw a script 
that invokes the compiler with the appropriate compiler option added on (and 
strip out the wrong one, just in case), and make sure the script appears first 
in the path as gcc or cc (depending on which compiler to use). :)

TOM

On Jul 9, 2014, at 3:55 PM, Jeffrey Walton <[email protected]> wrote:

> I'm having trouble setting up solaris-x86-cc and solaris-x86-gcc via
> MACHINE and SYSTEM.
> 
> How exactly does one force the use of x86 when compiling for Solaris
> when Configure/config is mis-identifying the system (the
> mis-identification is x86_64).
> 
> (And to complicate matters, I don't have access to the machine at the
> moment. This is testing on a different machine).
> 
> Thanks in advance.
> 
> *****
> 
> Here's the `uname` that's causing the problems:
> 
>   SunOS hostname 5.10 Generic_147441-01 i86pc i386 i86pc
> 
> *****
> 
> When I try:
> 
>    export MACHINE="solaris"
>    export RELAEASE="10"
>    export SYSTEM="i686"
>    export BUILD="Solaris; Solaris 10; i686"
> 
> I get:
> 
>     ./config
>    Operating system: solaris-whatever-i686
>    This system (i686) is not supported. See file INSTALL for details.
> 
> *****
> 
> When I try:
> 
>    export MACHINE="i686"
>    export RELAEASE="10"
>    export SYSTEM="solaris"
>    export BUILD="Solaris; Solaris 10; i686"
> 
> I get:
> 
>    $ ./config
>    Operating system: i686-whatever-solaris
>    Configuring for solaris
>    Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] ...
> 
>    pick os/compiler from:
>        ...
> 
> *****
> 
> I've also tried the x86 and i386 variants.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [email protected]
> 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to