php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29627 Compile Failure with external gd 2.0.28
Submitted: 2004-08-12 08:33 UTC Modified: 2004-09-30 19:15 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: fev at ukrti dot com dot ua Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.8 OS: Red Hat 7.3 with kernel 2.4.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fev at ukrti dot com dot ua
New email:
PHP Version: OS:

 

 [2004-08-12 08:33 UTC] fev at ukrti dot com dot ua
Description:
------------
When i try compile php 4.3.8 with external GD library 2.0.28 (with support GIF read, create) compiling hasn't done. It stopped when find fuction like ?reateGIF in the gd 2.0.28.

Reproduce code:
---------------
./configure --with-mysql=/usr/local/mysql --with-mysql-sock=/usr/local/mysql/mysql.sock --with-zlib=/usr/local --with-openssl=/usr/local/ssl --with-curl=/usr/local --with-gd=/usr/local/gd2 --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-ttf --with-freetype-dir=/usr/local/freetype2 --enable-gd-native-ttf --with-gettext --enable-calendar --enable-ftp --enable-sockets

Expected result:
----------------
.....
ext/gd/gd.o(.text+0x3639): In function `zif_imagecreatefromstring':
/src/php/php-4.3.8/ext/gd/gd.c:1336: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.o(.text+0x3a52): In function `zif_imagecreatefromgif':
/src/php/php-4.3.8/ext/gd/gd.c:1492: undefined reference to `gdImageCreateFromGif'
ext/gd/gd.o(.text+0x3a5c):/src/php/php-4.3.8/ext/gd/gd.c:1492: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.o(.text+0x4392): In function `zif_imagegif':
/src/php/php-4.3.8/ext/gd/gd.c:1727: undefined reference to `gdImageGifCtx'
ext/gd/gd.o(.text+0xade4): In function `_php_image_convert':
/src/php/php-4.3.8/ext/gd/gd.c:3741: undefined reference to `gdImageCreateFromGif'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-25 09:14 UTC] fev at ukrti dot com dot ua
Bug has still alive.

I have tried php source php4-STABLE-200408250430.
My test configure command:

./configure --with-zlib=/usr/local --with-gd=/usr/local/gd2 --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-ttf --with-freetype-dir=/usr/local/freetype2 --enable-gd-native-ttf --with-gettext

Result of test compiling:

ext/gd/gd.o(.text+0x3639): In function `zif_imagecreatefromstring':
/src/php_dev/php4-STABLE-200408250430/ext/gd/gd.c:1341: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.o(.text+0x3a62): In function `zif_imagecreatefromgif':
/src/php_dev/php4-STABLE-200408250430/ext/gd/gd.c:1497: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.o(.text+0x3a75):/src/php_dev/php4-STABLE-200408250430/ext/gd/gd.c:1497: undefined reference to `gdImageCreateFromGif'
ext/gd/gd.o(.text+0x43cc): In function `zif_imagegif':
/src/php_dev/php4-STABLE-200408250430/ext/gd/gd.c:1732: undefined reference to `gdImageGifCtx'
ext/gd/gd.o(.text+0xae14): In function `_php_image_convert':
/src/php_dev/php4-STABLE-200408250430/ext/gd/gd.c:3746: undefined reference to `gdImageCreateFromGif'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
 [2004-09-01 09:10 UTC] fev at ukrti dot com dot ua
