Php 4.0.0 + Gd 1.73 + Png 1.0.6 And That Funny Platform Again
| From: | Mark Kirkwood | Date: | Fri, 26 May 2000 00:17:43 +0000 |
| Subject: | Php 4.0.0 + Gd 1.73 + Png 1.0.6 And That Funny Platform Again | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15778@lists.php.net to get a copy of this message | ||
Dear list,
The current release of Php appears to have a broken configure script with respect to GD + PNG
support ( similar to RC2 ). I am not sure if this is specific to my slightly peculiar platform (
HPUX 11 ) or not, but anyway in case anyone else has similar problems the recipe below will
"sort it".
( I am pretty sure that this is a "sufficient" rather than "necessary" solution
so to speak, but it does work - someone more familiar with this confgure business than me can supply
a better fix. In addition I have left my configure options unchanged even though not all of them may
be relevant )
Happy compiling
Mark
Recipe :
1 edit configure to fix the "Png Problem" which is -lpng needs to be -lpng -lz ( -lz
seems to need to be LAST in the library string )
Use this diff output to change it ( ok you can remove my name, thats not a problem ):
12413,12414c12413
< # Marks Change : Add -lz for png...
< LIBS="$ac_save_LIBS -lz"
---
> LIBS="$ac_save_LIBS"
12427,12429d12425
< # Marks Change : Add -lz for png...
< LIBS="$LIBS -lz"
<
12437,12438c12433
< # Marks Change : Add -lz for png...
< LIBS="-lgd $LIBS -lz"
---
> LIBS="-lgd $LIBS"
12957,12959d12951
< # Marks Change : add -lz for png...
< LIBS="$LIBS -lz"
<
12967,12968c12959
< # Marks Change : Add -lz for png...
< LIBS="-lgd $LIBS -lz"
---
> LIBS="-lgd $LIBS"
2 ./configure \
--with-apache=../apache_1.3.x \
--without-mysql \
--with-oci8=/usr/local/oracle \
--with-mcrypt=/usr/local \
--with-gd=/usr/local \
--enable-track-vars
3 gmake
4 gmake install
5 cd ../apache_.1.3.x
./configure --.... as usual
edit src/Makefile and find LIBS1 : add -lpng -lz after -lgd
6 build apache as usual