Hi,

I am trying to compile PHP-4.1.2 on a Redhat machine. The configure goes 
through without any errors. (see configure options below)

However when I do a make I get some gd related errors (see the errors 
below).

I searched the php install list and found messages that said similar errors 
might be due to an old version of GD being installed and to look for the 
gd.h file. I did that, and renamed gd.h and tried compiling again. This time 
around the compile complained that there was no gd.h found on the system.

I also found a FAQ from the php.net site that said that "strange compile 
errors" in GD would go away if I ensured that the GD library and PHP were 
linked against the same depending libraries. I am not sure how to go about 
this. (see directory listings of the libjpeg and libpng from my system 
below).

So I am back to square one, and hoping someone could tell me how to fix it. 
:)

Thanks,
-- Santosh



======================================================================

./configure --prefix=/usr --with-config-file-path=/etc/httpd 
--with-exec-dir=/usr/bin --with-libdir=/usr/lib --enable-bcmath 
--enable-magic-quotes --enable-safe-mode --enable-mbstring 
--enable-mbstr-enc-trans --enable-track-vars --enable-wddx=shared 
--enable-mm=shared --enable-xml --enable-ftp --disable-debug 
--with-apxs=/usr/sbin/apxs --with-zlib --with-ttf --with-jpeg-dir=/usr 
--with-png-dir=/usr --with-gd=/usr --with-gettext=/usr --with-regex=system 
--with-db --with-gdbm --with-interbase=shared --with-pgsql=shared 
--with-ldap --with-imap --with-pdflib=/usr --with-mysql

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

In file included from gd.c:83:
gd_ctx.c:6: warning: `struct gdIOCtx' declared inside parameter list
gd_ctx.c:6: warning: its scope is only this definition or declaration, which 
is
probably not what you want.
gd_ctx.c:12: warning: `struct gdIOCtx' declared inside parameter list
gd_ctx.c:18: warning: `struct gdIOCtx' declared inside parameter list
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:33: `gdIOCtx' undeclared (first use in this function)
gd_ctx.c:33: (Each undeclared identifier is reported only once
gd_ctx.c:33: for each function it appears in.)
gd_ctx.c:33: `ctx' undeclared (first use in this function)
gd.c: At top level:
gd.c:101: parse error before `gdIOCtx'
gd.c: In function `_php_image_create_from_string':
gd.c:1000: `gdIOCtx' undeclared (first use in this function)
gd.c:1000: `io_ctx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromstring':
gd.c:1043: `gdImageCreateFromJpegCtx' undeclared (first use in this 
function)
gd.c:1052: `gdImageCreateFromPngCtx' undeclared (first use in this function)
gd.c:1061: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c:1070: `gdImageCreateFromWBMPCtx' undeclared (first use in this 
function)
gd.c:1079: `gdImageCreateFromGd2Ctx' undeclared (first use in this function)
gd.c: In function `_php_image_create_from':
gd.c:1151: `gdIOCtx' undeclared (first use in this function)
gd.c:1151: `io_ctx' undeclared (first use in this function)
gd.c:1152: parse error before `buff_size'
gd.c:1155: `buff_size' undeclared (first use in this function)
gd.c:1155: `buff_em' undeclared (first use in this function)
gd.c:1162: `buff' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgif':
gd.c:1203: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromjpeg':
gd.c:1216: `gdImageCreateFromJpeg' undeclared (first use in this function)
gd.c:1216: `gdImageCreateFromJpegCtx' undeclared (first use in this 
function)
gd.c: In function `zif_imagecreatefrompng':
gd.c:1229: `gdImageCreateFromPng' undeclared (first use in this function)
gd.c:1229: `gdImageCreateFromPngCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromwbmp':
gd.c:1272: `gdImageCreateFromWBMP' undeclared (first use in this function)
gd.c:1272: `gdImageCreateFromWBMPCtx' undeclared (first use in this 
function)
gd.c: In function `zif_imagecreatefromgd':
gd.c:1284: `gdImageCreateFromGdCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgd2':
gd.c:1293: `gdImageCreateFromGd2' undeclared (first use in this function)
gd.c:1293: `gdImageCreateFromGd2Ctx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgd2part':
gd.c:1306: `gdImageCreateFromGd2Part' undeclared (first use in this 
function)
gd.c:1306: `gdImageCreateFromGd2PartCtx' undeclared (first use in this 
function)
gd.c: In function `zif_imagegif':
gd.c:1430: `gdImageGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagepng':
gd.c:1447: `gdImagePngCtx' undeclared (first use in this function)
gd.c: In function `zif_imagejpeg':
gd.c:1464: `gdImageJpegCtx' undeclared (first use in this function)
gd.c: In function `zif_imagewbmp':
gd.c:1481: `gdImageWBMPCtx' undeclared (first use in this function)
gd.c: In function `zif_imagegd2':
gd.c:1505: `gdImageGd2' undeclared (first use in this function)
gd.c: At top level:
gd.c:3371: parse error before `gdIOCtx'
gd.c: In function `_php_image_bw_convert':
gd.c:3376: `im_org' undeclared (first use in this function)
gd.c:3402: `threshold' undeclared (first use in this function)
gd.c:3412: `gdImageWBMPCtx' used prior to declaration
gd.c:3412: `out' undeclared (first use in this function)
gd.c: In function `_php_image_convert':
gd.c:3501: `gdImageCreateFromJpeg' used prior to declaration
gd.c:3501: warning: assignment makes pointer from integer without a cast
gd.c:3512: `gdImageCreateFromPng' used prior to declaration
gd.c:3512: warning: assignment makes pointer from integer without a cast
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


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


lrwxrwxrwx   1 root     root           14 Jul 14 12:49 libgd.so -> 
libgd.so.1.8.4
lrwxrwxrwx   1 root     root           14 Jul  2 09:02 libgd.so.1.8 -> 
libgd.so.1.8.4
-rwxr-xr-x   1 root     root       211097 Feb 24 04:25 libgd.so.1.8.4

lrwxrwxrwx   1 root     root           17 Sep 20  2001 libjpeg.so -> 
libjpeg.so.62.0.0
lrwxrwxrwx   1 root     root           17 Sep  5  2001 libjpeg.so.62 -> 
libjpeg.so.62.0.0
-rwxr-xr-x   1 root     root       142161 Feb 19 09:53 libjpeg.so.62.0.0

lrwxrwxrwx   1 root     root           17 Jul 14 12:32 libpng.so -> 
libpng.so.3.1.2.1
lrwxrwxrwx   1 root     root           17 Jul  2 09:02 libpng.so.3 -> 
libpng.so.3.1.2.1
-rwxr-xr-x   1 root     root       138064 Feb 19 10:29 libpng.so.3.1.2.1

-rw-r--r--   1 root     root         5404 Mar 21  1999 /usr/include/gd.h


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to