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 oftempnam' is dangerous, better use
mkstemp'
ext/gd/gd.lo: In functionzif_imagecolormatch':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:751:
undefined reference to gdImageColorMatch'
ext/gd/gd.lo: In functionzif_imagerotate':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:1022:
undefined reference to gdImageRotate'
ext/gd/gd.lo: In functionzif_imagecreatefromstring':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:1237:
undefined reference to gdImageCreateFromGifCtx'
ext/gd/gd.lo: In functionzif_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 togdImageCreateFromGif'
ext/gd/gd.lo: In function _php_image_convert':
/home/virtual/home/webmaster/php-4.3.1/ext/gd/gd.c:3613:
undefined reference togdImageCreateFromGif'
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 as I've been messing around with it for a week now and in danger of thinking that it would have been better to do it on Windows.
Regards,
Ben Craig.