Re: [openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for z Systems

2017-06-01 Thread 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU
Hello All.

Sorry for the late reply.

I understood.

Thank you very much.

Best regards,
and I'll try that.

Manabu


> On May 12, 2017, at 5:00 PM, Michael Wojcik 
> wrote:
> 
> >> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On
> >> Behalf Of Thomas Francis, Jr.
> >> Sent: Friday, May 12, 2017 15:55
> >>
> >>> On 5/10/17 3:55 AM, 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU
> wrote:
> >>>
> >>> I will build OpenSSL on SUSE Linux Enterprise Server for z Systems.
> >
> > What version of OpenSSL?
> >
> >>> But, there is not yet the machine for build, so I cannot do actual
> >>> machine verification.
> >>>
> >>> The CPU is not Intel architecture, is probably z/Architecture.
> >
> > Yes, Linux for System z runs on z-architecture CPUs.
> >
> >>> I want to know beforehand the appropriate command-line parameters
> >>> for executing "Configure".
> >>>
> >>> Is it right to specify "linux64-s390x" as follows?
> >>>
> >>> (1)cd //openssl-1.0.2k
> >>>
> >>> (2)./Configure linux64-s390x
> >>
> >> I'd suggest just running "./config".  That will pick the appropriate
> >> 64-bit target.  Only use Configure if you want to do something
> >> non-standard. :)
> >
> > That's certainly the place to start. Whether it will work is another
> question.
> >
> > When we build OpenSSL for z Linux (RHEL and SLES), we use a modified
> Configure that:
> >
> > * Adds -fPIC and -mbackchain. This is because we compile OpenSSL into
> an archive library that is then linked into a shared object, so we have
> to force on the shared-object flags in Configure.
> >
> > * Replaces -O3 with -O1, preferring robustness (or, if you prefer,
> toleration for sloppiness and error) and ease of problem determination over
> performance.
> >
> > * Replaces the asm setting[1] with ${no_asm}, for the same reason.
> >
> > * For 32-bit, removes /highgprs. According to my notes, highgprs does
> not work correctly with some glibc versions on zLinux.
> >
> > The OP probably doesn't need the first three and may well not need the
> last. Depending on how clever one gets with building and using OpenSSL,
> though, config+Configure aren't always sufficient as supplied. That's not
> a criticism - trying to accommodate every use case is not a good use of
> the OpenSSL development team's time.
> >
> > But unless you're happy with the default build parameters and comfortable
> with your platform, be prepared to learn how the OpenSSL build works.
> 
> I think in general, the same caveat applies for any system. The default
> build settings might not be what you want. But in most cases (including
> Linux for z), they will get you libraries that'll work with the system
> compiler toolchain if you pass only the minimum flags to specify where the
> headers and libraries can be found.
> 
> I figure if you need something else you probably already know that, and
> can pass the appropriate flags in CFLAGS, CPPFLAGS, or LDFLAGS. :) Or create
> a custom target.
> 
> TOM
> 
> PS Regarding highgprs; I suspect that's actually a problem of mixing 32-bit
> s390x binaries with s390 binaries. There is a difference.  But old bugs
> and miscommunication means that sometimes the s390 system will think it
> can load an s390x binary (and sometimes think it succeeded). :)
> 
> > [1] There are two zLinux targets in the 1.0.2 Configure, for 64- and 32-bit.
> The linux64-s390x target uses ${s390x_asm} for its asm section, but the
> linux32-s90x uses an eval expression that edits $s390x_asm. We disable asm
> for both.
> >
> >
> > Michael Wojcik
> > Distinguished Engineer, Micro Focus

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for z Systems

2017-05-12 Thread Tom Francis

On May 12, 2017, at 5:00 PM, Michael Wojcik  
wrote:

>> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf
>> Of Thomas Francis, Jr.
>> Sent: Friday, May 12, 2017 15:55
>> 
>>> On 5/10/17 3:55 AM, 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU wrote:
>>> 
>>> I will build OpenSSL on SUSE Linux Enterprise Server for z Systems.
> 
> What version of OpenSSL?
> 
>>> But, there is not yet the machine for build, so I cannot do actual
>>> machine verification.
>>> 
>>> The CPU is not Intel architecture, is probably z/Architecture.
> 
> Yes, Linux for System z runs on z-architecture CPUs.
> 
>>> I want to know beforehand the appropriate command-line parameters for
>>> executing "Configure".
>>> 
>>> Is it right to specify "linux64-s390x" as follows?
>>> 
>>> (1)cd //openssl-1.0.2k
>>> 
>>> (2)./Configure linux64-s390x
>> 
>> I'd suggest just running "./config".  That will pick the appropriate
>> 64-bit target.  Only use Configure if you want to do something
>> non-standard. :)
> 
> That's certainly the place to start. Whether it will work is another question.
> 
> When we build OpenSSL for z Linux (RHEL and SLES), we use a modified 
> Configure that:
> 
> * Adds -fPIC and -mbackchain. This is because we compile OpenSSL into an 
> archive library that is then linked into a shared object, so we have to force 
> on the shared-object flags in Configure.
> 
> * Replaces -O3 with -O1, preferring robustness (or, if you prefer, toleration 
> for sloppiness and error) and ease of problem determination over performance.
> 
> * Replaces the asm setting[1] with ${no_asm}, for the same reason.
> 
> * For 32-bit, removes /highgprs. According to my notes, highgprs does not 
> work correctly with some glibc versions on zLinux.
> 
> The OP probably doesn't need the first three and may well not need the last. 
> Depending on how clever one gets with building and using OpenSSL, though, 
> config+Configure aren't always sufficient as supplied. That's not a criticism 
> - trying to accommodate every use case is not a good use of the OpenSSL 
> development team's time.
> 
> But unless you're happy with the default build parameters and comfortable 
> with your platform, be prepared to learn how the OpenSSL build works.

I think in general, the same caveat applies for any system. The default build 
settings might not be what you want. But in most cases (including Linux for z), 
they will get you libraries that'll work with the system compiler toolchain if 
you pass only the minimum flags to specify where the headers and libraries can 
be found.

I figure if you need something else you probably already know that, and can 
pass the appropriate flags in CFLAGS, CPPFLAGS, or LDFLAGS. :) Or create a 
custom target. 

TOM

PS Regarding highgprs; I suspect that's actually a problem of mixing 32-bit 
s390x binaries with s390 binaries. There is a difference.  But old bugs and 
miscommunication means that sometimes the s390 system will think it can load an 
s390x binary (and sometimes think it succeeded). :)

> [1] There are two zLinux targets in the 1.0.2 Configure, for 64- and 32-bit. 
> The linux64-s390x target uses ${s390x_asm} for its asm section, but the 
> linux32-s90x uses an eval expression that edits $s390x_asm. We disable asm 
> for both.
> 
> 
> Michael Wojcik 
> Distinguished Engineer, Micro Focus 

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for z Systems

2017-05-12 Thread Michael Wojcik
> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf
> Of Thomas Francis, Jr.
> Sent: Friday, May 12, 2017 15:55
> 
> On 5/10/17 3:55 AM, 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU wrote:
> >
> > I will build OpenSSL on SUSE Linux Enterprise Server for z Systems.

What version of OpenSSL?

> > But, there is not yet the machine for build, so I cannot do actual
> > machine verification.
> >
> > The CPU is not Intel architecture, is probably z/Architecture.

Yes, Linux for System z runs on z-architecture CPUs.

> > I want to know beforehand the appropriate command-line parameters for
> > executing "Configure".
> >
> > Is it right to specify "linux64-s390x" as follows?
> >
> > (1)cd //openssl-1.0.2k
> >
> > (2)./Configure linux64-s390x
> 
> I'd suggest just running "./config".  That will pick the appropriate
> 64-bit target.  Only use Configure if you want to do something
> non-standard. :)

That's certainly the place to start. Whether it will work is another question.

When we build OpenSSL for z Linux (RHEL and SLES), we use a modified Configure 
that:

* Adds -fPIC and -mbackchain. This is because we compile OpenSSL into an 
archive library that is then linked into a shared object, so we have to force 
on the shared-object flags in Configure.

* Replaces -O3 with -O1, preferring robustness (or, if you prefer, toleration 
for sloppiness and error) and ease of problem determination over performance.

