[Zlib-devel] zlib 1.2.3.3 ready for the wringer

Paul Marquess paul.marquess at ntlworld.com
Wed Oct 4 09:23:23 EDT 2006


From: zlib-devel-bounces at madler.net [mailto:zlib-devel-bounces at madler.net]
 
> zlibbers,
> 
> zlib 1.2.3.3 is available here for testing:
> 
>      http://zlib.net/current/beta/zlib-1.2.3.3.tar.gz
> 
> I think I have the whole 64-bit large file support thing working
> right.  Also make test now tests both the static and shared libraries
> just built, and --shared is the default.
> 
> Oh, and I added the ability to decode invalid, incorrect, erroneous,
> fallacious, faux deflate streams with distances-too-far-back.  You
> have to compile zlib with a special undocumented option, *and* call
> an undocumented function to enable the decoding.  So you gotta really
> mean it.

Solaris doesn't like the configure script

  $ ./configure
  Checking for gcc...
  ./configure: test: argument expected

I traced that to this section of code in configure

if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
  CC="$cc"
  SFLAGS="${CFLAGS-"-O3"} -fPIC"
  if test -z $uname; then
    uname=`(uname -s || echo unknown) 2>/dev/null`
  fi

Specifically this line

  if test -z $uname; then

There is the same problem with is section of code

  # find system name and corresponding cc options
  CC=${CC-cc}
  if test -z $uname; then
    uname=`(uname -sr || echo unknown) 2>/dev/null`
  fi

The enclosed patch fixes both of these. 

1.2.3.3 builds fine on Solaris 10 with both gcc & Sun C after the patch is
applied to configure. 

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z1233.patch
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20061004/c4f314fa/attachment.obj>


More information about the Zlib-devel mailing list