[Zlib-devel] MVS support

Paul Marquess paul.marquess at ntlworld.com
Thu Dec 1 09:26:48 EST 2005


Anyone know what the state of play is with MVS support? The list archive
seems to suggest that it won't build without a few modifications.

The reason I ask is because I have someone trying to build my Perl interface
to zlib on MVS, and he's hit a build problem. My Perl interface includes a
substantial sub-set of the zlib 1.2.3 source, and the build failing in the
middle of zlib.h when compiling this (Zlib.c is my file by the way)

c89 -c  -I./zlib-src -DMAXSIG=38 -DOEMVS -D_OE_SOCKETS
-D_XOPEN_SOURCE_EXTENDED -D _ALL_SOURCE -DYYDYNAMIC -I/usr/local/include -W
0,float\(ieee\)    -DVERSION=\"2.0
00_06\" -DXS_VERSION=\"2.000_06\"  "-I../../.."
-DGZIP_OS_CODE=3 Zlib.c
ERROR CCN3277
/u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:92
   Syntax error: possible missing ';' or ','?
ERROR CCN3007
/u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:92
   "struct internal_state" is undefined.
ERROR CCN3166
/u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:103
   Definition of function FAR requires parentheses.
ERROR CCN3276
...

Line 92 in zlib.h is this

    struct internal_state FAR *state; /* not visible by applications */

Looking at zconf.h, I'm wondering if it has anything to do with this section
of code at the very end of the file.

  #if defined(__MVS__)
  #  define NO_vsnprintf
  #  ifdef FAR
  #    undef FAR
  #  endif
  #endif

Is the intention of the code above to explicitly undefine FAR for MVS? If
so, it could account for the failure.

Paul


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com





More information about the Zlib-devel mailing list