* Replaces the asm setting[1] with ${no_asm}, for the same reason.

* For 32-bit, removes /highgprs. According to my notes, highgprs does not work 
correctly with some glibc versions on zLinux.

The OP probably doesn't need the first three and may well not need the last. 
Depending on how clever one gets with building and using OpenSSL, though, 
config+Configure aren't always sufficient as supplied. That's not a criticism - 
trying to accommodate every use case is not a good use of the OpenSSL 
development team's time.

But unless you're happy with the default build parameters and comfortable with 
your platform, be prepared to learn how the OpenSSL build works.


[1] There are two zLinux targets in the 1.0.2 Configure, for 64- and 32-bit. 
The linux64-s390x target uses ${s390x_asm} for its asm section, but the 
linux32-s90x uses an eval expression that edits $s390x_asm. We disable asm for 
both.


Michael Wojcik 
Distinguished Engineer, Micro Focus 
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for z Systems

2017-05-12 Thread Porter, Andrew
./config works just fine for me on a SLES 11.3 z/Linux, and yes it sets 
PLATFORM to "linux64-s390x" in MAKEFILE

Andrew

-Original Message-
From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of 
Thomas Francis, Jr.
Sent: Friday, May 12, 2017 12:55
To: openssl-users@openssl.org; 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU 
<hrf-...@itg.hitachi.co.jp>
Subject: Re: [openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for 
z Systems

On 5/10/17 3:55 AM, 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU wrote:
> Hello,
> 
> I will build OpenSSL on SUSE Linux Enterprise Server for z Systems.
> 
> But, there is not yet the machine for build, so I cannot do actual 
> machine verification.
> 
> The CPU is not Intel architecture, is probably z/Architecture.
> 
> I want to know beforehand the appropriate command-line parameters for 
> executing "Configure".
> 
> Is it right to specify "linux64-s390x" as follows?
> 
> (1)cd //openssl-1.0.2k
> 
> (2)./Configure linux64-s390x
> 
> Thanks in advance.
> 
> Regards,
> 
> Manabu

I'd suggest just running "./config".  That will pick the appropriate 64-bit 
target.  Only use Configure if you want to do something non-standard. :)

TOM
--
openssl-users mailing list
To unsubscribe: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__mta.openssl.org_mailman_listinfo_openssl-2Dusers=DwIGaQ=UrUhmHsiTVT5qkaA4d_oSzcamb9hmamiCDMzBAEwC7E=rM-xapYCunnmjke6suxLaVU8krc3wfCZvRQxfT87RRc=y_R1eCO_0tchTjqrQby7KgWKxasiJiYKVrkVRuGlQWk=lR-F70DHHpRhV_x7sg5Cr1RohGs7zFMNGUAGGiMWBRE=
 
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


Re: [openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for z Systems

2017-05-12 Thread Thomas Francis, Jr.

On 5/10/17 3:55 AM, 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU wrote:

Hello,

I will build OpenSSL on SUSE Linux Enterprise Server for z Systems.

But, there is not yet the machine for build, so I cannot do actual 
machine verification.


The CPU is not Intel architecture, is probably z/Architecture.

I want to know beforehand the appropriate command-line parameters for 
executing "Configure".


Is it right to specify "linux64-s390x" as follows?

(1)cd //openssl-1.0.2k

(2)./Configure linux64-s390x

Thanks in advance.

Regards,

Manabu


I'd suggest just running "./config".  That will pick the appropriate 
64-bit target.  Only use Configure if you want to do something 
non-standard. :)


TOM
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


[openssl-users] Build OpenSSL on SUSE Linux Enterprise Server for z Systems

2017-05-10 Thread 共通基盤SSL[業務ID] / COMMONSSL,GYOUMU
Hello,

I will build OpenSSL on SUSE Linux Enterprise Server for z Systems.
But, there is not yet the machine for build, so I cannot do actual machine 
verification.

The CPU is not Intel architecture, is probably z/Architecture.

I want to know beforehand the appropriate command-line parameters for executing 
"Configure".
Is it right to specify "linux64-s390x" as follows?

(1)cd //openssl-1.0.2k
(2)./Configure linux64-s390x

Thanks in advance.

Regards,
Manabu

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users