[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libressl
Subject:    Re: 32-bit build LibreSSL?
From:       Rick Troth <rmt () casita ! net>
Date:       2016-02-12 3:46:45
Message-ID: 56BD55A5.4010800 () casita ! net
[Download RAW message or body]

On 02/10/2016 11:58 PM, Richard A. O'Keefe wrote:
> I have a program which happily uses some of the message digest
> functions from OpenSSL on several platforms.  However, I've
> run into trouble with different versions of OpenSSL supporting
> different digest functions, and of course the way Apple dealt
> with the issue by creating yet another questionably compatible
> version.  So I thought, the heck with this, let's be safe and
> sure and use LibreSSL.

I've been using LibreSSL as a drop-in replacement for OpenSSL with good
results.


> Except that for technical reasons my program is 32-bit only.
> (I'm working on it slowly, but it will be at least another year
> before it's 64-bit ready.)  And while OpenSSL and CommonCrypto
> come on all my platforms with 32-bit as well as 64-bit libraries,
> LibreSSL apparently believes that 32-bit software no longer exists.

I think I've found a kindred spirit!
I maintain a core collection of packages for several platforms, most of
which are 32-bit.
On S/390, 32-bit apps run faster than 64-bit apps on the same 64-bit
kernel.
Haven't measured, but it could be true on other architectures.

But I've had no problem with 32-bit LibreSSL.
I've and use it with 32-bit apps on the following platforms:

        Linux-i386, Linux-s390, Linux-ppc, Linux-arm, FreeBSD, Minix


> The README.md file says nothing about how to build 32-bit libraries.
> ./configure -h appears to be completely generic, it mentions for
> example --enable/disable-FEATURE but has no list of FEATUREs.
> % CC=cc CFLAGS=-m32 ./configure prefix=where-i-want-it
> gets part way and then chokes on assembly code using %r15.
> I am perfectly happy to pay the price of falling back on generic
> C code instead of x86_64 assembler -- I'll have to do that on the
> SPARC boxes and ARM and MIPS boards available to me anyway.

Maybe I'm cheating:
I build 32-bit LibreSSL and the 32-bit apps which link against it in a
pure 32-bit context.
Never have bothered building 32-bit in a 64-bit environment.
One trick: if I'm on x86_64, run the build in a 'linux32' subshell.

I'm looking for SPARC and MIPS hardware. (Had SPARC. Memory failed.)


> I receive a lot of e-mail every day, so please forgive me for
> asking for responses to be sent to me directly. 

Not the best way to engage a list, but you've been clear. Thanks for that.

I hope you can get this bitness cleared up.

-- R; <><



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic