develooper Front page | perl.perl5.porters | Postings from March 2013

Re: converting z/OS Perl build to use xlc instead of c89

H.Merijn Brand
March 25, 2013 22:21
Re: converting z/OS Perl build to use xlc instead of c89
Message ID:
On Mon, 25 Mar 2013 17:51:06 -0400, John Goodyear <>

> To get the initial builds of Perl on z/OS to work, I've had to put some
> temporary hacks into the Configure script so that some of the compiler
> tests get the proper answer.
> The main problem is that c89 requires the use of parenthesis for some of
> the options.  i.e.: langlvl(longlong).   The Configure script does not
> handle cflags in the same manner that makes it easy to keep the shell and
> c89 happy when the flags are passed to the compiler.

There are two things I'd like to point out that may help you in this
phase of your battle:

   don't pass -D... -U... to Configure, but put them in
   you can add comments

2. hints/
   or whatever $^O will be. That is THE place to note system specific
   changes to Configure and is much easier to maintain than patching

> Since the xlc compiler was released with z/OS 1.6  (~10 years ago?), it
> seems reasonable to update the make process to use xlc.   This will be my
> plan, unless any of the current z/OS Perl users have a good reason not to.
> John Goodyear

H.Merijn Brand   Perl Monger
using perl5.00307 .. 5.17   porting perl5 on HP-UX, AIX, and openSUSE Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About