Snort mailing list archives

Problems compiling PHP 4.3.9 with GD-2.0.28


From: "Andy" <andy () page55 com>
Date: Fri, 22 Oct 2004 15:35:17 -0500


Hi all,
I've posted this in php forums, but nobody can (or will) help. Since most of
you have probably setup acid, I'm hopeing you can help.

I'm running redhat 7.3
php-4.3.9
GD-2.0.28

I'm attemping to re-compile PHP with the GD library but am stuck. I've
compiled GD-2.0.28 and it seemed to go ok.
GD shows YES for support for all types of image formats.

GD is installed in: /usr/local/src/GD-2.0.28
PHP is installed in: /usr/local/src/php-4.3.9
zlib, jpeg-6b, and libpng are also installed
under /usr/local/src respectively.

This is the command I'm using to compile PHP:
[root@tunes php-4.3.9]#
./configure --with-apache=../apache_1.3.31 --with-mysql --with-gd --with-zli
b-dir=../zlib-1.2.1 --with-jpeg-dir=../jpeg-6b --with-png-dir=../libpng-1.2.
7

While the php compile finishes and looks ok, the problem comes up when I run
MAKE. The problem looks to do with something called gdImageColorResolve':

Any idea of what this is?

below is the end of the MAKE:

[root@tunes php-4.3.9]# make > phpmake.txt
ext/gd/libgd/gd.o: In function `gdImageColorResolve':
/usr/local/src/php-4.3.9/ext/gd/libgd/gd.c:497: multiple definition of
`gdImageColorResolve'
ext/gd/gd.o:/usr/local/src/php-4.3.9/ext/gd/gd.c:551: first defined here
/usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 222
to 27 in ext/gd/libgd/gd.o
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/usr/local/src/php-4.3.9/ext/mysql/libmysql/my_tempnam.c:115: the use of
`tempnam' is dangerous, better use `mkstemp'
ext/gd/gd.o: In function `zif_imagecolorat':
/usr/local/src/php-4.3.9/ext/gd/gd.c:1887: undefined reference to
`gdImageBoundsSafe'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
-----end------
Attached is the php complile output.

Any help is greatly appreciated,
Thanks

Andy


Attachment: phpcompile.txt
Description:


Current thread: