|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-13 13:00 UTC] tom at minnesota dot com
/bin/sh libtool --silent --mode=compile gcc -I/usr/local/include -Iext/gd/ -I/usr/local_src /php/php4-STABLE-200212131430/ext/gd/ -DPHP_ATOM_INC -I/usr/local_src/php/php4-STABLE-20021 2131430/include -I/usr/local_src/php/php4-STABLE-200212131430/main -I/usr/local_src/php/php 4-STABLE-200212131430 -I/usr/local_src/php/php4-STABLE-200212131430/Zend -I/usr/local/inclu de -I/usr/pkg/include -I/usr/X11R6/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/ mysql -I/usr/local_src/php/php4-STABLE-200212131430/ext/xml/expat -I/usr/pkg/include -I/us r/local_src/php/php4-STABLE-200212131430/TSRM -g -O2 -prefer-pic -c /usr/local_src/php/ph p4-STABLE-200212131430/ext/gd/gd.c -o ext/gd/gd.lo In file included from /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c:89: /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd_ctx.c: In function `_php_image_output _ctx': /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd_ctx.c:73: structure has no member nam ed `free' /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd_ctx.c:105: structure has no member na med `free' /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c: In function `_php_image_type': /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c:1156: structure has no member named `free' /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c:1163: structure has no member named `free' /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c: In function `_php_image_create_fro m': /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c:1345: structure has no member named `free' gmake: *** [ext/gd/gd.lo] Error 1 --- I'm using gd-2.0.7 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 14:00:02 2025 UTC |
I just checked, there is only one install of gd-2.0.7 and one gd.h ('locate gd.h' confirmed that). in /usr/local_src/php/php4-STABLE-200212131430/ext/gd/gd.c:1345: #if HAVE_LIBGD204 io_ctx->gd_free(io_ctx); #else io_ctx->free(io_ctx); <<<-- 1345 #endif If it's doing line 1345 that means that configured failed to detect gd-2.0.7 being compatible with gd-2.0.4 to set the proper define.checking config.log revealed: configure:27284: gcc -c -g -O2 -I/usr/pkg/include conftest.c 1>&5 configure:27272: gd.h: No such file or directory configure: failed program was: #line 27270 "configure" #include "confdefs.h" #include <gd.h> #include <stdlib.h> int main() { gdIOCtx *ctx; ctx = malloc(sizeof(gdIOCtx)); ctx->gd_free = 1; ; return 0; } seems like it can't find gd.h. very strange. # locate gd.h /usr/local/include/gd.h <<-- symlink /usr/local_install/gd-2.0.7/include/gd.h /usr/local_src/gd/gd-2.0.7/gd.h /usr/local_src/php/php-4.2.2/ext/gd/php_gd.h /usr/local_src/php/php4-STABLE-200212131430/ext/gd/libgd/gd.h /usr/local_src/php/php4-STABLE-200212131430/ext/gd/php_gd.hconfig.nice: './configure' \ '--prefix=/usr/local_install/php-4.2.2' \ '--with-config-file-path=/usr/local/etc' \ '--with-gd=shared,/usr/local' \ '--with-curl=shared,/usr/local' \ '--with-system-regex' \ '--with-gettext=shared,/usr/pkg' \ '--with-pgsql=shared,/usr/local' \ '--with-mysql=shared,/usr/pkg' \ '--with-mcrypt=shared,/usr/pkg' \ '--with-pcre-regex' \ '--with-tiff-dir=/usr/pkg' \ '--with-jpeg-dir=/usr/pkg' \ '--with-png-dir=/usr/pkg' \ '--with-xpm-dir' \ '--with-ttf=/usr/pkg' \ '--with-freetype-dir=/usr/pkg' \ '--with-zlib-dir=shared,/usr' \ '--enable-dbase' \ '--enable-gd-native-ttf' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-sockets' \ '--enable-xml' \ '--enable-trans-sid' \ '--enable-discard-path' \ '--enable-force-cgi-redirect' \ '--enable-memory-limit' \ '--enable-track-vars' \ '--without-t1lib' \ '--disable-static' \ '--enable-shared' \ Also note this snippet from 'configure': 27268 cat > conftest.$ac_ext <<EOF 27269 #line 27270 "configure" 27270 #include "confdefs.h" 27271 27272 #include <gd.h> 27273 #include <stdlib.h> 27274 27275 int main() { 27276 27277 gdIOCtx *ctx; 27278 ctx = malloc(sizeof(gdIOCtx)); 27279 ctx->gd_free = 1; 27280 27281 ; return 0; } 27282 EOF --- 27272 #include <gd.h> my 'gd.h' is in '/usr/local/gd.h'. Seems like that include line is only looking in the system include path. It's not even using the path that was provided in --with-gd.