On Tue, Aug 25, 2009 at 02:27:02PM +0200, Ondřej Surý wrote:
> Hi Gábor,
> 
> can you try this patch?
> 
> diff --git a/ext/gd/libgd/gd_compat.c b/ext/gd/libgd/gd_compat.c
> index bba6234..473ea20 100644
> --- a/ext/gd/libgd/gd_compat.c
> +++ b/ext/gd/libgd/gd_compat.c
> @@ -14,7 +14,7 @@ int gdJpegGetVersionInt()
>       return JPEG_LIB_VERSION;
>  }
> 
> -int gdJpegGetVersionString()
> +const char * gdJpegGetVersionString()
>  {
>       switch(JPEG_LIB_VERSION) {
>               case 62:
> diff --git a/ext/gd/libgd/gd_compat.h b/ext/gd/libgd/gd_compat.h
> index 022d0a8..c084a00 100644
> --- a/ext/gd/libgd/gd_compat.h
> +++ b/ext/gd/libgd/gd_compat.h
> @@ -8,7 +8,7 @@
>  #endif
> 
>  const char * gdPngGetVersionString();
> -int gdJpegGetVersionString();
> +const char * gdJpegGetVersionString();
>  int gdJpegGetVersionInt();
>  int overflow2(int a, int b);
> 
> It's ok, just to copy ext/gd outside php source tree, install
> php5-dev, run phpize && configure && make && make install

Actually I needed "./configure --with-jpeg-dir --with-png-dir
--with-zlib-dir --with-xpm-dir --with-freetype-dir --with-t1lib" because
./configure did not find the libraries otherwise, but after that the
patch seems to work fine. Thanks.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to