Bug 25578 - mod_deflate under zlib-1.2.1 will not build
Summary: mod_deflate under zlib-1.2.1 will not build
Status: RESOLVED WONTFIX
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.0.48
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FAQ
Depends on:
Blocks:
 
Reported: 2003-12-17 01:46 UTC by askme
Modified: 2005-09-12 11:03 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description askme 2003-12-17 01:46:09 UTC
win2k VS.NET(2002)

httpd-2.0.48> nmake /f Makefile.win INSTDIR="\www\Apache2" installr

--------------------------------------------------------------------------------
cd ..\..
cd modules\filters
nmake  -f mod_deflate.mak CFG="mod_deflate - Win32 Release" RECURSE=0

Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl.exe /nologo /MD /W3 /Zi /O2 /I "../../include" /I "../../srclib/apr/i
nclude" /I "../../srclib/apr-util/include" /I "../../srclib/zlib" /D "NDEBUG" /D
 "WIN32" /D "_WINDOWS" /Fo".\Release\\" /Fd".\Release\mod_deflate_src" /FD /c ..
\..\srclib\zlib\adler32.c
adler32.c
        cl.exe /nologo /MD /W3 /Zi /O2 /I "../../include" /I "../../srclib/apr/i
nclude" /I "../../srclib/apr-util/include" /I "../../srclib/zlib" /D "NDEBUG" /D
 "WIN32" /D "_WINDOWS" /Fo".\Release\\" /Fd".\Release\mod_deflate_src" /FD /c ..
\..\srclib\zlib\crc32.c
crc32.c
        cl.exe /nologo /MD /W3 /Zi /O2 /I "../../include" /I "../../srclib/apr/i
nclude" /I "../../srclib/apr-util/include" /I "../../srclib/zlib" /D "NDEBUG" /D
 "WIN32" /D "_WINDOWS" /Fo".\Release\\" /Fd".\Release\mod_deflate_src" /FD /c ..
\..\srclib\zlib\deflate.c
deflate.c
NMAKE : fatal error U1073: don't know how to make '"..\..\srclib\zlib\infblock.h
"'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio .NET\VC7\B
IN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio .NET\VC7\B
IN\nmake.exe"' : return code '0x2'
Stop.
--------------------------------------------------------------------------------

Seems that 'infblock.h', that is used under... 
\httpd-2.0.48\modules\filters\mod_deflate.dep 
...is no longer present under the new zlib-1.2.1

zlib-1.1.4 works.
Comment 1 André Malo 2004-01-18 17:04:51 UTC
I've started to fix it in 2.1 by linking against zlib.lib instead of particular
files. I'm not a VC guru so, I'm expecting that someone else fixes my *.dsp and
Makefile.win changes ;)

The changes are in Makefile.win r1.134 and mod_deflate.dsp r1.9.

Thanks for the report.
Comment 2 Nick Kew 2004-09-05 15:33:49 UTC
we've had several changes to mod_deflate since this bug report.  Can you check
whether it builds correctly now, either with 2.0.51 or with mod_deflate from
current CVS?
Comment 3 askme 2004-10-12 23:08:46 UTC
No, httpd-2.0.52 (win32) with mod_deflate (zlib 1.2.1) does not build.


--------------------------------------------------------------------------------

Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

        tempfile.bat
        rc.exe /l 0x409 /fo".\Release\mod_auth_ldap.res" /d "NDEBUG" .\mod_auth_
ldap.rc
        cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm3CE.tmp
mod_auth_ldap.c
        link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm3CF.tmp
   Creating library .\Release\mod_auth_ldap.lib and object .\Release\mod_auth_ld
ap.exp
        cd ..\..
        cd modules\filters
        nmake  -f mod_deflate.mak     CFG="mod_deflate - Win32 Release" RECURSE=
0

Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

        if not exist ".\Release/" mkdir ".\Release"
        cl.exe /nologo /MD /W3 /Zi /O2 /I "../../include" /I "../../srclib/apr/i
nclude" /I "../../srclib/apr-util/include" /I "../../srclib/zlib" /D "NDEBUG" /D
 "WIN32" /D "_WINDOWS" /Fo".\Release\\" /Fd".\Release\mod_deflate_src" /FD /c ..
\..\srclib\zlib\adler32.c
adler32.c
        cl.exe /nologo /MD /W3 /Zi /O2 /I "../../include" /I "../../srclib/apr/i
nclude" /I "../../srclib/apr-util/include" /I "../../srclib/zlib" /D "NDEBUG" /D
 "WIN32" /D "_WINDOWS" /Fo".\Release\\" /Fd".\Release\mod_deflate_src" /FD /c ..
\..\srclib\zlib\crc32.c
crc32.c
        cl.exe /nologo /MD /W3 /Zi /O2 /I "../../include" /I "../../srclib/apr/i
nclude" /I "../../srclib/apr-util/include" /I "../../srclib/zlib" /D "NDEBUG" /D
 "WIN32" /D "_WINDOWS" /Fo".\Release\\" /Fd".\Release\mod_deflate_src" /FD /c ..
\..\srclib\zlib\deflate.c
deflate.c
NMAKE : fatal error U1073: don't know how to make '"..\..\srclib\zlib\infblock.h
"'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio .NET\VC7
\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"E:\Program Files\Microsoft Visual Studio .NET\VC7
\BIN\nmake.exe"' : return code '0x2'
Stop.

--------------------------------------------------------------------------------
Comment 4 Frank M. Kromann 2005-01-06 00:41:56 UTC
I've just installed 2.0.52 on my XP box (from source) and I had to fix both 
dsp and mak files to build with zlib-1.2.1. I can provide complete files or 
diff's as needed.
Comment 5 William A. Rowe Jr. 2005-09-12 19:03:54 UTC
  First, only zlib 1.1.4 or 1.2.3 are safe, all of the 1.2.0-1.2.2 releases
  had published vulnerabilities.

  Second; ASF isn't refactoring, in fact we are keeping binary compatibility
  for the life of httpd-2.0 (and breaking it when we ship httpd-2.2).
  When httpd-2.2 ships, we are linking (and not compiling ourselves) to
  the zlib 1.2.3, or then-current version of zlib.dll.

  So if you want to plug in a different mod_deflate.dsp which will let you
  build the zlib.dll (zdll.lib) and simply link that .dll with mod_deflate,
  grab the current development project file and save it within your httpd
  2 modules\filters\ directory;

http://svn.apache.org/viewcvs.cgi/*checkout*/httpd/httpd/trunk/modules/filters/mod_deflate.dsp