#19394 [Opn->Fbk]: compile fails with gd-2.0.1

From: Date: Sun, 15 Sep 2002 11:42:37 +0000
Subject: #19394 [Opn->Fbk]: compile fails with gd-2.0.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19394@lists.php.net to get a copy of this message
ID: 19394 Updated by: sander@php.net Reported By: bernhard@csa-gmbh.com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: linux - kernel 2.4 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Try the --with-gd=php compile option. Previous Comments: ------------------------------------------------------------------------ [2002-09-15 06:39:38] h.t.d@gmx.de install GD 2.0.1 (based on redhat 7.3 with apache 2.0.40/php 4.2.3) - more tips at http://www.php.net/~rasmus/gd.html - first compile the needed ttf library $ tar xjf freetype-2.0.9.tar.bz2 $ ./configure $ make # make install - now libgd $ tar xzf gd-2.0.1.tar.gz <edit "Makefile"> LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm INCLUDEDIRS=-I. -I/usr/local/include/freetype2 ... </edit> # make libgd.a - if you want to you can, but dont have to run: # make install - then configure php like this $ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd=/home/htd/gd-2.0.1 \ --with-freetype-dir=/usr \ --enable-gd-native-ttf \ --enable-gd-imgstrttf \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib get debian - they have gd2 in their testing php package ;) hth Mike ------------------------------------------------------------------------ [2002-09-13 11:57:34] bernhard@csa-gmbh.com make fails (only if '--with-gd' is present): ...snip.... make[3]: Leaving directory `/d2/apache2/php-4.2.3/ext/gd' make[2]: Leaving directory `/d2/apache2/php-4.2.3/ext/gd' Making all in mysql make[2]: Entering directory `/d2/apache2/php-4.2.3/ext/mysql' Making all in libmysql make[3]: Entering directory `/d2/apache2/php-4.2.3/ext/mysql/libmysql' make[4]: Entering directory `/d2/apache2/php-4.2.3/ext/mysql/libmysql' /bin/sh /d2/apache2/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/d2/apache2/php-4.2.3/ext/ mysql/libmysql -I/d2/apache2/php-4.2.3/main -I/d2/apache2/php-4.2.3 -I/d2/apache2/include -I/d2/apa che2/php-4.2.3/Zend -I/usr/local/include -I/d2/apache2/php-4.2.3/ext/mysql/libmysql -I/d2/apache2/p hp-4.2.3/ext/xml/expat -D_REENTRANT -I/d2/apache2/php-4.2.3/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c libmysql.c In file included from libmysql.c:5: global.h:256: warning: redefinition of `uint' /usr/include/sys/types.h:146: warning: `uint' previously declared here global.h:257: warning: redefinition of `ushort' /usr/include/sys/types.h:145: warning: `ushort' previously declared here global.h:258: warning: redefinition of `ulong' /usr/include/sys/types.h:144: warning: `ulong' previously declared here In file included from libmysql.c:12: m_string.h:180: parse error before `__extension__' m_string.h:180: parse error before `&&' make[4]: *** [libmysql.lo] Error 1 make[4]: Leaving directory `/d2/apache2/php-4.2.3/ext/mysql/libmysql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/d2/apache2/php-4.2.3/ext/mysql/libmysql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/d2/apache2/php-4.2.3/ext/mysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/d2/apache2/php-4.2.3/ext' make: *** [all-recursive] Error 1 configure-command: ./configure --with-prefix=/d2/apache2 \ --with-apxs2=/d2/apache2/bin/apxs \ --with-config-file-path=/d2/apache2/conf \ --with-mysql \ --with-zlib \ --with-ftp \ --with-config-file-path=/etc \ --with-jpeg \ --with-png \ --with-gd \ --enable-versioning \ --enable-track-vars=yes \ --enable-url-includes \ --enable-trans-sid \ --enable-sysvshm=yes \ --enable-sysvsem=yes installed versions: Linux: Kernel 2.4.0-4GB Mysql: 3.23.33-4 zlib: 1.1.4 libpng: 1.2.4 gd: 2.0.1 apache: 2.0.40 any help welcome bernhard ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19394&edit=1

« previous php.bugs (#19394) next »