PHP 4 Make (GD) problem
| From: | Ben Craig | Date: | Mon, 01 Sep 2003 13:24:51 +0000 |
| Subject: | PHP 4 Make (GD) problem | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-11796@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to recompile my PHP 4 installation (4.3.1),
but get the following errors at the "make" stage:
ext/mysql/libmysql/my_tempnam.lo: In function
`my_tempnam':
/home/virtual/home/webmaster/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103:
the use of `tempnam' is dangerous, better use
`mkstemp'
ext/gd/gd.lo: In function `zif_imagecolormatch':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:751:
undefined reference to `gdImageColorMatch'
ext/gd/gd.lo: In function `zif_imagerotate':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:1022:
undefined reference to `gdImageRotate'
ext/gd/gd.lo: In function `zif_imagecreatefromstring':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:1237:
undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.lo: In function `zif_imagecreatefromgif':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:1393:
undefined reference to `gdImageCreateFromGifCtx'
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:1393:
undefined reference to `gdImageCreateFromGif'
ext/gd/gd.lo: In function `_php_image_convert':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:3613:
undefined reference to `gdImageCreateFromGif'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
The ./configure command looked like:
./configure --with-apxs=/usr/sbin/apxs
--with-config-file-path=/usr/local/lib
--enable-versioning --with-gd=/usr
--enable-gd-native-ttf --with--freetype-dir=/usr
--with-jpeg-dir=/usr --with-png-dir=/usr
--with-zlib-dir --with-gdbm --with-mysql
--enable-magic-quotes --disable-safe-mode
The system is Redhat 7.2.
As I'm not that familiar with PHP on Linux, any
suggestions would be greatly appreciated.
Regards,
Ben Craig.
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/