# Nginx build against zlib-1.2.4 fails

**URL:** <https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492>\
**Category:** NGINX\
**Created:** [March 21, 2010, 4:32pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492 "2010-03-21T16:32:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vys](https://www.ruby-forum.com/u/vys)\
**Post date:** [March 21, 2010, 4:32pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492/1 "2010-03-21T16:32:50Z")

</div>

Hi,  
zlib-1.2.4 has been released recently and it’s default Makefile has  
changed.  
It now only contains distclean target and no target named ‘clean’ before  
./configure is run. Hence, nginx source build against zlib-1.2.4 fails.  
Please fix this in the next release.

Thanks,  
Vinay

---

<div class="post-metadata">

**Author:** ![vys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vys](https://www.ruby-forum.com/u/vys)\
**Post date:** [March 22, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492/2 "2010-03-22T16:12:53Z")

</div>

Hello!

On Sun, Mar 21, 2010 at 09:02:03PM +0530, Vinay Y S wrote:

> zlib-1.2.4 has been released recently and it’s default Makefile has changed.  
> It now only contains distclean target and no target named ‘clean’ before  
> ./configure is run. Hence, nginx source build against zlib-1.2.4 fails.  
> Please fix this in the next release.

Patch.

Maxim D.

---

<div class="post-metadata">

**Author:** ![vys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vys](https://www.ruby-forum.com/u/vys)\
**Post date:** [March 24, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492/3 "2010-03-24T19:44:47Z")

</div>

diff --git a/auto/lib/zlib/make b/auto/lib/zlib/make  
index 4d62b75…b874b04 100644  
— a/auto/lib/zlib/make  
+++ b/auto/lib/zlib/make  
@@ -53,7 +53,7 @@ END

$ZLIB/libz.a: $NGX\_MAKEFILE  
cd $ZLIB \

- 

```
  && \$(MAKE) clean \\

```

- 

```
  && \$(MAKE) distclean \\
  && cp contrib/asm586/match.S . \\
  && CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
          ./configure \\

```

@@ -70,7 +70,7 @@ END

$ZLIB/libz.a: $NGX\_MAKEFILE  
cd $ZLIB \

- 

```
  && \$(MAKE) clean \\

```

- 

```
  && \$(MAKE) distclean \\
  && cp contrib/asm686/match.S . \\
  && CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
          ./configure \\

```

@@ -103,7 +103,7 @@ if [$done = NO]; then

$ZLIB/libz.a: $NGX\_MAKEFILE  
cd $ZLIB \

- 

```
  && \$(MAKE) clean \\

```

- 

```
  && \$(MAKE) distclean \\
  && CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
          ./configure \\
  && \$(MAKE) libz.a

```

–  
Vinay

---

<div class="post-metadata">

**Author:** ![vys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vys](https://www.ruby-forum.com/u/vys)\
**Post date:** [March 24, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492/4 "2010-03-24T20:05:17Z")

</div>

Hello!

On Thu, Mar 25, 2010 at 12:13:21AM +0530, Vinay Y S wrote:

> diff --git a/auto/lib/zlib/make b/auto/lib/zlib/make  
> index 4d62b75..b874b04 100644  
> — a/auto/lib/zlib/make  
> +++ b/auto/lib/zlib/make  
> @@ -53,7 +53,7 @@ END

[…]

Uhm, see no difference with the one I’ve posted. Am I missed  
something?

Maxim D.

---

<div class="post-metadata">

**Author:** ![vys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vys](https://www.ruby-forum.com/u/vys)\
**Post date:** [March 24, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/nginx-build-against-zlib-1-2-4-fails/185492/5 "2010-03-24T20:08:47Z")

</div>

oops. I didn’t notice your patch attachment. I thought you were asking  
for  
the patch :-p Both are fine.
