|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-11-17 09:41 UTC] mcdaniew at ucsu dot colorado dot edu
In file included from /home/wade/php4-200211171430/ext/gd/gd.c:89: /home/wade/php4-200211171430/ext/gd/gd_ctx.c: In function `_php_image_output_ctx': /home/wade/php4-200211171430/ext/gd/gd_ctx.c:73: structure has no member named `free' Yes its this error again, and I do know that this error has been fixed in CVS. I even looked at the code and it should work, except #if HAVE_LIBGD204 isint being activated by the preprocessor. I have gd-2.0.7 installed. How can I get the compiler to know I have a gd version greater than or equal to gd-2.0.4? Heres my configure line ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-bz2 --enable-calendar --with-gd=/usr/local/ --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-tiff-dir=/usr/ --with-zlib-dir=/usr/ --with-gettext --with-imap --with-imap-ssl=/usr/local/ssl/ --enable-mime-magic --with-mysql=/usr/local/ --enable-sockets --with-pdflib --with-swf=/usr/local/ --with-kerberos Thanks for the help, and for the great product! -wade PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 14:00:01 2025 UTC |
In the posted config.log I see: configure:30012: checking for gdFreeFontCache in -lgd configure:30031: gcc -o conftest -g -O2 -L/usr/local//lib -Wl,-rpath,/usr//lib -L/usr//lib -Wl,-rpath,/usr/local//lib -L/usr/local//lib conftest.c -lgd -lgd -lpng -lz -ljpeg -lbz2 -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /tmp/ccB9MDRB.o: In function `main': /home/wade/php4-200211171430/configure:30027: undefined reference to `gdFreeFontCache' collect2: ld returned 1 exit status configure: failed program was: #line 30020 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gdFreeFontCache(); int main() { gdFreeFontCache() ; return 0; } That means that the requirement for GD 2.0.4 (or higher) is not met. I think you still have some old headers or libraries on your machine, and therefore the build script is picking up the wrong ones. Can you please check that? Derick