Re: #20972 [Opn->Csd]: make fails during gd.c
| From: | electroteque | Date: | Thu, 12 Dec 2002 21:37:13 +0000 |
| Subject: | Re: #20972 [Opn->Csd]: make fails during gd.c | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92434@lists.php.net to get a copy of this message | ||
i'm sorry this is not fixed , i have RC03
In file included from /usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:89:
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd_ctx.c: In function
`_php_image_output_ctx':
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd_ctx.c:73: structure has no
member named `free'
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd_ctx.c:105: structure has no
member named `free'
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c: In function
`_php_image_type':
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1156: structure has no member
named `free'
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1163: structure has no member
named `free'
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c: In function
`_php_image_create_from':
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1345: structure has no member
named `free'
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1363: warning: assignment
makes pointer from integer without a cast
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c: In function
`zif_imagecreatefromxpm':
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1433: `gdImageCreateFromXpm'
undeclared (first use in this function)
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1433: (Each undeclared
identifier is reported only once
/usr/src/sources/php/php-4.3.0RC3/ext/gd/gd.c:1433: for each function it
appears in.)
i can honestly say checking for a particular version will not help instead
check for versions less than the version that requires gd_free which is
gd-2.0.8
#if HAVE_LIBGD204
io_ctx->gd_free(io_ctx);
#else
io_ctx->free(io_ctx);
#endif
i cant see where this define is coming from HAVE_LIBGD204 ??
<iliaa@php.net> wrote in message
news:20021212194806.31283.qmail@rack1.php.net...
> ID: 20972
> Updated by: iliaa@php.net
> Reported By: garth@cybernode.com
> -Status: Open
> +Status: Closed
> Bug Type: Compile Failure
> Operating System: Linux - 2.4.18 - SuSE 7.2
> PHP Version: 4.3.0RC3
> New Comment:
>
> This bug has been fixed in CVS.
>
> In case this was a PHP problem, snapshots of the sources are packaged
> every three hours; this change will be in the next snapshot. You can
> grab the snapshot at http://snaps.php.net/.
>
> In case this was a documentation problem, the fix will show up soon at
> http://www.php.net/manual/.
>
> In case this was a PHP.net website problem, the change will show
> up on the PHP.net site and on the mirror sites in short time.
>
> Thank you for the report, and for helping us make PHP better.
>
>
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2002-12-12 13:46:02] garth@cybernode.com
>
> /bin/sh libtool --silent --mode=compile gcc -I/usr/local/src/gd-1.8.4/
> -Iext/gd/ -I/usr/local/src/apache2/php-4.3.0RC3/ext/gd/ -DPHP_ATOM_INC
> -I/usr/local/src/apache2/php-4.3.0RC3/include
> -I/usr/local/src/apache2/php-4.3.0RC3/main
> -I/usr/local/src/apache2/php-4.3.0RC3 -I/usr/local/apache2/include
> -I/usr/local/src/apache2/php-4.3.0RC3/Zend -I/usr/local/ssl/include
> -I/usr/local/include -I/usr/local/src/gd-1.8.4/ -I/usr/include/mysql
> -I/usr/local/verisign/payflowpro/linux/lib
> -I/usr/local/src/apache2/php-4.3.0RC3/ext/xml/expat
> -I/usr/local/src/apache2/php-4.3.0RC3/TSRM -g -O2 -prefer-pic -c
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c -o ext/gd/gd.lo
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c: In function
> `_php_image_create_from':
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c:1363: warning:
> assignment makes pointer from integer without a cast
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c: In function
> `zif_imagecreatefromxpm':
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c:1433:
> `gdImageCreateFromXpm' undeclared (first use in this function)
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c:1433: (Each undeclared
> identifier is reported only once
> /usr/local/src/apache2/php-4.3.0RC3/ext/gd/gd.c:1433: for each function
> it appears in.)
> make: *** [ext/gd/gd.lo] Error 1
>
> ------------------------------------------------------------------------
>
>
> --
> Edit this bug report at
> http://bugs.php.net/?id=20972&edit=1
>