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.
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.
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?
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. --------------------------------------------------------------------------------
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.
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