php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17474 Problems compiling PHP with GD2.0.1
Submitted: 2002-05-28 04:43 UTC Modified: 2002-06-18 06:14 UTC
From: paolo at i-dome dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paolo at i-dome dot com
New email:
PHP Version: OS:

 

 [2002-05-28 04:43 UTC] paolo at i-dome dot 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-17 21:23 UTC] sniper@php.net
Try this snapshot:
http://snaps.php.net/php4-latest.tar.gz

Also, you should use the install prefixes for the configure
options..

 [2002-06-18 06:14 UTC] paolo at i-dome dot com
Thanks,
the problem are a old version of GD installed and retrived from the compiler (includes files).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC