Thanks Brandon.

It's easy to fix the compilation (as per the attached patch), but the 
problem goes all the way through the configure process.

Does anyone want to venture into the configure scripts to fix this?  
The problem is that  configure  seems to check for  libz  even if  
--without-zlib  is not specified.  As I recall, this was because  
CHECKL_ZLIB is broken.  For one thing, it sets  HAVE_ZLIB  instead of 
HAVE_LIBZ  (which AC_CHECK_LIB would, and the code expects), but I 
think it was more serious than that...

Cheers,
Lachlan

On Fri, 19 Dec 2003 02:59, Brandon Knitter wrote:
> When compilinng 3.2.0b5 with the configure --without-zlib switch,
> the compile breaks as:
> mp_cmpr.c:166: error: `Z_DEFAULT_COMPRESSION' undeclared (first use
> in this function)

-- 
[EMAIL PROTECTED]
ht://Dig developer DownUnder  (http://www.htdig.org)
*** ../cvs/htdig/db/mp_cmpr.c	Sun Jun 22 13:02:58 2003
--- db/mp_cmpr.c	Sat Dec 20 12:00:43 2003
***************
*** 93,100 ****
  
  #ifdef HAVE_LIBZ
  #include "zlib.h"
- #endif /* HAVE_LIBZ */
  static int  memp_cmpr_zlib_level = -1;
  
  /*
   * Helpers declarations.
--- 93,100 ----
  
  #ifdef HAVE_LIBZ
  #include "zlib.h"
  static int  memp_cmpr_zlib_level = -1;
+ #endif /* HAVE_LIBZ */
  
  /*
   * Helpers declarations.
***************
*** 159,170 ****
--- 159,172 ----
    db_io->pagesize = CMPR_DIVIDE(db_io->pagesize);
    db_io->bytes = CMPR_DIVIDE(db_io->bytes);
  
+ #ifdef HAVE_LIBZ
    if(memp_cmpr_zlib_level == -1)
    {
          memp_cmpr_zlib_level = cmpr_info->zlib_flags;
          if(memp_cmpr_zlib_level == -1)
              memp_cmpr_zlib_level = Z_DEFAULT_COMPRESSION;
    }
+ #endif
    
    /*
     * Page 0 is a special case. It contains the metadata information (at most 512 bytes)

Reply via email to