OK, thanks
I will try my best
I am new at this (so please be patient )
These patches address three issues
The first change fixes the configure process
1) The configure script does not detect missing H files, I added the following
option to fix this { haltonmsg(3296) }
2) The z/OS compiler use "()" for some compiler options. Normally in an open
command-line or in an open-makefile
The "()" must be "escaped" , but configure uses { eval } therefore the
escapes are not needed and do not work .
This value { float\\(IEEE\\) } produces a compiler warning error
"invalid option float\ ". I found this by examining the configure.log
Therefore I changed it to ",float(ieee),"
Since the above options will only work correctly in the configure script the
CFLAGS must be RESET to values that
Will work in the makefile so the last change sets the options that are to be
used in the makefile
CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\)"
IBM has recently added a new compiler interface which is UNIX friendly (the
new -q options syntax) but that may not
Be backwards compatible
But , Now after doing further research I have discovered that ( I need to use
a completely different set of options ) and for sure these
Options are not compatible with older systems ( how old or how far back
should be supported is the current question I need to resolve )
Here is an excerpt from a motif sample makefile >>
/usr/lpp/tcpip/X11R66/Xamples/motif/popups/Makefile
# This Makefile is used to build autopopups.
#
# Parameters:
# 31STATIC - builds 31-bit statically linked version
# 31DYNAMIC - builds 31-bit dynamically linked (DLL) version
# 64STATIC - builds 64-bit statically linked version
# 64DYNAMIC - builds 64-bit dynamically linked (DLL) version
# ALL - build all four versions
# clean - remove all objects, side-decks, and autopopups* prog
#
# The default is 31STATIC.
#
.SUFFIXES: .o .o64 .c
#
#
OBJS31 = autopopups.o
OBJS64 = autopopups.o64
PROGRAM = autopopups
#
LIB = /usr/lpp/tcpip/X11R66/lib
XINCLUDE = -I/usr/lpp/tcpip/X11R66/include
CC = cc
#
STATLIBS = -lXm -lXt -lSM -lICE -lXp -lXext -lX11
#
DYNLIBS31 = $(LIB)/Xm_31.x $(LIB)/Xaw_31.x $(LIB)/SM_31.x \
$(LIB)/ICE_31.x $(LIB)/X11_31.x
CFLAGS31 = -D_ALL_SOURCE -Wc,dll,XPLINK,FLOAT\(IEEE\)
LFLAGS31 = -Wl,dll,XPLINK
#
DYNLIBS64 = $(LIB)/Xm_64.x $(LIB)/Xaw_64.x $(LIB)/SM_64.x \
$(LIB)/ICE_64.x $(LIB)/X11_64.x
CFLAGS64 = -D_ALL_SOURCE -Wc,dll,LP64,XPLINK,FLOAT\(IEEE\)
LFLAGS64 = -Wl,LP64,dll,XPLINK
#
default: 31STATIC
ALL: 31STATIC 31DYNAMIC 64STATIC 64DYNAMIC
31STATIC: $(PROGRAM)
31DYNAMIC: $(PROGRAM)d
64STATIC: $(PROGRAM)64
64DYNAMIC: $(PROGRAM)64d
# compile 31-bit objects
.c.o:
$(CC) -c -o $@ $(CFLAGS31) $(XINCLUDE) $<
# compile 64-bit objects
.c.o64:
$(CC) -c -o $@ $(CFLAGS64) $(XINCLUDE) $<
# link the 31-bit static version
$(PROGRAM): $(OBJS31)
$(CC) -o $@ $(LFLAGS31) -L$(LIB) $^ $(STATLIBS)
# link the 31-bit dynamic version
$(PROGRAM)d: $(OBJS31) $(DYNLIBS31)
$(CC) -o $@ $(LFLAGS31) $^
# link the 64-bit static version
$(PROGRAM)64: $(OBJS64)
$(CC) -o $@ $(LFLAGS64) -L$(LIB) $^ $(STATLIBS)
# link the 64-bit dynamic version
$(PROGRAM)64d: $(OBJS64) $(DYNLIBS64)
$(CC) -o $@ $(LFLAGS64) $^
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
So I need to use >>
CFLAGS = -D_ALL_SOURCE -Wc,dll,XPLINK,FLOAT\(IEEE\)
LFLAGS = -Wl,dll,XPLINK
So please hold off on these patches until I have time to do some more research
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Bram Moolenaar
Sent: Saturday, April 28, 2012 4:33 AM
To: Bovy, Stephen
Cc: [email protected]
Subject: Re: configure script patches for IBM z/OS Build
Stephen Bovy wrote:
> >> src/auto/configure <<<<
>
> 4414c4414
> < if test "$CC" = "cc"; then
> ---
> >
> > if test "$CC" = "cc"; then
> 4436,4439c4436
> < # set CFLAGS for configure process
> < # this will be reset later for config.mk
> < # use haltonmsg to force error for missing H files
> < CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
> ---
> > CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
> 12595,12598d12591
> < # IBM z/OS reset CFLAGS for config.mk < if test "$zOSUnix" = "yes";
> then
> < CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\)"
> < fi
>
> >>> src/configure.in <<<<<<
>
> 339,342c339
> < # set CFLAGS for configure process
> < # this will be reset later for config.mk
> < # use haltonmsg to force error for missing H files
> < CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
> ---
> > CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
> 3647,3651d3643
> <
> < # IBM z/OS reset CFLAGS for config.mk < if test "$zOSUnix" = "yes";
> then
> < CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\)"
> < fi
Can you please make context diffs, so that we can see exactly what changes?
And please attach the diff, if you put it as the main text lines get wrapped.
It is also nice if you can give a short explanation what the patch fixes,
otherwise we have to guess.
--
VOICE OVER: As the horrendous Black Beast lunged forward, escape for Arthur
and his knights seemed hopeless, when, suddenly ... the animator
suffered a fatal heart attack.
ANIMATOR: Aaaaagh!
VOICE OVER: The cartoon peril was no more ... The Quest for Holy Grail could
continue.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php