php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20821 Make fails
Submitted: 2002-12-04 18:27 UTC Modified: 2002-12-05 09:57 UTC
From: ken at kyler dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: Latest CVS (4.4.x-dev) OS: FreeBSD 4.7-STABLE
Private report: No CVE-ID: None
 [2002-12-04 18:27 UTC] ken at kyler dot com
I am trying to test the latest build to see if bug #19378 has been fixed.  I have downloaded both Stable (4.3.x-dev) and Latest CVS (4.4.x-dev) both built on: Dec 04, 2002 22:30 GMT.  Both were configured with...

./configure \
	--with-config-file-path=/usr/local/etc/php.standalone \
	--disable-pear \
	--enable-discard-path \
	--with-readline=/usr \
	--enable-versioning \
	--with-regex=system \
	--with-gd=/usr/local \
	--enable-gd-native-ttf \
	--with-freetype-dir=/usr/local \
	--with-jpeg-dir=/usr/local \
	--with-png-dir=/usr/local \
	--with-zlib \
	--with-mysql=/usr/local \
	--enable-trans-sid \
	--prefix=/usr/local

and both fail to compile at the same place.  See below.

gcc -I/usr/local/include -Iext/gd/ -I/usr/local/src/php4-200212042230/ext/gd/ -DPHP_ATOM_INC -I/usr/local/src/php4-200212042230/include -I/usr/local/src/php4-200212042230/main -I/usr/local/src/php4-200212042230 -I/usr/local/src/php4-200212042230/Zend -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/mysql -I/usr/local/src/php4-200212042230/ext/xml/expat  -I/usr/local/src/php4-200212042230/TSRM  -g -O2  -c /usr/local/src/php4-200212042230/ext/gd/gd.c -o ext/gd/gd.o  && echo > ext/gd/gd.lo
/usr/local/src/php4-200212042230/ext/gd/gd.c: In function `_php_image_create_from':
/usr/local/src/php4-200212042230/ext/gd/gd.c:1426: warning: assignment makes pointer from integer without a cast
/usr/local/src/php4-200212042230/ext/gd/gd.c: In function `zif_imagecreatefromxpm':
/usr/local/src/php4-200212042230/ext/gd/gd.c:1495: `gdImageCreateFromXpm' undeclared (first use in this function)
/usr/local/src/php4-200212042230/ext/gd/gd.c:1495: (Each undeclared identifier is reported only once
/usr/local/src/php4-200212042230/ext/gd/gd.c:1495: for each function it appears in.)
*** Error code 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-04 18:33 UTC] iliaa@php.net
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.


 [2002-12-04 20:35 UTC] ken at kyler dot com
the Latest CVS (4.4.x-dev) Built On: Dec 05, 2002 02:30 GMT

fails to compile at

gcc -I/usr/local/include -Iext/gd/ -I/usr/local/src/php4-200212050230/ext/gd/ -DPHP_ATOM_INC -I/usr/local/src/php4-200212050230/include -I/usr/local/src/php4-200212050230/main -I/usr/local/src/php4-200212050230 -I/usr/local/src/php4-200212050230/Zend -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/mysql -I/usr/local/src/php4-200212050230/ext/xml/expat  -I/usr/local/src/php4-200212050230/TSRM  -g -O2  -c /usr/local/src/php4-200212050230/ext/gd/gd.c -o ext/gd/gd.o  && echo > ext/gd/gd.lo
/usr/local/src/php4-200212050230/ext/gd/gd.c: In function `_php_image_create_from':
/usr/local/src/php4-200212050230/ext/gd/gd.c:1427: warning: assignment makes pointer from integer without a cast
/usr/local/src/php4-200212050230/ext/gd/gd.c: In function `zif_imagecreatefromxpm':
/usr/local/src/php4-200212050230/ext/gd/gd.c:1497: `gdImageCreateFromXpm' undeclared (first use in this function)
/usr/local/src/php4-200212050230/ext/gd/gd.c:1497: (Each undeclared identifier is reported only once
/usr/local/src/php4-200212050230/ext/gd/gd.c:1497: for each function it appears in.)
*** Error code 1

Stop in /usr/local/src/php4-200212050230.
 [2002-12-04 22:43 UTC] sniper@php.net
Check main/php_config.h for line with HAVE_GD_XPM.
Is it '#define HAVE_GD_XPM 1' ??

 [2002-12-05 04:42 UTC] ken at kyler dot com
yes -  it is '#define HAVE_GD_XPM 1' ??
 [2002-12-05 09:23 UTC] iliaa@php.net
I've noticed you are using a non-bundled GD library that has a bug, the gdImageCreateFromXpm() function is not defined in any headers. Can you try making a clean CVS build and use the bundled GD library?
 [2002-12-05 09:57 UTC] ken at kyler dot com
it now compiles with the latest 4.4.x CVS and using the bundled GD library.  Next I'll see if bug #19378 has been
fixed.

Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 16:01:36 2024 UTC