Bug #17474 Updated: Problems compiling PHP with GD2.0.1
ID: 17474
Updated by: sniper@php.net
Reported By: paolo@i-dome.com
-Status: Open
+Status: Feedback
-Bug Type: Compile Failure
+Bug Type: GD related
Operating System: Linux
PHP Version: 4.2.1
New Comment:
Try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
Also, you should use the install prefixes for the configure
options..
Previous Comments:
------------------------------------------------------------------------
[2002-05-28 04:43:53] paolo@i-dome.com
I have followed the indication of Rasmus on the page ~rasmus/gd.html
but, compiling php, have this problem:
gcc -I. -I/install/php-4.2.1/ext/gd -I/install/php-4.2.1/main
-I/install/php-4.2.1 -I/install/apache_1.3.14/src/include
-I/install/apache_1.3.14/src/os/unix -I/install/php-4.2.1/Zend
-I/usr/local/include -I/usr/local/include/freetype2/freetype
-I/install/libmcal -I/install/php-4.2.1/ext/mysql/libmysql
-I/install/php-4.2.1/ext/xml/expat -I/install/php-4.2.1/TSRM -g -O2
-c gd.c && touch gd.lo
gd.c: In function `zm_startup_gd':
gd.c:303: `gdArc' undeclared (first use in this function)
gd.c:303: (Each undeclared identifier is reported only once
gd.c:303: for each function it appears in.)
gd.c:304: `gdPie' undeclared (first use in this function)
gd.c:305: `gdChord' undeclared (first use in this function)
gd.c:306: `gdNoFill' undeclared (first use in this function)
gd.c:307: `gdEdged' undeclared (first use in this function)
gd.c: In function `zif_imagecreatetruecolor':
gd.c:588: warning: assignment makes pointer from integer without a
cast
gd.c: In function `zif_imagecolorat':
gd.c:1626: structure has no member named `tpixels'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/install/php-4.2.1/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/install/php-4.2.1/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/install/php-4.2.1/ext'
make: *** [all-recursive] Error 1
My configuration script:
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs
--with-gd=../gd-2.0.1 --enable-safe-mode
--with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin
--enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so
--enable-track-vars --enable-xml --disable-debug --with-ldap
--with-imap --enable-ftp --with-mysql --with-mcal=../libmcal
--with-pdflib --with-curl --with-zlib --with-jpeg-dir=../jpeg-6b
--with-tiff-dir --with-freetype-dir --enable-gd-native-ttf
--enable-gd-imgstrttf --with-png-dir
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17474&edit=1
Thread (3 messages)