ID:               19394
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: linux - kernel 2.4
 PHP Version:      4.2.3
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2002-09-15 06:42:37] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-09-15 06:39:38] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to