ID:               20995
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: NetBSD/Alpha (64bit) - 1.6
 PHP Version:      4CVS-2002-12-13 (stable)
 New Comment:

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.h


Previous Comments:
------------------------------------------------------------------------

[2002-12-13 13:45:49] [EMAIL PROTECTED]

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.

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

[2002-12-13 13:25:13] [EMAIL PROTECTED]

I think the error you are seeing is due to your system having more then
one gd library. Old gd versions by default went to /usr, while the new
release go to /usr/local, the result is a header confusion responsible
for the error you are seeing. To confirm this see if you have more then
one copy of gd, by doing 'locate gd.h'.

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

[2002-12-13 13:22:43] [EMAIL PROTECTED]

I wished when you guys say that the bug was fixed in cvs, you should
supply the date of the cvs version.

In my case, I compiled from cvs snapshot last night. So unless it was
fixed this morning, I don't think it could be fixed in cvs.

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

[2002-12-13 13:15:14] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

http://bugs.php.net/20083

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

[2002-12-13 13:13:12] [EMAIL PROTECTED]

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.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20995

-- 
Edit this bug report at http://bugs.php.net/?id=20995&edit=1

Reply via email to