Bug has still alive with php 4.3.9RC2
 [2004-09-16 10:51 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Also make sure you have exactly ONE version of GD libraries installed on your system. The way to make sure is to delete every occurance of the gd related header and library files and reinstall it.
 [2004-09-17 17:54 UTC] fev at ukrti dot com dot ua
I try to reinstall all fresh components:

Zlib-1.2.1
./configure --prefix=/usr/local/zlib-1.2.1
make
make install

libpng-1.2.7 (with zlib-1.2.1) to /usr/local/libpng-1.2.7
make
make install

gd-2.0.28
./configure --prefix=/usr/local/gd-2.0.28 --with-png=/usr/local/libpng-1.2.7 --with-jpeg=no 

--with-freetype=no --with-xpm=no
make
make install

then php4-STABLE-200409161230
./configure --with-zlib=/usr/local/zlib-1.2.1 --with-gd=/usr/local/gd-2.0.28 

--with-png-dir=/usr/local/libpng-1.2.7 
make

and I get again:

ext/mysql/libmysql/my_tempnam.o(.text+0x53): In function `my_tempnam':
/src/php2/php4-STABLE-200409161230/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp'
ext/gd/gd.o(.text+0x817): In function `zm_deactivate_gd':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:388: undefined reference to `gdFontCacheShutdown'
ext/gd/gd.o(.text+0x356d): In function `zif_imagecreatefromstring':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1323: undefined reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.o(.text+0x3a52): In function `zif_imagecreatefromjpeg':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1507: undefined reference to `gdImageCreateFromJpeg'
ext/gd/gd.o(.text+0x3a5c):/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1507: undefined reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.o(.text+0x4402): In function `zif_imagejpeg':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1760: undefined reference to `gdImageJpegCtx'
ext/gd/gd.o(.text+0xa748): In function `_php_image_convert':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:3756: undefined reference to `gdImageCreateFromJpeg'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

Pleasure your comments?
 [2004-09-17 20:01 UTC] fev at ukrti dot com dot ua
Sorry for Previous my post. It was my fault.
But problem has still alive:
Here new info about it.

I said early I reinstall fresh component:
zlib-1.2.1
libpng-1.2.7
gd-2.0.28
libjpeg-v6b
freetype-2.1.9

And then I tried to compile php4-STABLE-200409161230 with configure:
./configure --with-zlib=/usr/local/zlib-1.2.1
--with-gd=/usr/local/gd-2.0.28
--with-png-dir=/usr/local/libpng-1.2.7 
--with-jpeg-dir=/usr/local
--with-ttf
--with-freetype-dir=/usr/local/freetype-2.1.9
--enable-gd-native-ttf

Compile was done.

Then I tried to compile full package of my APACHE+MYSQL+PHP
and every time i get compile FAILURE.
./configure --with-zlib=/usr/local/zlib-1.2.1
--with-gd=/usr/local/gd-2.0.28
--with-png-dir=/usr/local/libpng-1.2.7 
--with-jpeg-dir=/usr/local
--with-ttf
--with-freetype-dir=/usr/local/freetype-2.1.9
--enable-gd-native-ttf
--with-mysql=/usr/local/mysql
--with-mysql-sock=/usr/local/mysql/mysql.sock
--with-openssl=/usr/local/ssl
--with-curl=/usr/local
--with-gettext 
--enable-calendar --enable-ftp --enable-sockets

I spent a lot of time for found this reason.
I explored that when I add --with-curl=/usr/local
compile failure (Curl had version 7.11.1)
Then I upgrade curl to fresh version 7.12.1
and recompile my old package APACHE+MYSQL+PHP (with php 4.3.8, gd 2.0.23 bundle and new curl) It was fine.
Then i try recompile only new php4-STABLE-200409161230 with new curl and gd 2.0.28
like this:

./configure --with-zlib=/usr/local/zlib-1.2.1
--with-gd=/usr/local/gd-2.0.28
--with-png-dir=/usr/local/libpng-1.2.7 
--with-jpeg-dir=/usr/local
--with-ttf
--with-freetype-dir=/usr/local/freetype-2.1.9
--enable-gd-native-ttf

--with-curl=/usr/local
And get compile failure again.

ext/gd/gd.o(.text+0x35d9): In function `zif_imagecreatefromstring':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1341: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.o(.text+0x3a02): In function `zif_imagecreatefromgif':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1497: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/gd.o(.text+0x3a15):/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1497: undefined reference to `gdImageCreateFromGif'
ext/gd/gd.o(.text+0x436c): In function `zif_imagegif':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:1732: undefined reference to `gdImageGifCtx'
ext/gd/gd.o(.text+0xa474): In function `_php_image_convert':
/src/php2/php4-STABLE-200409161230/ext/gd/gd.c:3746: undefined reference to `gdImageCreateFromGif'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
 [2004-09-30 19:15 UTC] sniper@php.net
You use weird prefixes for the installed pieces of software thus the libraries are not found as you have failed to add the paths of the libraries into your /etc/ld.so.conf file. Not PHP bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 10:01:30 2024 UTC