# build gd and zlib

- Thread: https://externals.io/message/6179
- Original archive: https://news-web.php.net/php.internals/6179
- Started by John Huntjens on 2003-12-04T07:21:42+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6179 — John Huntjens — 2003-12-04T07:21:42+00:00

URL: https://externals.io/message/6179#6179

Hello group,

building with options

 --with-zlib=shared,/usr \
 --with-gd=shared \

fails

configure:30085: gcc -o
conftest -g -O2   -Wl,-rpath,/usr/local/libxml/lib -L/usr/local/libxml/lib -
lz conftest.c -lpng  -lresolv -lm -ldl -lnsl  -lxml2 -lm -lxml2 -lm 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libpng.a(pngwrite.o): In
function `png_write_flush':
pngwrite.o(.text+0x115c): undefined reference to `deflate'

while

 --with-zlib=/usr \
 --with-gd=shared \

suceeds.

Gr,

JOhn

---

## #6180 — Jani Taskinen — 2003-12-04T07:41:06+00:00

URL: https://externals.io/message/6179#6180 · In reply to: #6179

The build doesn't fail, only configure. Big difference..
    Use --with-zlib-dir.
    
    --Jani
    



>Hello group,
>
>building with options
>
> --with-zlib=shared,/usr \
> --with-gd=shared \
>
>fails
>
>configure:30085: gcc -o
>conftest -g -O2   -Wl,-rpath,/usr/local/libxml/lib -L/usr/local/libxml/lib -
>lz conftest.c -lpng  -lresolv -lm -ldl -lnsl  -lxml2 -lm -lxml2 -lm 1>&5
>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../libpng.a(pngwrite.o): In
>function `png_write_flush':
>pngwrite.o(.text+0x115c): undefined reference to `deflate'
>
>while
>
> --with-zlib=/usr \
> --with-gd=shared \
>
>suceeds.
>
>Gr,
>
>JOhn
