#36686 [NEW]: Compile failure if using external GD lib
| From: | chtekk at gentoo dot org | Date: | Fri, 10 Mar 2006 17:42:50 +0000 |
| Subject: | #36686 [NEW]: Compile failure if using external GD lib | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94150@lists.php.net to get a copy of this message | ||
From: chtekk at gentoo dot org
Operating system: Gentoo/Linux
PHP version: 5.1.3RC1
PHP Bug Type: Compile Failure
Bug description: Compile failure if using external GD lib
Description:
------------
Trying out 5.1.3RC1 on Gentoo we noticed that if you're using the external
GD library instead of the bundled one, the compile fails. I think
http://cvs.php.net/viewcvs.cgi/php-src/ext/gd/gd.c?r1=1.312.2.18&r2=1.312.2.19&pathrev=PHP_5_1
and the other related changes are the cause for this, as the bundled libgd
was modifed to support the passing of the ignore_warning parameter, but
the external libgd doesn't know about this, thus causing the compile to
fail.
Best regards, CHTEKK.
Expected result:
----------------
PHP should compile fine. ;)
Actual result:
--------------
/bin/sh /portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/libtool --silent
--preserve-dup-deps --mode=compile
/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/meta_ccld -I/usr/include
-Iext/gd/ -I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/gd/
-DPHP_ATOM_INC -I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/include
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/main
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1 -I/usr/include/libxml2
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/date/lib
-I/usr/include/freetype2 -I/usr/include/imap
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/mbstring/oniguruma
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/mbstring/libmbfl
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/pspell
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/TSRM
-I/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/Zend -D_REENTRANT
-I/usr/include -march=nocona -O2 -pipe -fomit-frame-pointer -fforce-addr
-pthread -DZTS -prefer-pic -c
/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/gd/gd.c -o
ext/gd/gd.lo
/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/gd/gd.c: In function
`_php_image_create_from':
/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/gd/gd.c:1638: error:
too many arguments to function `gdImageCreateFromJpeg'
/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/gd/gd.c: In function
`_php_image_convert':
/portcomp/portage/php-5.1.3_rc1/work/php-5.1.3RC1/ext/gd/gd.c:3921: error:
too many arguments to function `gdImageCreateFromJpeg'
make: *** [ext/gd/gd.lo] Error 1
make: *** Waiting for unfinished jobs....
--
Edit bug report at http://bugs.php.net/?id=36686&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36686&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36686&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36686&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36686&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36686&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36686&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36686&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36686&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36686&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36686&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36686&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36686&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36686&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36686&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36686&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36686&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36686&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36686&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36686&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36686&r=mysqlcfg